Click here to Skip to main content
15,923,689 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: record and paly voice Pin
benjymous22-Jan-03 23:42
benjymous22-Jan-03 23:42 
GeneralRe: record and paly voice Pin
TSrinivasR25-Jan-03 7:34
TSrinivasR25-Jan-03 7:34 
GeneralRe: record and paly voice Pin
xxhimanshu22-Jan-03 23:42
xxhimanshu22-Jan-03 23:42 
QuestionHow can I determine the number of pending IO requests in a completion port Pin
Kerry Chou22-Jan-03 22:36
Kerry Chou22-Jan-03 22:36 
QuestionVariantChangeType bug or maybe not? Pin
Zdeslav Vojkovic22-Jan-03 22:30
Zdeslav Vojkovic22-Jan-03 22:30 
AnswerRe: VariantChangeType bug or maybe not? Pin
Stefan Pedersen23-Jan-03 0:24
Stefan Pedersen23-Jan-03 0:24 
GeneralRe: VariantChangeType bug or maybe not? Pin
Zdeslav Vojkovic23-Jan-03 0:28
Zdeslav Vojkovic23-Jan-03 0:28 
GeneralRe: VariantChangeType bug or maybe not? Pin
Stefan Pedersen23-Jan-03 1:11
Stefan Pedersen23-Jan-03 1:11 
You are right. Do I feel like an idiot or what? Smile | :)
However, the reason for this strange behaviour (I think) is that
the BSTR is deallocated within ChangeType and then reallocated.
(It probably doesn't check whether it is changing into the same type, i.e. BSTR->BSTR)
This means that the new pointer is lost since it was assigned to a temp. object.
The _variant_t contains the old pointer that now points to deallocated memory.
I.e. the _variant_t BSTR pointer is dangling after the fn() call.
Then the ghost value is a result of the memory allocation implementation.

"You can stand all night at a redlight anywhere in town, hailing Marys left and right but none of them slow down. I've seen the best of men go past. I don't wanna be the last..."
GeneralRe: VariantChangeType bug or maybe not? Pin
Zdeslav Vojkovic23-Jan-03 1:37
Zdeslav Vojkovic23-Jan-03 1:37 
Generalrollover buttons & WM_MOUSEMOVE & stuff Pin
Tre K Renegade22-Jan-03 22:28
Tre K Renegade22-Jan-03 22:28 
GeneralRe: rollover buttons & WM_MOUSEMOVE & stuff Pin
JohnMcL22-Jan-03 22:36
JohnMcL22-Jan-03 22:36 
GeneralRe: rollover buttons & WM_MOUSEMOVE & stuff Pin
HENDRIK R22-Jan-03 22:41
HENDRIK R22-Jan-03 22:41 
GeneralRe: rollover buttons & WM_MOUSEMOVE & stuff Pin
Jonathan [Darka]22-Jan-03 23:22
professionalJonathan [Darka]22-Jan-03 23:22 
GeneralRe: rollover buttons & WM_MOUSEMOVE & stuff Pin
Tre K Renegade29-Jan-03 0:18
Tre K Renegade29-Jan-03 0:18 
QuestionDo you still MFC with ODBC? Pin
stefan b22-Jan-03 22:24
stefan b22-Jan-03 22:24 
AnswerRe: Do you still MFC with ODBC? Pin
Stefan Pedersen23-Jan-03 0:29
Stefan Pedersen23-Jan-03 0:29 
GeneralRe: Do you still MFC with ODBC? Pin
stefan b23-Jan-03 0:53
stefan b23-Jan-03 0:53 
GeneralRe: Easy way to print a picture (please help me) Pin
Christian Graus22-Jan-03 22:28
protectorChristian Graus22-Jan-03 22:28 
GeneralRe: Easy way to print a picture (please help me) Pin
*Tom*22-Jan-03 22:55
*Tom*22-Jan-03 22:55 
GeneralRe: Easy way to print a picture (please help me) Pin
Christian Graus22-Jan-03 23:02
protectorChristian Graus22-Jan-03 23:02 
GeneralRe: Easy way to print a picture (please help me) Pin
*Tom*22-Jan-03 23:12
*Tom*22-Jan-03 23:12 
GeneralRe: Easy way to print a picture (please help me) Pin
Christian Graus22-Jan-03 23:25
protectorChristian Graus22-Jan-03 23:25 
GeneralRe: Easy way to print a picture (please help me) Pin
CodeBrain22-Jan-03 23:23
CodeBrain22-Jan-03 23:23 
GeneralRe: Easy way to print a picture (please help me) Pin
*Tom*22-Jan-03 23:54
*Tom*22-Jan-03 23:54 
GeneralRe: Easy way to print a picture (please help me) Pin
*Tom*23-Jan-03 0:47
*Tom*23-Jan-03 0: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.