• Advertisement
Sign in to follow this  

File I/O problems in WIN CE 5.

This topic is 4172 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Win ce directory structure confirmed: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnppcgen/html/ppc_io.asp So I code like this
#include <stdio.h>
FILE *fp;

BOOL InitInstance(HINSTANCE hInstance, int nCmdShow){
fp=fopen("\Temp\agon.doc", "a");



nothing in \Temp file

#include <stdio.h>
BOOL InitInstance(HINSTANCE hInstance, int nCmdShow){
fp=_wfopen(L"\Temp\agon.doc", L"a");
 

nothing in \Temp file Anything wrong with my code?

Share this post


Link to post
Share on other sites
Advertisement
I don't know much about directory stuctures, but I would give it a try with

"\\Temp\\agon.doc"

Haven't you received any compiler warnings about escapes?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement