This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Problem opening a file with fopen...


Problem opening a file with fopen...

Postby ilanprod » Aug 6, 2004 @ 8:51pm

ilanprod
pm Member
 
Posts: 37
Joined: Aug 2, 2004 @ 8:40pm


Postby Tala » Aug 6, 2004 @ 9:17pm

Tala
pm Member
 
Posts: 125
Joined: Feb 6, 2004 @ 4:32pm


Postby Kzinti » Aug 6, 2004 @ 9:21pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby ilanprod » Aug 6, 2004 @ 9:24pm

ilanprod
pm Member
 
Posts: 37
Joined: Aug 2, 2004 @ 8:40pm


Postby Kzinti » Aug 6, 2004 @ 9:46pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby fzammetti » Aug 6, 2004 @ 11:29pm

...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby abiemann » Aug 21, 2004 @ 12:12am

abiemann
pm Member
 
Posts: 73
Joined: Jul 9, 2004 @ 11:26pm


Postby abiemann » Aug 21, 2004 @ 12:26am

ah ok, I should have declared:

path[512]=TEXT("\0");
abiemann
pm Member
 
Posts: 73
Joined: Jul 9, 2004 @ 11:26pm


Postby Dan East » Aug 21, 2004 @ 3:10am

LPTSTR path[512]={0};

That allocates an array of 512 pointers to strings and sets the first pointer to 0. It does not allocate an actual string array. This is correct:

TCHAR path[512];

Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum