Reading a file in RAPI

  • Thread starter Thread starter fig000
  • Start date Start date
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
 
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
 
Back
Top