Click here to Skip to main content
15,895,283 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
I'm working with very large files and i need to be able to get a 64bit stream position.

ofstream::tellp() returns a streampos, which according to msdn is typedef fpos<mbstate_t> streampos;

Whatever i try and cast the result to, it's wrong for files over 4GB- it's being truncated at 32 bits.

What is odd is that according to mssn, fpos<t> stores a byte offset of type streamoff, and a conversion state of type T. streamoff (according to msdn) is a long in win32 and an __int64 in win64. I am building under win32 but the debugger shows the private _Fpos member of fpos<t> to be of type __int64.

So, irritatingly, the 64 bit value is there in the fpos (i can see in the debugger, it's correct) but i can't get the value out.

Any ideas? there must be a way of getting a 64bit file pos in win32.
using System.Beer;

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 
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 

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.