Re: [GD-Windows] Program directory
Brought to you by:
vexxed72
From: <cas...@ya...> - 2002-06-11 20:02:01
|
Javier Arevalo wrote: > > I would like to know how to retrieve the path where the program being > > executed is. > > TCHAR szExeFilename[300]; > ::GetModuleFileName(NULL, szExeFilename, > sizeof(szExeFilename)/sizeof(szExeFilename[0])); That works fine, thanks! BTW, I once had problems with those hardcoded string names when one client installed my application under a very long file path... Ignacio Castaño cas...@ya... _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |