Click here to Skip to main content
15,916,702 members
Home / Discussions / COM
   

COM

 
GeneralDump questio once again Pin
El'Cachubrey14-Aug-03 2:51
El'Cachubrey14-Aug-03 2:51 
GeneralWierd problem with DLL!!! Pin
Brigg Thorp14-Aug-03 2:10
Brigg Thorp14-Aug-03 2:10 
GeneralInterface problem with MF Dialog app. + COM object Pin
Brian van der Beek13-Aug-03 8:36
Brian van der Beek13-Aug-03 8:36 
GeneralRe: Interface problem with MF Dialog app. + COM object Pin
Stephane Rodriguez.13-Aug-03 23:13
Stephane Rodriguez.13-Aug-03 23:13 
Generalhelp for directx Pin
includeh1013-Aug-03 7:51
includeh1013-Aug-03 7:51 
Generalprogramming autocad : GetAttributes Pin
JP GOBLET12-Aug-03 6:29
JP GOBLET12-Aug-03 6:29 
GeneralRe: programming autocad : GetAttributes Pin
Steve S12-Aug-03 22:11
Steve S12-Aug-03 22:11 
GeneralRe: programming autocad : GetAttributes Pin
JP GOBLET12-Aug-03 22:52
JP GOBLET12-Aug-03 22:52 
IAcadAttributeReferencePtr pAttribRef = NULL;
...
result = SafeArrayGetElement(arrayAttrib.parray, &i, pAttribRef);

result = E_INVALIDARG : one of the arguments is invalid.

Of course the invalid argument must be pAttribRef, but i have no
idea of the way to persuade SafeArrayGetElement to put what i want
in this argument ...
I have already used SafeArrayGetElement to extract simple values
(int, char buffer, ...), but not a com object.

Perhaps my IAcadAttributeReferencePtr is 'hidden' in a variant ?
I try this :

_variant_t val;
result = SafeArrayGetElement(arrayAttrib.parray, &i, &val); // --> result = S_OK

but when looking inside this variant, I have no clue to extract what i want.

Autocad documentation gives only examples in VBA, where all seems so simple...

thank you for your help
GeneralRe: programming autocad : GetAttributes Pin
Steve S12-Aug-03 23:38
Steve S12-Aug-03 23:38 
GeneralRe: programming autocad : GetAttributes Pin
JP GOBLET13-Aug-03 0:28
JP GOBLET13-Aug-03 0:28 
GeneralRe: programming autocad : GetAttributes Pin
Steve S13-Aug-03 0:40
Steve S13-Aug-03 0:40 
GeneralRe: programming autocad : GetAttributes Pin
JP GOBLET13-Aug-03 1:15
JP GOBLET13-Aug-03 1:15 
GeneralRe: programming autocad : GetAttributes Pin
JP GOBLET18-Aug-03 6:17
JP GOBLET18-Aug-03 6:17 
GeneralRe: programming autocad : GetAttributes Pin
JP GOBLET18-Aug-03 6:46
JP GOBLET18-Aug-03 6:46 
GeneralRe: programming autocad : GetAttributes Pin
JP GOBLET18-Aug-03 21:23
JP GOBLET18-Aug-03 21:23 
GeneralRe: programming autocad : GetAttributes Pin
Steve S18-Aug-03 22:09
Steve S18-Aug-03 22:09 
GeneralRe: programming autocad : GetAttributes Pin
JP GOBLET19-Aug-03 0:25
JP GOBLET19-Aug-03 0:25 
GeneralRe: programming autocad : GetAttributes Pin
Steve S19-Aug-03 0:38
Steve S19-Aug-03 0:38 
GeneralRe: programming autocad : GetAttributes Pin
Steve S19-Aug-03 0:44
Steve S19-Aug-03 0:44 
GeneralRe: programming autocad : GetAttributes Pin
JP GOBLET19-Aug-03 2:58
JP GOBLET19-Aug-03 2:58 
GeneralRe: programming autocad : GetAttributes Pin
JP GOBLET19-Aug-03 3:44
JP GOBLET19-Aug-03 3:44 
GeneralRe: programming autocad : GetAttributes Pin
JP GOBLET19-Aug-03 4:02
JP GOBLET19-Aug-03 4:02 
GeneralRe: programming autocad : GetAttributes Pin
Steve S19-Aug-03 4:37
Steve S19-Aug-03 4:37 
QuestionWhat is wrong with this code!!! Pin
adsilva12-Aug-03 0:36
adsilva12-Aug-03 0:36 
AnswerRe: What is wrong with this code!!! Pin
Stephane Rodriguez.12-Aug-03 0:51
Stephane Rodriguez.12-Aug-03 0:51 

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.