Reading a file in RAPI

F

fig000

Hi,

I'm new to the compact framework and rapi. I just wrote a desktop
application to read an xml file from a pocket pc. I used CeRapiInit,
CeCreateFile, and CeReadFile

There are no blowups and the number of bytes read in CeReadFile is
the same size as the file I'm reading. However, what I get back seems
to be garbage. I'm wondering if it's in a different format than desktop
files and that CeReadFile isn't the right function because it's not
translating.

Any help would be appreciated.

Neil
 
G

Guest

It's probably in Unicode and you're expecting ANSI. Eitehr convert it or
add a Unicode header at the bginning of the file.

-Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top