Click here to Skip to main content
15,923,689 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: fscanf access violation problem Pin
simaneal5-Jul-05 3:13
simaneal5-Jul-05 3:13 
GeneralRe: fscanf access violation problem Pin
David Crow5-Jul-05 3:29
David Crow5-Jul-05 3:29 
GeneralRe: fscanf access violation problem Pin
simaneal5-Jul-05 7:50
simaneal5-Jul-05 7:50 
GeneralRe: fscanf access violation problem Pin
simaneal5-Jul-05 7:45
simaneal5-Jul-05 7:45 
GeneralRe: fscanf access violation problem Pin
David Crow5-Jul-05 8:26
David Crow5-Jul-05 8:26 
GeneralFillBuffer Pin
Andrew Admire23-Jun-05 8:16
Andrew Admire23-Jun-05 8:16 
GeneralRe: FillBuffer Pin
David Crow23-Jun-05 8:18
David Crow23-Jun-05 8:18 
GeneralRe: FillBuffer Pin
Andrew Admire23-Jun-05 8:22
Andrew Admire23-Jun-05 8:22 
Here is the code for my prog.

#include <iostream>
#include <iomanip>
#include <fstream>
#include "afx.h"
using namespace std;

int main(int argc, char* argv[])
{
int nSizeLimit = 1000;
int nBytesWritten = nSizeLimit + 1;
CFile outFile;

while(int i=0<10000)
{
if(nBytesWritten > nSizeLimit)
{
CString strFileName;
strFileName.Format("LittleFile%d.txt", nBytesWritten++);
if(outFile.m_hFile != CFile::hFileNull)
outFile.Close();
outFile.Open(strFileName, CFile::modeWrite | CFile::shareDenyWrite);
nBytesWritten = 0;
}
char buf[512];
int nBytesToWrite = FillBuffer(1024);
if(nBytesToWrite == 0)
break;
outFile.Write(buf, nBytesToWrite);
nBytesWritten += nBytesToWrite;
}
return 0;
}
GeneralRe: FillBuffer Pin
David Crow23-Jun-05 9:22
David Crow23-Jun-05 9:22 
GeneralRe: FillBuffer Pin
Andrew Admire23-Jun-05 9:30
Andrew Admire23-Jun-05 9:30 
GeneralRe: FillBuffer Pin
David Crow23-Jun-05 9:33
David Crow23-Jun-05 9:33 
GeneralRe: FillBuffer Pin
Andrew Admire23-Jun-05 9:38
Andrew Admire23-Jun-05 9:38 
GeneralRe: FillBuffer Pin
David Crow23-Jun-05 9:43
David Crow23-Jun-05 9:43 
GeneralRe: FillBuffer Pin
Andrew Admire23-Jun-05 9:45
Andrew Admire23-Jun-05 9:45 
Generalclass referencing problem Pin
zildjohn0123-Jun-05 7:40
zildjohn0123-Jun-05 7:40 
GeneralRe: class referencing problem Pin
Chris Losinger23-Jun-05 7:42
professionalChris Losinger23-Jun-05 7:42 
GeneralRe: class referencing problem Pin
John Simon23-Jun-05 7:52
John Simon23-Jun-05 7:52 
GeneralRe: class referencing problem Pin
Jose Lamas Rios23-Jun-05 7:48
Jose Lamas Rios23-Jun-05 7:48 
Generalnew problem Pin
John Simon23-Jun-05 9:35
John Simon23-Jun-05 9:35 
GeneralRe: new problem Pin
Jose Lamas Rios23-Jun-05 10:34
Jose Lamas Rios23-Jun-05 10:34 
GeneralRe: new problem Pin
John Simon23-Jun-05 11:37
John Simon23-Jun-05 11:37 
Generaltext box Pin
trigger9123-Jun-05 6:43
susstrigger9123-Jun-05 6:43 
GeneralRe: text box Pin
Trollslayer23-Jun-05 6:48
mentorTrollslayer23-Jun-05 6:48 
GeneralRe: text box Pin
David Crow23-Jun-05 6:54
David Crow23-Jun-05 6:54 
GeneralRe: text box Pin
Trollslayer23-Jun-05 7:33
mentorTrollslayer23-Jun-05 7:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.