This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Getting the current directory in windows CE


Getting the current directory in windows CE

Postby DillRye » May 2, 2002 @ 5:09am

Someone suggested I should use this:

TCHAR junk[50];
GetModuleFileName( NULL, junk, 50 );

I had it write out to a file for testing and it just said the path was "\".

I was wondering if maybe I did this wrong, or if theres a different way of doing it.
User avatar
DillRye
pm Insider
 
Posts: 477
Joined: Apr 25, 2002 @ 7:28am
Location: Iowa State University of Eng


Postby Dan East » May 2, 2002 @ 6:27am

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby DillRye » May 2, 2002 @ 7:32am

I tried word, and then notepad.

TCHAR junk[50];
GetModuleFileName( NULL, junk, 50 );
FILE *input;
input=fopen("error.txt","w");
fprintf(input,"%s",junk);
fclose(input);

That exact code there outputs to error.txt a "\" and thats it....
User avatar
DillRye
pm Insider
 
Posts: 477
Joined: Apr 25, 2002 @ 7:28am
Location: Iowa State University of Eng


Postby Dan East » May 2, 2002 @ 12:42pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron