![]() |
|
QA: How can I know what is a full path to my program that is running?
By Vassili Philippov, September 07, 2001.
QuestionSome my files are located in the same folder as the main executable file. Because Pocket PC does not support local file names I need to know a full path to my executable file to find full path to my other files. How can I do it? AnswerYou can use GetModuleFileName function that gives full path to the executable file of the running program. You could also use GetProgramFilePath and GetProgramFolder functions of CSTUtil class that simplify access to program file name and to path of the folder that contains the program. Source codeUsing STUtil library: Without using STUtil library: Related resources:
DiscussDiscuss this article. Here you can write your comments and read comments of other developers. |
|||||||||||||||||||||