Click here to Skip to main content
15,887,676 members
Home / Discussions / COM
   

COM

 
GeneralRe: Parameter in ActiveX control Pin
Steve S2-Feb-04 4:23
Steve S2-Feb-04 4:23 
GeneralRe: Parameter in ActiveX control Pin
TrungHuynh2-Feb-04 14:30
TrungHuynh2-Feb-04 14:30 
GeneralRe: Parameter in ActiveX control Pin
Steve S2-Feb-04 22:07
Steve S2-Feb-04 22:07 
GeneralRe: Parameter in ActiveX control Pin
TrungHuynh2-Feb-04 22:25
TrungHuynh2-Feb-04 22:25 
GeneralRe: Parameter in ActiveX control Pin
Steve S3-Feb-04 0:18
Steve S3-Feb-04 0:18 
GeneralRe: Parameter in ActiveX control Pin
TrungHuynh3-Feb-04 14:44
TrungHuynh3-Feb-04 14:44 
GeneralRe: Parameter in ActiveX control Pin
TrungHuynh3-Feb-04 14:46
TrungHuynh3-Feb-04 14:46 
GeneralRe: Parameter in ActiveX control Pin
Steve S3-Feb-04 22:52
Steve S3-Feb-04 22:52 
And there's your problem. The ClassWizard will only allow you to use OLE Automation compatible types. You can "cheat", because the control is in-process, so there isn't any real marshalling being done, by defining the parameter as a VARIANT, then using the fact that a variant will hold a void*, which you'll need to cast back in your control to be a FILE_INFO*.

But you didn't hear it from me....

This definitely should NOT be considered as an option if there is ANY chance that it will be used out of process, where it won't work.

Steve S
GeneralAccessing IE via COM or ActiveX Pin
Dave Midgley1-Feb-04 7:52
Dave Midgley1-Feb-04 7:52 
GeneralRe: HTML control Pin
Anonymous3-Feb-04 22:09
Anonymous3-Feb-04 22:09 
Generalembedding activex control in outlook mail message Pin
emmatty1-Feb-04 3:53
emmatty1-Feb-04 3:53 
GeneralRe: embedding activex control in outlook mail message Pin
gialli1-Feb-04 19:24
gialli1-Feb-04 19:24 
Generalactivex control problem Pin
emmatty30-Jan-04 19:08
emmatty30-Jan-04 19:08 
GeneralRe: activex control problem Pin
AssemblySoft31-Jan-04 12:31
AssemblySoft31-Jan-04 12:31 
GeneralRe: activex control problem Pin
Jörgen Sigvardsson31-Jan-04 12:41
Jörgen Sigvardsson31-Jan-04 12:41 
QuestionPassing complex type through COM interface ? Pin
Alwin7530-Jan-04 12:50
Alwin7530-Jan-04 12:50 
AnswerRe: Passing complex type through COM interface ? Pin
Jörgen Sigvardsson30-Jan-04 13:00
Jörgen Sigvardsson30-Jan-04 13:00 
GeneralCOM+ Catalog Infomation Pin
kimsangwoo30-Jan-04 12:28
kimsangwoo30-Jan-04 12:28 
GeneralProblem with MIDL and Flash IDL Pin
gialli29-Jan-04 22:16
gialli29-Jan-04 22:16 
GeneralPassing variants in Fire_xxx methods Pin
Aby Philip28-Jan-04 4:38
Aby Philip28-Jan-04 4:38 
GeneralRe: Passing variants in Fire_xxx methods Pin
Lim Bio Liong29-Jan-04 4:24
Lim Bio Liong29-Jan-04 4:24 
GeneralCOM and _bstr_t Pin
Tzoockee27-Jan-04 1:05
Tzoockee27-Jan-04 1:05 
GeneralRe: COM and _bstr_t Pin
Steve S27-Jan-04 1:53
Steve S27-Jan-04 1:53 
GeneralDCOM: running COM-server on another PC Pin
Bash27-Jan-04 0:15
Bash27-Jan-04 0:15 
GeneralRe: DCOM: running COM-server on another PC Pin
Anonymous27-Jan-04 3:23
Anonymous27-Jan-04 3:23 

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.