15,300 Posted Topics
Re: You mean you wrote a program with 64-bit compiler and tried to run it on a machine that is 32-bit operting system? That won't work. Compile it with 32-bit compiler and it will work on either 32-bit or 64-bit machines. Next, you have to probably install the MFC re-distributables. Look … | |
Re: >>Don't #include C header files in your header files That's one of [b][i]YOUR[/i][/b] rules that is frequently broken. I agree with the general pholosophy, but it doesn't really work that way in real-world programs and libraries. | |
Re: You mean you want to listen to music while using VS? You don't need a plugin for that. | |
Re: ReadFile() does not null-terminate strings -- it treats the file as if it were a binary file. Instead of CreteFile() and ReadFile() why don't you just use standard C++ fstreams. Just because you are writing a win32 api GUI program doesn't mean you can't use c++ fstream or other STL … | |
Re: Just say the word and I'll gladly go to c++ forums and make sure your rep drops to -10000 too :) | |
Re: There are a couple options 1. If your compiler supports conio.h then it contains a couple functions that will do what you want. 2. Use OS-specific api functions. For MS-Windows there are some console functions you can use ([URL="http://msdn.microsoft.com/en-us/library/ms682073(v=vs.85).aspx"]link here[/URL]) | |
Re: That is the correct way to access the members, but you have to allocate memory for all those pointers. For example [code] fat *pfat = new fat; pfat->dir_array = new dir; pfat->file_array = new files; [/code] Also, what do you want to store in the [b]name[/b] member functions? If its … | |
Re: Congratulations Narue, I know you will be an excellent Admin. Narue is one of the brightest people I know here. | |
Re: You are right -- all I get is a big white page (IE8 on Win7) | |
Re: >>Wait a second. fgets() is for reading from files Narue is correct -- why do you believe that? The keyboard is treated just as any file system, just use stdin as the file handle. >>e.g. If you've continuous gets() functions or a gets() function after a scanf() function then compilers … | |
Re: If you want to read words instead of lines call fscanf() instead of fgets(). But with fscanf() the program can not distinguish end-of-line. If it needs to know about EOL and also read words then you will want to call fgets() and parse the string into words. strtok() can be … | |
Re: >>I wrote this script for my classmates where we shoot at each other Remind me never to go to your school. | |
Re: If you know your friend's name then use the advanced search. Click the Search button without entering anything and you will get the advanced search window. You can search for any DaniWeb member that way. | |
Re: [QUOTE=jingda]But some people and scientist said that he should be given a proper burial[/QUOTE] Seems the arabs don't want him either ([URL="http://www.ynetnews.com/articles/0,7340,L-4063407,00.html"]link[/URL]) | |
Re: Activity points is something that was started here just within the last few months, I don't recall when. But everyone started out with 0 activity points and went from there. That's why you will see some members with large post count and small activity points. Take me for example. I … | |
I just installed IE9 on 64-bit Windows 7, and I've pinned DaniWeb to my task bar. But the IE9 icon just looks like the standard IE letter 'e'. I read that we need a special *.ico file, see [URL="http://msdn.microsoft.com/en-us/library/gg491740(v=VS.85).aspx"]this link[/URL] Does anyone know anything about this, because I sure don't. | |
Re: line 52: where is player declared? The declaration on line 50 is not in scope at line 52, so it can't be used. Move the declaration of player from line 50 to just after line 42. why is [b]position[/b] a pointer? line 27 only allocates one of them. There is … | |
Re: The error message sounds like you have more than one *.c file with main() in the project. Check your project and remove one of the files. | |
Re: you also need to include string.h header file, like you did stdio.h header file. >>what can i do in dev c++ First, stop using that old, obsolete compiler. Download free [URL="http://www.codeblocks.org/"]Code::Blocks [/URL]with MinGW (they are free). | |
Re: [QUOTE=Narue] Or if you can find enough people interested in an Objective-C forum, Dani may be convinced to add it. ;)[/QUOTE] And that's nearly impossible. I've tried for several years now to add a forum for MS-Windows c/c++ programming with no luck even though there are thousands of such posts … | |
Re: Is that the entire program? Or just a snippet from it? | |
Re: struct dirent must not be declared as a pointer [code] struct dirent entry; while ((entry = readdir(&mydir)) != NULL) [/code] | |
Re: >>So just as you could tell two people apart by looking at their fingerprint, you can do it by looking at their typing rhythm People's typing speed and rythm will change over time. For example I used to type at speed > 100 wpm on a manual typewriter, but I … | |
Re: Well, if your program doesn't build then why are you tring to run it? It won't run because the compiler didn't create the new *.exe file. You have to fix all the error messages before you will be able to run the program. | |
Re: google for [URL="http://msdn.microsoft.com/en-us/library/ms682453(v=vs.85).aspx"]CreateThread[/URL](). [URL="http://www.codeguru.com/forum/showthread.php?t=440479"]Here[/URL] is another good one to read. | |
Re: assuming the number exists in the array, yes. Why did you ask? | |
Re: See [URL="http://www.google.com/search?source=ig&hl=en&rlz=1G1GGLQ_ENUS397&q=how+to+call+stored+procedure+in+c&aq=0&aqi=g10&aql=&oq=how+to+call+stored+pro"]this[/URL] and [URL="http://www.daniweb.com/software-development/c/threads/87819"]this[/URL] | |
Re: its nearly the same thing [code] string in = "123"; stringstream out; out << in; int thetime; out >> thetime; [/code] | |
Re: You can't do it in pure C without the help of operating system api graphics functions. You can create sort-of a round circle with jagged edges in console program, something like this, which is an awful representation of a circle. [icode] X XXX XXXXX XXXXXXX XXXXX XXX X [/icode] | |
Re: If you enter *.* from the keyboard then just concantinate the two strings. Simple. [code] char path[255] = {"c:\\myfolder\\}; char file[] = "*.*'; strcat(path,file); FindFirstFile(path, ...); [/code] | |
Re: get the data as a std::string then convert it to integer. | |
Re: [icode]int delay = 0;[/icode] initializes the variable when it is declared [icode]delay = 0;[/icode] is done when you need to re-initialize the variable, such as when its used within a loop as you posted so that it can be re-used for something. | |
![]() | Re: Never saw it -- I don't think its broadcast to USA. Unfortunate. |
Re: >>I compile it like: gcc -lpthread programName.c and it compiles fine How can you say that and then post the error messages that your compiler gave you??? Try reversing the order of the two includes. There might be something in pthread.h that depends on stdio.h but just a guess. | |
Re: Ok, I'm going to pretend this is not just spam and put in my 2 cents worth. I quit smoking in 2001 after some 40 years. It was one of the most difficult things I have ever done, but well worth it. I tried patches but they didn't work for … | |
Re: >>Which is the best way of earning money With a HP printer. Of course that will also get you some free room and board at tax payer's expense. | |
Re: My grandaughter was born on a Friday the 13th. For her 13th birthday my son bought her the complete collection of Friday the 13th movies. She is now 24. | |
Re: >> I tried to compile it with a C++ project, it was successfully compiled? How would we know whether the compile was successful or not??? Your compiler will tell you that, all you have to do is read the error and warning messages. >>Can you help me please? Go back … | |
Re: See [URL="http://spike.scu.edu.au/~barry/interrupts.html"]int 21h, function 2[/URL] Read the description for that function and you will find out how to set up the registers. | |
Re: >>So value would be 0*10 + 49 - "0" = 490 Wrong. It's '0', not "0". Look[URL="http://www.asciitable.com/"] up any ascii charact [/URL]to see the numeric value of '0' is 48. Therefore the math is [icode]0*10 + 49 - 48 = 1[/icode]. I don't know how you got 490. | |
Re: >>line 9: number1= buffer[0]+ (buffer[1]<<8); Try this: [icode]number = *(short *)buffer;[/icode] This assume sizeof(short) = 2 on your computer. There is no guarentee that is true on every computer. That may not work either if the binary file was written in little endian format and you are attempting to read … | |
Re: How about the dialog class initiate network requests, sort of like client server where the dialog class is the client and network class is the server. The network class (server) should be able to communicate with any number of dialog class (client) objects. Its the dialog class which initiates all … | |
Re: Enable the Expert option -- Tools --> Settings --> Expert Settings. You will get additional menu items. | |
Re: Depends on the type of job you want -- you could start now applying for jobs that only require a BS or BA degree. That will give you some practicle experience while completing your masters. And that might open more doors for you with the company you are already working … | |
| |
Re: worked ok for me on MS-Windows 7 and vc++ 2010 express. | |
Re: You will also have to install MySQL on your development computer because that also installs the *.lib files you will need with [URL="http://tangentsoft.net/mysql++/"]MySQL++.[/URL] >>2: Can you find what you're looking for by doing a quick Google search? NO Did you try [URL="http://lmgtfy.com/?q=mysql%2B%2B+tutorial"]this[/URL]? | |
Re: I would tak triumphost's approach. Start a new CLR/C++ Windows Forms project so that you can graphically design the form(s) the way you want them. That is a hell of a lot easier and faster than using pure win32 api functions. Then add in the code you wrote for that … | |
Re: Yes, the first is a pointer while the other is not. Example [code] struct something { int variable; // blabla }; struct somtehing* ptr; // ptr->variable struct something obj; // obj.variable [/code] | |
Did you wantch it? I saw the last part, got up at 5:00 a.m. and saw it on CNN. Awesome :) And the gods apparently thought so too because there was lots of sunshine, flag waving, and everything was perfect. I thought 90-year-old Price Phillip looked really really old (of … |
The End.