RE: [GD-Windows] Program directory
Brought to you by:
vexxed72
From: Jon W. <hp...@mi...> - 2002-06-11 16:22:02
|
You could get the path of the main module (instance). Typically, just calling TCHAR path[ 256 ]; GetModuleFileName( 0, path, 256 ); Cheers, / h+ > -----Original Message----- > From: gam...@li... > [mailto:gam...@li...]On Behalf Of > Ignacio Castaño > Sent: Tuesday, June 11, 2002 5:27 AM > To: gam...@li... > Subject: [GD-Windows] Program directory > > > Hi, > I would like to know how to retrieve the path where the program being > executed is. Usually it's the current working directory, that you can get > with getcwd, but in some cases that's not true. For example, when the > program is in the path or when you simply do: folder\program.exe > Is there any safe way of doing this? > I could save the name of the directory during installation or > something like > that, but actually my program doesn't have any installation, so I would > prefer another option. > > > Ignacio Castaño > cas...@ya... > > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas - > http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink > > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=555 > |