Click here to Skip to main content
15,927,947 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CLSID Pin
Matthew Faithfull1-Jun-07 22:45
Matthew Faithfull1-Jun-07 22:45 
QuestionCSplitterWnd Pin
TariqZ1-Jun-07 21:21
TariqZ1-Jun-07 21:21 
AnswerRe: CSplitterWnd Pin
Hamid_RT1-Jun-07 21:58
Hamid_RT1-Jun-07 21:58 
AnswerRe: CSplitterWnd Pin
Mark Salsbery2-Jun-07 5:28
Mark Salsbery2-Jun-07 5:28 
QuestionMail -mfc Pin
prathuraj1-Jun-07 20:09
prathuraj1-Jun-07 20:09 
GeneralRe: Mail -mfc Pin
Matthew Faithfull1-Jun-07 21:56
Matthew Faithfull1-Jun-07 21:56 
AnswerRe: Mail -mfc Pin
Hamid_RT1-Jun-07 21:57
Hamid_RT1-Jun-07 21:57 
Questionseekg() and streampos, C++ Pin
C_Zealot1-Jun-07 17:40
C_Zealot1-Jun-07 17:40 
Hi all:

I need to employ seekg() and streampos to extract a string containing a certain word from a text file.

I have written:

typedef vector<streampos> OccurrenceList; //OccurenceList is an array of vectors which hold all the "streampos" for a given word.
vector<streampos>::iterator it;
for (it = occurrences.begin(); it != occurrences.end(); it++) {
*it -= 35; //Set the negative offset.
fin.seekg(*it); //fin is the text file.
cout << fin.get(); //Get one character to verify that everything works before proceeding any further.
}

But what I got (111) is NOT what I expected.

Can any one help?
Thank you
GeneralRe: seekg() and streampos, C++ Pin
Rajkumar R3-Jun-07 21:48
Rajkumar R3-Jun-07 21:48 
AnswerRe: seekg() and streampos, C++ Pin
C_Zealot3-Jun-07 23:34
C_Zealot3-Jun-07 23:34 
AnswerRe: seekg() and streampos, C++ Pin
Rajkumar R4-Jun-07 2:02
Rajkumar R4-Jun-07 2:02 
QuestionDirectory Search Sort Order Pin
Kaylin1-Jun-07 16:26
Kaylin1-Jun-07 16:26 
AnswerRe: Directory Search Sort Order Pin
Mark Salsbery2-Jun-07 5:34
Mark Salsbery2-Jun-07 5:34 
Questionsystemtray icon Pin
locoone1-Jun-07 16:04
locoone1-Jun-07 16:04 
AnswerRe: systemtray icon Pin
Mark Salsbery2-Jun-07 5:42
Mark Salsbery2-Jun-07 5:42 
AnswerRe: systemtray icon Pin
Hamid_RT2-Jun-07 20:26
Hamid_RT2-Jun-07 20:26 
QuestionExtracting lparam from WM_KEYDOWN MSG Pin
aquawicket1-Jun-07 12:47
aquawicket1-Jun-07 12:47 
AnswerRe: Extracting lparam from WM_KEYDOWN MSG Pin
Mark Salsbery1-Jun-07 13:39
Mark Salsbery1-Jun-07 13:39 
GeneralRe: Extracting lparam from WM_KEYDOWN MSG Pin
aquawicket1-Jun-07 13:43
aquawicket1-Jun-07 13:43 
GeneralRe: Extracting lparam from WM_KEYDOWN MSG Pin
Mizan Rahman12-Aug-13 23:24
Mizan Rahman12-Aug-13 23:24 
QuestionUploading file via HTTP Pin
BitWare1-Jun-07 10:09
BitWare1-Jun-07 10:09 
QuestionRe: Uploading file via HTTP Pin
David Crow1-Jun-07 10:19
David Crow1-Jun-07 10:19 
AnswerRe: Uploading file via HTTP Pin
BitWare1-Jun-07 10:29
BitWare1-Jun-07 10:29 
GeneralRe: Uploading file via HTTP Pin
David Crow1-Jun-07 10:33
David Crow1-Jun-07 10:33 
QuestionInterop couse in c++ Pin
includeh101-Jun-07 5:10
includeh101-Jun-07 5:10 

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.