From: Appaiah K. <ana...@ya...> - 2001-01-30 09:01:40
|
Hello! I am a novice programmer, just programming for fun. I have been using MinGW for a long time, and while browsing the headers, I found this cool feature in stdlib.h. Two variables, _argv and _argc are defined there, which allow non-console, ie. Windows apps to use the dos "main ()" style argument handling. I think it's much better than using the LPSTR variable in WinMain. This thing also lets me get the module file name, by accessing _argv [0]. But there's one gotcha, about which I would like to ask: I have made an application in, say D:\CC++\, by name abc.exe, which prints the value of _argv [ 0 ]. Now, if I GCC 2.95.2 (CRTDLL), to compile the application, then the printout is: D:\CC__~1\abc.exe but if I use GCC 2.95.2-1 (MSVCRT), the output is: D:\CC++\abc.exe Does this show that the problem is in CRTDLL.DLL (outdation, maybe?), or am I doing something wrong? Thank you. A.Kumar |