Click here to Skip to main content
16,011,702 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CString to WCHAR Pin
Prakash Nadar4-Apr-04 15:24
Prakash Nadar4-Apr-04 15:24 
Questionhow to get application file name? Pin
artful4-Apr-04 3:30
artful4-Apr-04 3:30 
AnswerRe: how to get application file name? Pin
Anonymous4-Apr-04 4:27
Anonymous4-Apr-04 4:27 
GeneralRe: how to get application file name? Pin
artful4-Apr-04 5:09
artful4-Apr-04 5:09 
GeneralRe: how to get application file name? Pin
Prakash Nadar4-Apr-04 5:15
Prakash Nadar4-Apr-04 5:15 
GeneralRe: how to get application file name? Pin
John R. Shaw4-Apr-04 9:36
John R. Shaw4-Apr-04 9:36 
AnswerRe: how to get application file name? Pin
GflPower4-Apr-04 14:17
GflPower4-Apr-04 14:17 
AnswerRe: how to get application file name? Pin
avenger_sb255-Apr-04 5:27
avenger_sb255-Apr-04 5:27 
Hey, if you are using Windows API to program, you can use the GetCommandLine function to obtain the command line string, and then use CommandLineToArgvW to convert the command line to an argv style array of strings.

Remember, the first argument of the commandline is always the "filename"

Check msdn online resource for details about these functions


Remember... testing & debugging are always part of programming ...so exterminate those stinking bugs
GeneralCustom CListCtrl Pin
Halloko4-Apr-04 0:30
Halloko4-Apr-04 0:30 
GeneralRe: Custom CListCtrl Pin
avenger_sb255-Apr-04 5:32
avenger_sb255-Apr-04 5:32 
GeneralRe: Custom CListCtrl Pin
Halloko5-Apr-04 5:48
Halloko5-Apr-04 5:48 
GeneralSad tale of 'const' Pin
73Zeppelin4-Apr-04 0:11
73Zeppelin4-Apr-04 0:11 
GeneralRe: Sad tale of 'const' Pin
Neville Franks4-Apr-04 0:37
Neville Franks4-Apr-04 0:37 
GeneralRe: Sad tale of 'const' Pin
73Zeppelin4-Apr-04 0:40
73Zeppelin4-Apr-04 0:40 
GeneralRe: Sad tale of 'const' Pin
Neville Franks4-Apr-04 1:34
Neville Franks4-Apr-04 1:34 
GeneralRe: Sad tale of 'const' Pin
Jörgen Sigvardsson4-Apr-04 9:04
Jörgen Sigvardsson4-Apr-04 9:04 
Generalspecifying a map Pin
MatthewP3-Apr-04 22:43
MatthewP3-Apr-04 22:43 
GeneralRe: specifying a map Pin
Andrew Walker3-Apr-04 23:52
Andrew Walker3-Apr-04 23:52 
Generalmap container Pin
MatthewP3-Apr-04 22:41
MatthewP3-Apr-04 22:41 
GeneralRe: map container Pin
Johnny ²3-Apr-04 23:45
Johnny ²3-Apr-04 23:45 
Generalapp not compatable between XP and 2000 Pin
quzi3-Apr-04 21:50
quzi3-Apr-04 21:50 
GeneralRe: app not compatable between XP and 2000 Pin
Alexander M.,4-Apr-04 1:03
Alexander M.,4-Apr-04 1:03 
GeneralRe: app not compatable between XP and 2000 Pin
quzi4-Apr-04 1:25
quzi4-Apr-04 1:25 
QuestionHow to create an ActiveX in Visual Studio? Pin
anderslundsgard3-Apr-04 21:48
anderslundsgard3-Apr-04 21:48 
GeneralQuestion on serial port and data buffer Pin
knightri3-Apr-04 17:11
knightri3-Apr-04 17:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.