15,300 Posted Topics
Re: >>compile the main file using this libraries(header file) and you'll see some thing strange really strange!!! Ok, I give up. What is so strange?? and please be specific. | |
Re: Like all Microsoft's certs, college degree is not mandatory. Some people have passed the cert tests without ever reading a book, which is one reason IMO they are almost next to useless. But Narue could respond to that better than I can. | |
Re: For starters, line 16 and 18 are incorrect. To call a function you need ( and ), such as [icode]getInput();[/icode] You also have to add all the necessary parameters, such as those that calculate() require. | |
![]() | Re: You would be right if there were enough demand for such an operating system. But there isn't, and hasn't been for many years now. If you want a 32-bit DOS then just use *nix. MS-DOS is dead, so leave is dead and buried. ![]() |
I have several computers all on a home network running Windows 7 OS, all connected to a router. What do I need to do to convert them to IPV6 protocol? Just buy new network cards? | |
Re: Your first link said I do not have IPV6 but I should not have any problems either. | |
Re: strange -- the only thing the compiler will accept on line 11 is a string literal. | |
Re: 1. No. 2. That does not add members to the structure, it declared 15 objects of the structure. A better way to do that is by using an array of structs e.g. [icode] jatekos array[15]; // declare 15 objects of type jatekos [/icode] 3. Ok the code you posted here … | |
Re: >>int length = fread(buf, 1, sizeof(buf), inputFile); That is not how you get the length of a file. First you have to call fseek() to move the file pointer to end-of-file, then call ftell() to get the file position. | |
Re: There are lots of ways to create GUI ms-windows applications. One of them is by using CLR/C++ Windows Forms, another using wxWindows c++ classes, or pure win32 api functions [URL="http://www.google.com/#sclient=psy&hl=en&source=hp&q=windows+forms+tutorial+c%2B%2B&aq=1&aqi=g5&aql=&oq=&pbx=1&bav=on.2,or.r_gc.r_pw.&fp=9589d0f2bb20ed2d&biw=1111&bih=549"]Here[/URL] are a few tutorials for you to consider | |
Re: No one will write your program for you. Just don't get overwhelmed with all the requirements. Do it a little bit at a time and you will be able to write it yourself. For example, start out by creating a program that does nothing more than display the menu. When … | |
This has been an annoyance for some time now. Hover the mouse of any of the links on the purple ribbon at the bottom of the screen and something or someone is displaying the URL for that link, which hides half the purple ribbon. The same thing happens with IE8, … | |
Re: how was the file opened? The file needs to be opened for either reading only or both reading and writing, such as in the example [URL="http://www.cplusplus.com/reference/clibrary/cstdio/rewind/"]here[/URL] | |
Re: line 12: you don't need double star on FILE since the function is not attempting to change the caller's pointer. Just pass FILE pointer by value -- with only one star then on line 66 remove the & operator. line 61: you are assuming that fgets() read in exactly sizeof(buf) … | |
Re: You are more than likely corrupting the stack with that huge array. Move the array into global, outside any function, such as move line 8 just after line 4. | |
Re: It's not possible to determine if the array is empty or not without knowing the array size. Even then the only way to tell if the array is empty is if the array size is 0. | |
Re: You're never too old to watch cartoons :) Sometimes I like to watch Scooby-Do and Bugs Bunny. And [URL="http://disney.go.com/disneyvideos/animatedfilms/ratatouille/"]Ratatoulille[/URL] was hiralious | |
Re: t.c is nothing more than a pointer that has no memory allocated to it. scanf() does NOT allocate the memory for you, you have to do that yourself. Change the structure to something like this and it will work. [code] struct a { char c[255]; int b; }; [/code] | |
Re: Since the function does not have a loop variable p can be removed and line 15 deleted. Line 15 is wrong anyway because it used = assignment operator instead of == boolean operator. Also, without a loop line 15 does nothing even then the == operator is corrected. >> what's … | |
Re: Have you read [URL="http://winprog.org/tutorial/simple_window.html"]this tutorial[/URL]? | |
Re: You need to add year, month and day to the clockType class because you can not compare times if you don't know what days they are on. Suppose you have two times that have the same numeric numbers for hour, minute and second. Are they the same, or are they … | |
Re: line 14 needs a semicolon after the } | |
Re: [QUOTE=katmai539] i can almost call myself C++ and VB.NET engineer now :)[/QUOTE] Just because you can write code doesn't make you a "software engineer". See[URL="http://en.wikipedia.org/wiki/Software_engineering"] this link[/URL] to see the definition of a software engineer. In order to claim to be a software engineer you have to be certified by … | |
Re: Yes of course you can -- that's the whole purpose of doing that. After calling LoadLibrary() to load the DLL into memory you need to call[URL="http://msdn.microsoft.com/en-us/library/ms683212(v=vs.85).aspx"] GetProcAddress[/URL]() to get the address of the function you want to call. If you want to inject YOUR DLL into another process, then [URL="http://www.codeproject.com/KB/threads/winspy.aspx"]here … | |
Re: Some years ago we controlled external devices by sending a signal out the serial port to a [URL="http://www.google.com/#sclient=psy&hl=en&source=hp&q=plc+programming&aq=4&aqi=g5&aql=&oq=&pbx=1&bav=on.2,or.r_gc.r_pw.&fp=6782d3fc39a1f682&biw=1111&bih=549"]PLC[/URL] which, in turn, turned on/off switches to the device. | |
Re: If the blocks are in sequential order with no unused numbers then just store then in a vector or array and use the index value as the block number. | |
Re: MSVCR90D.dll is a debug DLL (which is what the D at the end means). Sounds like you are trying to mix files compiled for debug with others compiled for release mode. Calling DLLs compiled for debug may also produce that error. [URL="http://stackoverflow.com/questions/218747/msvcr90d-dll-not-found-in-debug-mode-with-visual-c-2008"]Here[/URL] are other suggestions to try | |
Re: you probably need to add more braces, like this, and don't put braces on the same line as other code because it makes the program moe difficult to read and understand. Strive for clarity, not cuitness. [code=c] int main() { for(int i=0;i<=7;i++) { for(int j=0;j<=i;j++) { cout<<'*'; for(int k=0;k<=i;k++) { … | |
Re: If this were a forum about English grammer then I would agree with WaltP. This isn't, so I don't. The important thing on DaniWeb is that the poster expresses him/herself as clearly as possible, not whether he dotted all the is or crossed all the ts. I don't really care … | |
Re: The first error indicates that you have called a time functon that does not exist. Read [URL="http://cboard.cprogramming.com/windows-programming/18669-using-timegettime.html"]this thread[/URL] for the solution to that problem. The second error is quite simple. You created a MS-Windows project but you probably replaced WinMain() with main(). If you wanted main() then you should have … | |
Re: call CreateThread() or _beginthread() in WM_CREATE, not WM_PAINT. Creating a console from GUI is simple -- just call AllocConsole(); Example [code] void ConsoleThread(void* p) { HANDLE hStdin = 0; HANDLE hStdout = 0; DWORD dwCharactersWritten = 0; if( AllocConsole() == 0) { return; } HWND hConsoleWnd = GetConsoleWindow(); hStdin = … | |
Re: Homework? Have you read your textbook yet about how to declare arrays? [URL="http://lmgtfy.com/?q=declare+2d+array"]Or this[/URL]? | |
Re: You don't have to actually declare the array to be of size 0 in order for it to be considered empty. The size parameter may just mean the number of elements in the array that have valid entries. The array itself could have been declared with any size > 0. … | |
Re: You will have to use two temp arrays (1) and array that contains the random numbers so that when a random number is generated the program searches this array to see if it has already been used. If the new random number already exists in the array then go back … | |
Re: I always used ODBC because its supported by most (all) SQL compliant databases and is well documents. You can even find [URL="http://www.google.com/#hl=en&sugexp=ldymls&xhr=t&q=odbc+c%2B%2B+classes&cp=14&pf=p&sclient=psy&source=hp&aq=0l&aqi=&aql=&oq=odbc+c%2B%2B+clase&pbx=1&bav=on.2,or.r_gc.r_pw.&fp=b293108ef6c36611&biw=1036&bih=532"]free c++ classes [/URL]that wrap the odbc calls. If you are using MySQL then you can get MySQL++ which are c++ wrapper class for MySQL. That's a little different … | |
Re: I use IE8 exclusively. I have google chrome installed but don't like it. I've used FF, but dropped it when IE added tabs like FF has. As for speed -- I don't give a dam about a few milliseconds nor do I care about themes or add-ons or writing web … | |
Re: What everyone else is getting is probably illegal, so be careful that you don't get sued for downloading copright material. | |
Re: [URL="http://lmgtfy.com/?q=c%2B%2B+fork"]Read this[/URL] | |
I don't know about you all, but I love pies and I love cakes. But put them together, and what do you get? A [URL="http://www.youtube.com/watch?v=Rp4yWTLIPaE"]Cherpumple Pie Cake[/URL] Yuuuuuuummmmmmm!;) | |
Re: You should pass the structures by reference, not by value. That means passing a pointer to the structure. I don't know what InitArray() does or returns, but I assume it returns a pointer. Here is how you need to write the first function you posted. Do something similar with the … | |
Re: [QUOTE=ilovec++]So the program converts the character into a number, as variables a & b are of int type and not char. However, it should convert the character into its ASCII code, but I don't know why does it give such an odd output.[/QUOTE] It does no such thing. cin produces … | |
Re: DaniWeb has server problems occasionally and sometimes I have a problem now and then like you mentioned (maybe only about once or twice in any given week). It might be that you are trying to make a post at the moment their servers go bonkers. But since you were able … | |
Re: google is a wonderful invention :) [quote]A constructor cannot be virtual because at the time when the constructor is invoked the virtual table would not be available in the memory. Hence we cannot have a virtual constructor.[/quote] [url]http://www.codersource.net/published/view/325/virtual_functions_in.aspx[/url] | |
| |
Re: C programming in mid-80s -- zenith 100 computer, 2 floppy drives, no hard drive, 64K 8 MZ RAM, MS-DOS Version 1.0 which did not support sub-directories. The C compiler was on a 5 1/2" floppy in one drive and the data/program in the other drive. Started a compile then go … ![]() | |
Re: that's true -- atof("2a") is 2.00. I have no idea what the 'a' is for, but atof() stops converting at the first character that is not a digit or '.' or '-'. | |
Re: When is the assignment due, that is, how much time do you have before you have to turn it in? Have you studied c++ classes and arrays yet? | |
Re: Once text files are written you can not overwrite the data with larger amounts because it will overwrite other data that follows it. For example if the file contains "Hello world" and you want to change it to "Hello12 world" the result would be "Hello12orld", which ic clearly not what … | |
Re: The error message tells you what you have to do error C2440: 'initializing' : cannot convert from 'b_t **' to 'a_t *const *' 1> Types pointed to are unrelated; [color=red]conversion requires reinterpret_cast[/color], C-style cast or function-style cast [icode]a_t* const * ref_pa = reinterpret_cast<a_t**>(&pb); [/icode] | |
Re: What version of Turbo C++? If its a 16-bit compiler then probably not. |
The End.