Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

fopen trouble with Pocket PC

0 views
Skip to first unread message

vl

unread,
Dec 24, 2009, 7:20:53 AM12/24/09
to
Hello,
I have a trouble trying to open binary file with fopen in Pocket PC 2003
emulator. I tried
fopen("\\Temp\\test", "r")
fopen("/Temp/test", "r")
fopen("\\\\Temp\\test", "r")
fopen("file://Temp/test", "r")
and some other permutations of path. In each case I had "no such file"
error.
Can someone advise what the problem might be?
Thank you,
-V


r_z_...@pen_fact.com

unread,
Dec 24, 2009, 10:36:40 AM12/24/09
to

Sure looks like a problem with UNICODE to me. Try using
L"\\Temp\\Test", etc.

Windows CE (and platforms like Pocket PC built on it) is heavily
biased towards UNICODE, so almost all functions that take strings take
UNICODE strings. If this is, indeed, the problem, then I _strongly_
recommend taking time to understand UNICODE; otherwise you will waste
a lot of your time tracking down bugs. You can start by using google
(http://groups.google.com/advanced_search?q=&) to look up
unicode
in this newsgroup.


>Thank you,
>-V
>

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 400
Boston, MA 02116
www.penfact.com

Ernst Sauer

unread,
Dec 25, 2009, 5:58:31 AM12/25/09
to
vl schrieb:

> Hello,
> I have a trouble trying to open binary file with fopen in Pocket PC 2003
> emulator. I tried fopen("\\Temp\\test", "r")

This should work, I did it very often.
I never had a problem with it.
Has your file no extension?

Ernst

0 new messages