Click here to Skip to main content
15,917,964 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralTiming in a console-based program Pin
Ulf29-Oct-00 2:27
Ulf29-Oct-00 2:27 
GeneralRe: Timing in a console-based program Pin
Erik Funkenbusch29-Oct-00 14:02
Erik Funkenbusch29-Oct-00 14:02 
GeneralCapturing Output Pin
Daniel Barcelos28-Oct-00 16:52
sussDaniel Barcelos28-Oct-00 16:52 
Generalerror using afxpriv.h Pin
Jims27-Oct-00 9:32
Jims27-Oct-00 9:32 
GeneralRe: error using afxpriv.h Pin
Roger C.27-Oct-00 13:20
sussRoger C.27-Oct-00 13:20 
GeneralOh... in the sample they use it. Pin
Roger C.27-Oct-00 13:26
sussRoger C.27-Oct-00 13:26 
GeneralRe: error using afxpriv.h Pin
Erik Funkenbusch27-Oct-00 13:39
Erik Funkenbusch27-Oct-00 13:39 
GeneralYou need to derive from CControlbar Pin
Roger C.27-Oct-00 13:46
sussRoger C.27-Oct-00 13:46 
GeneralRe: error using afxpriv.h Pin
Cristi Posea1-Nov-00 15:56
Cristi Posea1-Nov-00 15:56 
GeneralDCOM func parameters Pin
Roger27-Oct-00 4:58
Roger27-Oct-00 4:58 
QuestionHow to get control panel object. Pin
koteswara26-Oct-00 22:41
koteswara26-Oct-00 22:41 
Generalstoring a windows postion in the registry... Pin
paranoid android26-Oct-00 9:19
paranoid android26-Oct-00 9:19 
GeneralRe: storing a windows postion in the registry... Pin
Christian26-Oct-00 17:32
Christian26-Oct-00 17:32 
GeneralRe: storing a windows postion in the registry... Pin
paranoid android27-Oct-00 10:26
paranoid android27-Oct-00 10:26 
GeneralRe: storing a windows postion in the registry... Pin
Paolo Messina26-Oct-00 23:52
professionalPaolo Messina26-Oct-00 23:52 
GeneralRe: storing a windows postion in the registry... Pin
André Dewispelaere27-Oct-00 5:47
André Dewispelaere27-Oct-00 5:47 
GeneralRe: storing a windows postion in the registry... Pin
Philip Nicoletti27-Oct-00 7:38
Philip Nicoletti27-Oct-00 7:38 
GeneralRe: storing a windows postion in the registry... Pin
paranoid android27-Oct-00 10:28
paranoid android27-Oct-00 10:28 
Generalleft one thing out... Pin
paranoid android27-Oct-00 16:17
paranoid android27-Oct-00 16:17 
GeneralReading delimited files... Pin
Joshua Guy26-Oct-00 7:19
Joshua Guy26-Oct-00 7:19 
As you probably noticed from this post I am a very new newbie to VC++. Here is my problem. I need to read in a test file that might have a format like this... string, int, int. I know in java you can use a string tokenizer to read in each value separatly and by line. I can't seem to figure this out in C++. This is what I have been doing.

CFile myFile("test.txt", CFile::modeWrite);
BYTE buffer[4096];
CString input;
input = myFile.Read(buffer, 4096);

Once I get it into a string object I can use the method SpanExcluding to get a string from the beginning to the first character I specify not to read. I can't seem to get past it thought. I know my approach is probably all wrong so I don't care if you tear it to shreads. I frequently visit this site and know you guys know what you;re doing so thanks for any advice in advance.

Joshua
GeneralRe: Reading delimited files... Pin
Michael Dunn26-Oct-00 19:03
sitebuilderMichael Dunn26-Oct-00 19:03 
GeneralRe: Reading delimited files... Pin
Joshua27-Oct-00 11:34
Joshua27-Oct-00 11:34 
GeneralRe: Reading delimited files... Pin
Roger Scudder27-Oct-00 11:26
Roger Scudder27-Oct-00 11:26 
GeneralRe: Reading delimited files... Pin
Joshua27-Oct-00 11:40
Joshua27-Oct-00 11:40 
GeneralInvisible buttons Pin
David Gallagher26-Oct-00 6:54
David Gallagher26-Oct-00 6:54 

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.