Advertisement

App.path in VC++?

Started by April 10, 2001 12:27 PM
1 comment, last by KaneBlackflame 23 years, 10 months ago
Does anyone know how to get the path of an your app during run time, like the VB version of theApp.Path? I need to make save files and they keep floating around my computer using dynamic folder addresses. Can anyone help?
"Victims...aren't we all?" -Brandon Lee, the Crow
There''s a CRuntime function ''getcwd'' can''t remember the parameters but it''s worked for me in the past.
Advertisement


Yes, there is the C-runtime version called __getcwd (MS Compiler), or you can use the Win32 call GetModuleFilename(Ex) which does actually return the full path+filename of the module.

HTH,

-Z

This topic is closed to new replies.

Advertisement