Oct 2, 2003 #1 Skute Programmer Joined Jul 21, 2003 Messages 272 Location GB Hi, i want a sure fire way of getting the current applications FULL path (including filename). I know i can use GetCurrentDirectory() and then add on the name of my application, but what if a user renames the .exe? Thanks.
Hi, i want a sure fire way of getting the current applications FULL path (including filename). I know i can use GetCurrentDirectory() and then add on the name of my application, but what if a user renames the .exe? Thanks.
Oct 2, 2003 #2 Cagliostro Programmer Joined Sep 13, 2000 Messages 4,226 Location GB GetModuleFileName( NULL, //instead of null you can use hInstance, //or GetModuleHandle(0) path, nSize ); Ion Filipski ICQ: 95034075 AIM: IonFilipski filipski@excite.com Upvote 0 Downvote
GetModuleFileName( NULL, //instead of null you can use hInstance, //or GetModuleHandle(0) path, nSize ); Ion Filipski ICQ: 95034075 AIM: IonFilipski filipski@excite.com
Oct 2, 2003 Thread starter #3 Skute Programmer Joined Jul 21, 2003 Messages 272 Location GB thanks Ion! Upvote 0 Downvote