Click to See Complete Forum and Search --> : getting the applications parth.
king_scott_2
Feb 12th, 2003, 09:42 PM
hi. I need to store an application parth and display it. I am using a MFC application and NEED HELP.
please tell me how to display the application parth (app.parth in vb) in a MessageBox
thanks for your help.
CornedBee
Feb 13th, 2003, 10:55 AM
You could have found the answer with the search function. It was asked about a week ago.
Anyway, use
GetModuleFileName(NULL, stzBuffer, iBufferLength);
Alternativly you can use the m_pszExeName member of your application class, but you have to append the file extension yourself.
king_scott_2
Feb 14th, 2003, 04:31 AM
ok i'm kind of a newbie at this so can you tell me to display it in a MessageBox
(include the code please)
Thanks
CornedBee
Feb 14th, 2003, 05:37 AM
What kind of newbie? Do you know C++ well enough to use character buffers?
If yes then I don't need to help you. If no then I don't want to help you. Sorry, I'm cutting down on helping newbies using the WinAPI.
And as I said, there's the search function.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.