Click here to Skip to main content
15,894,405 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Error "string data,right truncated" generate when trying to Update by CRecordset? Pin
David Crow4-Nov-10 3:01
David Crow4-Nov-10 3:01 
QuestionInterlockedCompareExchange/cmpxchg-lock free queue Pin
Endaroza3-Nov-10 11:53
Endaroza3-Nov-10 11:53 
AnswerRe: InterlockedCompareExchange/cmpxchg-lock free queue Pin
Electron Shepherd3-Nov-10 13:52
Electron Shepherd3-Nov-10 13:52 
GeneralRe: InterlockedCompareExchange/cmpxchg-lock free queue [modified] Pin
Endaroza3-Nov-10 22:03
Endaroza3-Nov-10 22:03 
GeneralRe: InterlockedCompareExchange/cmpxchg-lock free queue Pin
federico.strati3-Nov-10 23:47
federico.strati3-Nov-10 23:47 
AnswerSolved !###$@#$ Pin
Endaroza4-Nov-10 0:01
Endaroza4-Nov-10 0:01 
QuestionFind Count Of Bytes Written To An IStream [modified] Pin
Frederick J. Harris3-Nov-10 8:38
Frederick J. Harris3-Nov-10 8:38 
AnswerRe: Find Count Of Bytes Written To An IStream Pin
Electron Shepherd3-Nov-10 11:34
Electron Shepherd3-Nov-10 11:34 
Frederick J. Harris wrote:
How do you get the number of bytes actually written to a Stream as opposed to the total allocation for the Stream?


I'm not sure you can. I've just looked at the source for an MMC snap-in we have, and that uses streams to store and retrieve the console state. We needed to store some binary data, so we wrote out the length of the data, as a four-byte long, and then the data itself. On reading, we read the first four bytes (which we know will be there), and then use that to determine how much more data to read.

GeneralRe: Find Count Of Bytes Written To An IStream Pin
Frederick J. Harris3-Nov-10 13:45
Frederick J. Harris3-Nov-10 13:45 
AnswerRe: Find Count Of Bytes Written To An IStream Pin
Frederick J. Harris4-Nov-10 4:23
Frederick J. Harris4-Nov-10 4:23 
QuestionHow can use Time Out for any function or thread? Pin
Le@rner3-Nov-10 2:30
Le@rner3-Nov-10 2:30 
AnswerRe: How can use Time Out for any function or thread (URL checker) Pin
Moak3-Nov-10 2:44
Moak3-Nov-10 2:44 
AnswerRe: How can use Time Out for any function or thread? Pin
David Crow3-Nov-10 3:17
David Crow3-Nov-10 3:17 
AnswerRe: How can use Time Out for any function or thread? Pin
yu-jian8-Nov-10 15:21
yu-jian8-Nov-10 15:21 
Questionhow to generate uid for header files Pin
lakshman rao3-Nov-10 2:22
lakshman rao3-Nov-10 2:22 
AnswerRe: how to generate uid for header files Pin
Cedric Moonen3-Nov-10 2:29
Cedric Moonen3-Nov-10 2:29 
AnswerRe: how to generate uid for header files PinPopular
CPallini3-Nov-10 2:50
mveCPallini3-Nov-10 2:50 
AnswerRe: how to generate uid for header files Pin
«_Superman_»3-Nov-10 6:17
professional«_Superman_»3-Nov-10 6:17 
GeneralRe: how to generate uid for header files Pin
lakshman rao8-Nov-10 2:56
lakshman rao8-Nov-10 2:56 
AnswerRe: how to generate uid for header files Pin
yu-jian4-Nov-10 15:20
yu-jian4-Nov-10 15:20 
QuestionNumber of instances running Pin
ganesh.dp2-Nov-10 23:53
ganesh.dp2-Nov-10 23:53 
AnswerRe: Number of instances running Pin
GAJERA3-Nov-10 0:42
GAJERA3-Nov-10 0:42 
AnswerRe: Number of instances running Pin
ShilpiP3-Nov-10 1:58
ShilpiP3-Nov-10 1:58 
AnswerRe: Number of instances running Pin
Sauro Viti3-Nov-10 3:55
professionalSauro Viti3-Nov-10 3:55 
QuestionUSB mass storage vs USB HID Pin
Subrat Patnaik2-Nov-10 23:31
Subrat Patnaik2-Nov-10 23:31 

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.