Re: [GD-Windows] Program directory
Brought to you by:
vexxed72
From: Weston F. <we...@ml...> - 2002-06-13 04:29:59
|
I've always used: char Path[512]; not say that you can't have a path that long... But it fairly unlikely... ----- Original Message ----- From: "Ignacio Castaño" <cas...@ya...> To: "Gareth Lewin" <GL...@cl...>; <gam...@li...> Sent: Wednesday, June 12, 2002 3:34 PM Subject: Re: [GD-Windows] Program directory > Interestingly _MAX_PATH is defined to 260, and my max path was longer than > that, so it seems that I was doing something else wrong. > > > Ignacio Castaño > cas...@ya... > > > Gareth Lewin wrote: > Yes, the define _MAX_PATH and it's friends are well worth using in cases > like this. > > Sadly GetModuleFileName doesn't return the length if the buffer you give is > too small, unlike other API calls. > > > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > _______________________________________________________________ > > Sponsored by: > ThinkGeek at http://www.ThinkGeek.com/ > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=555 |