_wfopen has unexpected behavior (PocketPC)

Started by
0 comments, last by Ruben3d 20 years ago
Hi all. I''m trying to make a small game for Windows Mobile 2003 for PocketPC (using eMbedded Visual C++ 4.0). When I create a file with _wfopen with a relative path, the path seems to be relative to the root directory instead of the executable directory. If my app is in "/Apps/MyApp" and I code this: FILE *fd = _wfopen(L"test.txt", L"wtc"); the file "test.txt" is created as "/test.txt" instead of "/Apps/MyApp/test.txt". Why is this happening? Maybe should I know something that escapes me? Is this a espected behavior with this OS? Thanks. Ruben3d
Advertisement
I found the answer here:

http://www.pocketpcdn.com/articles/program_path.html

Ruben3d

This topic is closed to new replies.

Advertisement