Home

Action
Log In

Site Contents
Classified Ads
Developer's Corner
Download Software
Links
Mobile Channels
News
Pocket PC Forums
Reviews
Technical Support
Tips and Tricks
Vendors and Products

Administration
Webmaster

Search


Location: HPC.net for PocketPC
Pocket PC Forums
PocketPC-Dev List Archive
CString problem
Search:

Title:

CString problem

From:

Mailing List Member

Added:

4/9/2002 12:00:00 AM

Message:

Hi

When I fill a CString object with data, I got byte salad after 269 bytes on my PocketPC 2002 system.
The first 269 bytes are filled with the correct data and afterwards there is only trash. The length seems to
be correct.

I put source code of an example to this mail. Maybe you can help me.

BTW: the function works fine if I compile it for PC.

bye
Rainer

CString tmp = "";

int i = 0;

while( i<100 )
{
tmp += _T( "Hello World\n" );
i++;
}

CFileException IniFileException;
CFile IniFile;
unsigned long FileSize;

IniFile.Open( _T( "Hello.txt" ), CFile::modeWrite | CFile::modeCreate , &IniFileException );

FileSize = tmp.GetLength( );

IniFile.Write( CKonvertierung::StringToChar( tmp ) , FileSize );

IniFile.Close( );




All Contents Copyright (c) 2017 Bongiovanni Research & Technology, Inc.