Click here to Skip to main content
15,892,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Pausing Current Executing Thread and Until the new Thread Returns Pin
Aescleal22-Jun-10 6:15
Aescleal22-Jun-10 6:15 
GeneralRe: Pausing Current Executing Thread and Until the new Thread Returns Pin
Richard MacCutchan22-Jun-10 7:20
mveRichard MacCutchan22-Jun-10 7:20 
GeneralRe: Pausing Current Executing Thread and Until the new Thread Returns Pin
Aescleal22-Jun-10 10:17
Aescleal22-Jun-10 10:17 
GeneralRe: Pausing Current Executing Thread and Until the new Thread Returns Pin
Richard MacCutchan22-Jun-10 10:32
mveRichard MacCutchan22-Jun-10 10:32 
GeneralRe: Pausing Current Executing Thread and Until the new Thread Returns Pin
El Corazon22-Jun-10 14:18
El Corazon22-Jun-10 14:18 
Questiongetting 64 bit stream pos Pin
Jon Hulatt22-Jun-10 5:47
Jon Hulatt22-Jun-10 5:47 
AnswerRe: getting 64 bit stream pos Pin
«_Superman_»22-Jun-10 5:58
professional«_Superman_»22-Jun-10 5:58 
AnswerRe: getting 64 bit stream pos [modified] Pin
Aescleal22-Jun-10 6:12
Aescleal22-Jun-10 6:12 
What happens when you use the seekpos member of std::fstream::pos_type (i.e. the thing returned by tellp)?

As far as I can tell that's a 64 bit value (long long on VC++ 2010). Not sure how standard that is as I don't deal with large files much.

Cheers,

Ash

PS:

Something like:

std::fstream fs( ... );

// More good stuff

std::fstream::pos_type pt( fs.tellp() );
fpos_t fpt( pt.seekpos() );


EDIT: Looks like this is about as portable as a brick. According to the standard about all streampos has to do is support conversion to/from an int and be comparable with another streampos.

modified on Tuesday, June 22, 2010 12:23 PM

GeneralRe: getting 64 bit stream pos Pin
Jon Hulatt22-Jun-10 22:14
Jon Hulatt22-Jun-10 22:14 
QuestionC2661 Pin
T.RATHA KRISHNAN22-Jun-10 4:32
T.RATHA KRISHNAN22-Jun-10 4:32 
AnswerRe: C2661 Pin
jeron122-Jun-10 4:39
jeron122-Jun-10 4:39 
GeneralRe: C2661 Pin
T.RATHA KRISHNAN22-Jun-10 4:46
T.RATHA KRISHNAN22-Jun-10 4:46 
GeneralRe: C2661 Pin
Chris Meech22-Jun-10 5:13
Chris Meech22-Jun-10 5:13 
QuestionError Pin
john563222-Jun-10 3:26
john563222-Jun-10 3:26 
AnswerRe: Error Pin
Mohan Ramachandra22-Jun-10 3:33
Mohan Ramachandra22-Jun-10 3:33 
AnswerRe: Error Pin
Emilio Garavaglia22-Jun-10 4:14
Emilio Garavaglia22-Jun-10 4:14 
QuestionCButton changing background color Pin
Sakhalean22-Jun-10 1:43
Sakhalean22-Jun-10 1:43 
AnswerRe: CButton changing background color Pin
Mohan Ramachandra22-Jun-10 3:23
Mohan Ramachandra22-Jun-10 3:23 
GeneralRe: CButton changing background color Pin
Sakhalean22-Jun-10 3:57
Sakhalean22-Jun-10 3:57 
QuestionCommunication between applications: a camera service Pin
igala.net21-Jun-10 23:52
igala.net21-Jun-10 23:52 
AnswerRe: Communication between applications: a camera service Pin
Code-o-mat22-Jun-10 0:45
Code-o-mat22-Jun-10 0:45 
GeneralRe: Communication between applications: a camera service Pin
igala.net22-Jun-10 6:04
igala.net22-Jun-10 6:04 
GeneralRe: Communication between applications: a camera service Pin
Code-o-mat22-Jun-10 9:05
Code-o-mat22-Jun-10 9:05 
GeneralRe: Communication between applications: a camera service Pin
igala.net22-Jun-10 9:39
igala.net22-Jun-10 9:39 
GeneralRe: Communication between applications: a camera service Pin
Code-o-mat22-Jun-10 9:47
Code-o-mat22-Jun-10 9:47 

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.