Home
Tutorials
Code Snippets
Code Samples
Downloads
The Forum
Links

The Blog
Our Projects
Guest Book
About
Contact

ShOuT b0X:
::Add RageStorm to Favorites!::

The Blog | Our Projects | Guest Book | About | Contact

 
Code Snippet - Get Application Directory
Author:Arkon
Category:Win32API
File Size:175 Bytes
Uploaded at:27-Nov-02 02:19:50 pm
Description:
  Simply gets the application path.
  
// Get app path
char dir[256] = "";
GetModuleFileName(NULL, dir, 256);
for (int i = strlen(dir); dir[i] != '\\' && i > 0; i--) dir[i] = '\0';
MessageBox(NULL, dir, "", 0);
User Contributed Comments(None)
NOTE:
Comments that will hurt anyone in any way will be deleted.
Don't ask for features, advertise or curse.
If you want to leave a message to the author use the contacts,
if you have any question in relation to your comments please use the forum.
Comments which violate any of these requests will be deleted without further
notice. Use the comment system decently.

Post your comment:
Name:
email:
Comment:
::Top 5 Tutorials::
Embedded Python[40658]
UDP[33491]
Keyboard Hook[32667]
2D Rotated Rectangles Collision Detection[30372]
HTTP Proxy[21177]

::Top 5 Samples::
2D ColDet Rotated Rectangles[6357]
PS2 Mouse Driver[4181]
Reading FAT12[3415]
Wave Format Player[3244]
CodeGuru[3037]

::Link to RageStorm::

::Affiliates::
AngelCode
YOV408 Technologies
FireStorm


All rights reserved to RageStorm © 2009