quote:Original post by graveyard filla anyway, back to my point. i cant get .net to compile my programs. its giving me a "unexpected end of file" error when i even just copy and paste working VS6 code into VS.NET.
Either a Precompiled header problem or a missing closing curly.
And yes, if you have access to VC 7.1, there really are no reasons to keep using VC 6.0.
“Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.” — Brian W. Kernighan (C programming language co-inventor)
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
then click new project>>> then click Visual C++ Projects>>>then click win32 console project..... i click application settings>>> check off empty project>>> now im in project view... i see to my right source files folder... i right click and choose "new item" then i pick c++ source file from the list...
hmm. this seems to have worked. oh well, guess i figured it out for myself. going and checking off start as empty project was my problem.
ps what does (int argc, char **argv) after main do?
quote:Original post by Amma assuming you start your application like : test.exe hi there
argc = 2 argv[0] = "hi" argv[1] = "there"
Incorrect. argv[0] is always the name of the program.
argc is 3 argv[0] is "test.exe" argv[1] is "hi" argv[2] is "there"
“Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.” — Brian W. Kernighan (C programming language co-inventor)
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
i stll dont understand what those argc and argv things mean. are they optional or do they need to be there? what do they do exactly? thanks for any help