What the?
- From: "Ron H." <rnh@xxxxxxx>
- Date: Tue, 12 Feb 2008 11:20:06 -0600
I wanted to verify that I was getting the correct data so I decided to
temporarily create a CStdioFile and dump the results for my viewing
pleasure. The code looks like this:
CStdioFile DatFile; //opened modeCreate | modeNoTruncate | modeReadWrite
float DataArray[600];//populated elsewhere in the program with the int
DataCount being the number of records.
CString Msg.
int DataCount;
DWORD Cnt;
for(x=0;x<DataCount;x++)
{
Msg.format("%2.5f\n",DataArray[x]);
WriteFile(DatFile,LPCTSTR(Msg),Msg.GetLength(),&Cnt,0);
}
IT DOESN'T WORK! The data is written to the file just fine but there are no
newlines!! I've tried adding white spaces but nothing changes. If I replace
the \n with \r\n it works...
What's going on?
Ron H.
-----------------
www.Newsgroup-Binaries.com - *Completion*Retention*Speed*
Access your favorite newsgroups from home or on the road
-----------------
.
- Follow-Ups:
- Re: What the?
- From: Joseph M . Newcomer
- Re: What the?
- From: Jonathan Wood
- Re: What the?
- From: Tom Serface
- Re: What the?
- From: Mikel
- Re: What the?
- From: David Lowndes
- Re: What the?
- Prev by Date: Re: Changed behavior of overriden OnCmdMsg(...) after migration to Visual Studio 2005
- Next by Date: Re: Multimedia Timer
- Previous by thread: Re: transparent CheckBox/radioBox
- Next by thread: Re: What the?
- Index(es):