Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: using VK_UP Pin
Tim Smith16-Sep-01 2:33
Tim Smith16-Sep-01 2:33 
GeneralRe: using VK_UP Pin
16-Sep-01 2:39
suss16-Sep-01 2:39 
Generalproblem with CTreeCtrl Pin
Ghasrfakhri15-Sep-01 23:11
Ghasrfakhri15-Sep-01 23:11 
GeneralRe: problem with CTreeCtrl Pin
Tomasz Sowinski17-Sep-01 0:03
Tomasz Sowinski17-Sep-01 0:03 
Questionhow to transpose all note while playing midi by directmusic ? Pin
15-Sep-01 17:00
suss15-Sep-01 17:00 
GeneralCommunication between 2 embedded web browser controls Pin
Tili15-Sep-01 16:54
Tili15-Sep-01 16:54 
QuestionHow to get path of executable Pin
Jake Palmer15-Sep-01 16:03
Jake Palmer15-Sep-01 16:03 
AnswerRe: How to get path of executable Pin
Tili15-Sep-01 17:03
Tili15-Sep-01 17:03 
Its easy.
use function GetModuleFileName like this
char szFileName[MAX_PATH];<br>GetModuleFileName(NULL,szFileName,MAX_PATH);
but you want to know the directory of your file you can use function GetCurrentDirectory like this
char szFileName[MAX_PATH];<br>GetCurrentDirectory(MAX_PATH,szFileName);

Secondly you may be having this problem because you are executing the file from within visual c which makes the parent folder the working directory and not the "Debug" or "Release" folder of your project.
Put the file you want to access in the parent of your "Debug" folder.






In my dream, I was dorwning in my §orrow§
But my §orrow§, they learned to §wim
AnswerRe: How to get path of executable Pin
Hans-Georg Ulrich17-Sep-01 23:17
Hans-Georg Ulrich17-Sep-01 23:17 
GeneralActiveX Control - sorounding box isnt changed in OnDraw Pin
Anders Eriksson15-Sep-01 14:29
Anders Eriksson15-Sep-01 14:29 
QuestionHow do I remove a function in ATL ? Pin
Christian Graus15-Sep-01 13:19
protectorChristian Graus15-Sep-01 13:19 
AnswerRe: How do I remove a function in ATL ? Pin
Anders Molin15-Sep-01 13:26
professionalAnders Molin15-Sep-01 13:26 
GeneralRe: How do I remove a function in ATL ? Pin
Christian Graus15-Sep-01 13:27
protectorChristian Graus15-Sep-01 13:27 
GeneralRe: How do I remove a function in ATL ? Pin
Tim Smith15-Sep-01 13:34
Tim Smith15-Sep-01 13:34 
GeneralRe: How do I remove a function in ATL ? Pin
Christian Graus15-Sep-01 13:39
protectorChristian Graus15-Sep-01 13:39 
GeneralRe: How do I remove a function in ATL ? Pin
Tim Smith15-Sep-01 13:46
Tim Smith15-Sep-01 13:46 
GeneralRe: How do I remove a function in ATL ? Pin
Christian Graus15-Sep-01 14:23
protectorChristian Graus15-Sep-01 14:23 
GeneralRe: How do I remove a function in ATL ? Pin
Tim Smith16-Sep-01 1:27
Tim Smith16-Sep-01 1:27 
AnswerRe: How do I remove a function in ATL ? Pin
Derek Waters16-Sep-01 14:18
Derek Waters16-Sep-01 14:18 
GeneralRe: How do I remove a function in ATL ? Pin
Christian Graus16-Sep-01 14:23
protectorChristian Graus16-Sep-01 14:23 
GeneralRe: How do I remove a function in ATL ? Pin
Derek Waters16-Sep-01 14:30
Derek Waters16-Sep-01 14:30 
GeneralRe: How do I remove a function in ATL ? Pin
Christian Graus16-Sep-01 14:43
protectorChristian Graus16-Sep-01 14:43 
GeneralRe: How do I remove a function in ATL ? Pin
Derek Waters16-Sep-01 14:45
Derek Waters16-Sep-01 14:45 
GeneralRe: How do I remove a function in ATL ? Pin
Christian Graus16-Sep-01 14:56
protectorChristian Graus16-Sep-01 14:56 
AnswerRe: How do I remove a function in ATL ? Pin
asfas16-Sep-01 23:33
asfas16-Sep-01 23:33 

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.