Click here to Skip to main content
15,902,299 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: win API autorun.. I can't use this codes... help me please.. Pin
Stuart Dootson5-Feb-09 19:53
professionalStuart Dootson5-Feb-09 19:53 
GeneralRe: win API autorun.. I can't use this codes... help me please.. Pin
David Crow5-Feb-09 15:31
David Crow5-Feb-09 15:31 
GeneralRe: win API autorun.. I can't use this codes... help me please.. Pin
mgbrain6-Feb-09 9:16
mgbrain6-Feb-09 9:16 
Questionunable to concatenate strings in c++ [RESOLVED] Pin
Gregory Lund5-Feb-09 5:42
Gregory Lund5-Feb-09 5:42 
AnswerRe: unable to concatenate strings in c++ Pin
Code-o-mat5-Feb-09 5:53
Code-o-mat5-Feb-09 5:53 
AnswerRe: unable to concatenate strings in c++ Pin
Stuart Dootson5-Feb-09 6:20
professionalStuart Dootson5-Feb-09 6:20 
GeneralRe: unable to concatenate strings in c++ Pin
Gregory Lund5-Feb-09 7:27
Gregory Lund5-Feb-09 7:27 
QuestionHow to read the contents of a VARIANT ? Pin
LindeA5-Feb-09 3:39
LindeA5-Feb-09 3:39 
Hi,

I can not find out how to read what is in a VARIANT, which is the result of calling a method GetAllProperties. The doc of this method only specifies that a VARIANT is returned. It should contain some kind of strings. I tried this :

VARIANT names;
_variant_t v1;
VARTYPE vtype;
long ix;
...
x->GetAllProperties(&names);

if (V_ISARRAY(&names)) {
SafeArrayGetVartype(names.parray,&vtype);
// this returns 0x0800 in vtype, so I assume it is an array of _variant_t !!!
for (ix=0;ix<nprops;ix++) {
SafeArrayGetElement(names.parray,&ix,&v1);
_bstr_t s1(v1);
printf("name=%s\n",(char *)s1);
}
}

But this ends in an exception during the statement "_bstr_t s1(v1);"

What do I do wrong ???

Linde Ackermans
AnswerRe: How to read the contents of a VARIANT ? Pin
CPallini5-Feb-09 3:55
mveCPallini5-Feb-09 3:55 
GeneralRe: How to read the contents of a VARIANT ? Pin
LindeA5-Feb-09 21:19
LindeA5-Feb-09 21:19 
AnswerRe: How to read the contents of a VARIANT ? Pin
prasad_som5-Feb-09 4:20
prasad_som5-Feb-09 4:20 
Questionconnecting to mysql server in remote location .. Pin
Thilek5-Feb-09 2:34
Thilek5-Feb-09 2:34 
AnswerRe: connecting to mysql server in remote location .. Pin
Stuart Dootson5-Feb-09 4:02
professionalStuart Dootson5-Feb-09 4:02 
GeneralRe: connecting to mysql server in remote location .. Pin
Thilek5-Feb-09 5:30
Thilek5-Feb-09 5:30 
GeneralRe: connecting to mysql server in remote location .. Pin
Stuart Dootson5-Feb-09 6:13
professionalStuart Dootson5-Feb-09 6:13 
GeneralRe: connecting to mysql server in remote location .. Pin
Thilek5-Feb-09 23:18
Thilek5-Feb-09 23:18 
QuestionIShellFolder::SetNameOf() setting only virtual folders Pin
ab4rum5-Feb-09 2:26
ab4rum5-Feb-09 2:26 
AnswerRe: IShellFolder::SetNameOf() setting only virtual folders Pin
Stuart Dootson5-Feb-09 6:23
professionalStuart Dootson5-Feb-09 6:23 
GeneralRe: IShellFolder::SetNameOf() setting only virtual folders Pin
ab4rum7-Feb-09 0:28
ab4rum7-Feb-09 0:28 
QuestionNeed help on how to create image on child window and have to move along with vertical scroll bar to my dialog box Pin
John5025-Feb-09 2:13
John5025-Feb-09 2:13 
AnswerRe: Need help on how to create image on child window and have to move along with vertical scroll bar to my dialog box Pin
Stuart Dootson5-Feb-09 3:03
professionalStuart Dootson5-Feb-09 3:03 
GeneralRe: Need help on how to create image on child window and have to move along with vertical scroll bar to my dialog box Pin
John5025-Feb-09 20:04
John5025-Feb-09 20:04 
GeneralRe: Need help on how to create image on child window and have to move along with vertical scroll bar to my dialog box Pin
Stuart Dootson5-Feb-09 21:34
professionalStuart Dootson5-Feb-09 21:34 
GeneralRe: Need help on how to create image on child window and have to move along with vertical scroll bar to my dialog box Pin
John5026-Feb-09 5:13
John5026-Feb-09 5:13 
GeneralRe: Need help on how to create image on child window and have to move along with vertical scroll bar to my dialog box Pin
Stuart Dootson6-Feb-09 5:50
professionalStuart Dootson6-Feb-09 5:50 

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.