hi group, with csharp, cpp or c,
what I do to specify a file within the same folder in wich my *.exe is
placed.?
I mean, my problem is with something I believe is called "relative paths",
because there is no drive name like "c:\\" in ppcs

thanks very much in advance, Carlos.

Re: access a file by Scott

Scott
Sat Oct 06 10:00:49 PDT 2007

"xCal" <xcal79@yahoo.comDELthis> wrote:
>
>what I do to specify a file within the same folder in wich my *.exe
>is placed.? I mean, my problem is with something I believe is called
>"relative paths", because there is no drive name like "c:\\" in ppcs

CE doesn't have a concept of working directory like the desktop OSs do.
You'll need to use something like GetModuleFileName to get the name and
path of your executable, then trim it down to just the path. Pass in
NULL for the module handle.

--
--------- Scott Seligman <scott at <firstname> and michelle dot net> ---------
If I have seen farther than others, it is because I was standing on
the shoulders of giants.
-- Isaac Newton