Click here to Skip to main content
15,885,032 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to get the process's DLL module address? Pin
Richard MacCutchan1-Jul-13 22:08
mveRichard MacCutchan1-Jul-13 22:08 
AnswerRe: How to get the process's DLL module address? Pin
Santhosh G_2-Jul-13 5:37
Santhosh G_2-Jul-13 5:37 
AnswerRe: How to get the process's DLL module address? Pin
Ghosuwa Wogomon2-Jul-13 7:30
Ghosuwa Wogomon2-Jul-13 7:30 
Questionis it possible to update a specific column in listview? Pin
JoneLe861-Jul-13 16:37
JoneLe861-Jul-13 16:37 
SuggestionRe: is it possible to update a specific column in listview? Pin
David Crow2-Jul-13 2:49
David Crow2-Jul-13 2:49 
QuestionCFile reads comma delimited text automatically? Pin
Vaclav_1-Jul-13 13:03
Vaclav_1-Jul-13 13:03 
AnswerRe: CFile reads comma delimited text automatically? Pin
SoMad1-Jul-13 14:47
professionalSoMad1-Jul-13 14:47 
QuestionRe: CFile reads comma delimited text automatically? Pin
Vaclav_2-Jul-13 4:04
Vaclav_2-Jul-13 4:04 
Soren, thanks for your help.
Here is the read code.
I did add \n after the comma to the write text.
The file as around 230 bytes, ten string entries (sample "WS2EEE,\n") and even with the iReadBytes set to 250 it get only the first string with comma attached.
I am also having some problems with using Seek to next "record", but I can work on that later.
I was hoping to read the entire file and than process it , but I'll try the CStdioFile and read one line instead.

char pbuf[1000];
UINT nBytesRead;
UINT iRunningTotal = 0;
CString strField, strExcluded;
int iReadBytes = 250;
do
{
nBytesRead = pFile->Read( pbuf, iReadBytes );
TRACE("\nBuffer %s", pbuf);
// extract to delimiting comma
strField = pbuf; // kluge need to learn how to use CString buffer
strExcluded = strField .SpanExcluding( ";,.- :");
int iLenght = strExcluded.GetLength();
iReadBytes = iLenght + 2;
pFile->Seek(iLenght +1 ,CFile::current);
iRunningTotal += nBytesRead;
}while ( iRunningTotal < dwFileLength);
SuggestionRe: CFile reads comma delimited text automatically? Pin
David Crow2-Jul-13 4:09
David Crow2-Jul-13 4:09 
AnswerRe: CFile reads comma delimited text automatically? Pin
SoMad2-Jul-13 20:44
professionalSoMad2-Jul-13 20:44 
QuestionGetting the Command Line of Another Process Pin
Richard Andrew x641-Jul-13 10:58
professionalRichard Andrew x641-Jul-13 10:58 
AnswerRe: Getting the Command Line of Another Process Pin
Garth J Lancaster1-Jul-13 12:47
professionalGarth J Lancaster1-Jul-13 12:47 
GeneralRe: Getting the Command Line of Another Process Pin
Richard Andrew x641-Jul-13 13:14
professionalRichard Andrew x641-Jul-13 13:14 
GeneralRe: Getting the Command Line of Another Process Pin
Garth J Lancaster1-Jul-13 13:18
professionalGarth J Lancaster1-Jul-13 13:18 
SuggestionRe: Getting the Command Line of Another Process Pin
David Crow2-Jul-13 2:56
David Crow2-Jul-13 2:56 
GeneralRe: Getting the Command Line of Another Process Pin
Richard Andrew x642-Jul-13 10:15
professionalRichard Andrew x642-Jul-13 10:15 
QuestionResize bitmap from Clipborad? Pin
JoneLe8630-Jun-13 12:16
JoneLe8630-Jun-13 12:16 
AnswerRe: Resize bitmap from Clipborad? Pin
thanh_bkhn30-Jun-13 20:53
professionalthanh_bkhn30-Jun-13 20:53 
GeneralRe: Resize bitmap from Clipborad? Pin
JoneLe861-Jul-13 9:53
JoneLe861-Jul-13 9:53 
AnswerRe: Resize bitmap from Clipborad? Pin
Jochen Arndt30-Jun-13 21:01
professionalJochen Arndt30-Jun-13 21:01 
GeneralRe: Resize bitmap from Clipborad? Pin
JoneLe861-Jul-13 9:53
JoneLe861-Jul-13 9:53 
Questionhow to cal a single query in visual studio 2010 C++ instead of Stored procedure (Multiple queries)? Pin
kart 230-Jun-13 3:01
kart 230-Jun-13 3:01 
QuestionHow to read a excel file without using microsoft office in mfc? Pin
Le@rner28-Jun-13 22:34
Le@rner28-Jun-13 22:34 
AnswerRe: How to read a excel file without using microsoft office in mfc? Pin
Richard MacCutchan28-Jun-13 23:14
mveRichard MacCutchan28-Jun-13 23:14 
GeneralRe: How to read a excel file without using microsoft office in mfc? Pin
Le@rner29-Jun-13 0:23
Le@rner29-Jun-13 0:23 

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.