0
0

I know this has been covered before, but i have tried searching and cannot find it anywhere.

Someone posted before about 4 or 5 lines of code that returned the path of the currently running exe file.

Can someone please report this code. I am basically trying to load a music file from the same folder that the exe is running from.

Thanx in advance.

Matt

  • You must to post comments
0
0

[quote="Croccy22_":3u47kbnz]
Someone posted before about 4 or 5 lines of code that returned the path of the currently running exe file.
[/quote:3u47kbnz]

have a look at GetModuleFileName

i.e.

TCHAR exepath[256];
GetModuleFileName (0,exepath,256);

would put the current exe (or dll) in exepath

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.