Skip to main content
gamedev.net
🔒 Locked

The Magic Function!

Started by quaker Jun 25, 2006 at 6:21 AM 4 replies 1.7k views
Original Post
quaker
quaker
Hi What's the system function that returns the direcotry/path of the running process image file, not the current location where the process started? In both Windows and Linux? Thanks.
mattd
mattd
Windows: GetModuleFileName (here you'll also have to strip off the image name)
quaker
quaker
Thanks guys! I got it!
Leadorn
Leadorn
_splitpath_s, _wsplitpath_s

http://msdn2.microsoft.com/zh-tw/library/8e46eyt7.aspx

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.