Click here to Skip to main content
15,905,614 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Creating an executable from hexcode ( c++ ) Pin
Aescleal22-Jun-10 22:03
Aescleal22-Jun-10 22:03 
GeneralRe: Creating an executable from hexcode ( c++ ) Pin
Stephen Hewitt23-Jun-10 13:27
Stephen Hewitt23-Jun-10 13:27 
QuestionNetwork byte transfer count Pin
Krishnakumartg22-Jun-10 7:53
Krishnakumartg22-Jun-10 7:53 
AnswerRe: Network byte transfer count Pin
Code-o-mat22-Jun-10 9:15
Code-o-mat22-Jun-10 9:15 
AnswerRe: Network byte transfer count Pin
Luc Pattyn22-Jun-10 9:44
sitebuilderLuc Pattyn22-Jun-10 9:44 
GeneralRe: Network byte transfer count Pin
Code-o-mat22-Jun-10 9:53
Code-o-mat22-Jun-10 9:53 
GeneralRe: Network byte transfer count Pin
Luc Pattyn22-Jun-10 9:55
sitebuilderLuc Pattyn22-Jun-10 9:55 
GeneralRe: Network byte transfer count Pin
Code-o-mat22-Jun-10 10:02
Code-o-mat22-Jun-10 10:02 
AnswerRe: Network byte transfer count Pin
Aescleal22-Jun-10 10:21
Aescleal22-Jun-10 10:21 
GeneralRe: Network byte transfer count Pin
Krishnakumartg22-Jun-10 17:50
Krishnakumartg22-Jun-10 17:50 
AnswerRe: Network byte transfer count Pin
David Crow22-Jun-10 16:06
David Crow22-Jun-10 16:06 
QuestionPausing Current Executing Thread and Until the new Thread Returns Pin
Fareed Rizkalla22-Jun-10 5:58
Fareed Rizkalla22-Jun-10 5:58 
AnswerRe: Pausing Current Executing Thread and Until the new Thread Returns PinPopular
Richard MacCutchan22-Jun-10 6:01
mveRichard MacCutchan22-Jun-10 6:01 
AnswerRe: Pausing Current Executing Thread and Until the new Thread Returns Pin
«_Superman_»22-Jun-10 6:06
professional«_Superman_»22-Jun-10 6:06 
AnswerRe: Pausing Current Executing Thread and Until the new Thread Returns Pin
El Corazon22-Jun-10 6:07
El Corazon22-Jun-10 6:07 
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 

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.