Click here to Skip to main content
15,891,253 members
Home / Discussions / C#
   

C#

 
GeneralRe: Hiding a Fullscreen App (game) Pin
Heath Stewart18-Feb-04 10:45
protectorHeath Stewart18-Feb-04 10:45 
GeneralAutomation Pin
yyf18-Feb-04 5:46
yyf18-Feb-04 5:46 
GeneralRe: Automation Pin
Mazdak18-Feb-04 6:03
Mazdak18-Feb-04 6:03 
GeneralRe: Automation Pin
Heath Stewart18-Feb-04 10:30
protectorHeath Stewart18-Feb-04 10:30 
GeneralRe: Automation Pin
yyf19-Feb-04 3:13
yyf19-Feb-04 3:13 
GeneralRe: Automation Pin
Heath Stewart19-Feb-04 3:20
protectorHeath Stewart19-Feb-04 3:20 
GeneralRe: Automation Pin
yyf19-Feb-04 8:13
yyf19-Feb-04 8:13 
GeneralRe: Automation Pin
Heath Stewart19-Feb-04 8:44
protectorHeath Stewart19-Feb-04 8:44 
Because of the fundamental architecture of COM and .NET interoperability. The code you're doing is essentially what the VB virtual machine does in the background using the IDispatch implementation of automation classes (it finds the method by the DISPID and invokes it with the specified parameters).

You shouldn't have to do this, though. If you create your interop assembly correctly, you just use the classes and methods from that. That's what the interop assembly is for - wrapping the COM control in a runtime-callable wrapper (RCW).

Again, read that link about exposing COM components to the .NET Framework I posted before. It's important to truly understand and not just accept the first thing that works. If you keep doing what you're doing, it'll take you forever to finish! Do it right and create and use the interop assembly.

 

Microsoft MVP, Visual C#
My Articles
Generalopen shared folder Pin
elite2k18-Feb-04 5:35
elite2k18-Feb-04 5:35 
GeneralRe: open shared folder Pin
CWIZO18-Feb-04 6:56
CWIZO18-Feb-04 6:56 
GeneralRe: open shared folder Pin
Heath Stewart18-Feb-04 10:20
protectorHeath Stewart18-Feb-04 10:20 
GeneralRe: open shared folder Pin
Heath Stewart18-Feb-04 10:24
protectorHeath Stewart18-Feb-04 10:24 
GeneralRe: open shared folder Pin
elite2k18-Feb-04 21:49
elite2k18-Feb-04 21:49 
GeneralRe: open shared folder Pin
Heath Stewart19-Feb-04 3:48
protectorHeath Stewart19-Feb-04 3:48 
GeneralProgressBar into StatusBar Pin
Weiye Chen18-Feb-04 4:29
Weiye Chen18-Feb-04 4:29 
GeneralRe: ProgressBar into StatusBar Pin
Heath Stewart18-Feb-04 4:51
protectorHeath Stewart18-Feb-04 4:51 
GeneralRe: ProgressBar into StatusBar Pin
Weiye Chen27-Feb-04 17:53
Weiye Chen27-Feb-04 17:53 
GeneralRe: ProgressBar into StatusBar Pin
Heath Stewart28-Feb-04 3:30
protectorHeath Stewart28-Feb-04 3:30 
GeneralRe: ProgressBar into StatusBar Pin
Weiye Chen28-Feb-04 3:58
Weiye Chen28-Feb-04 3:58 
GeneralAsyncronous Remoting... Pin
Blue_Aqua18-Feb-04 0:53
Blue_Aqua18-Feb-04 0:53 
GeneralRe: Asyncronous Remoting... Pin
Heath Stewart18-Feb-04 4:40
protectorHeath Stewart18-Feb-04 4:40 
GeneralRe: Asyncronous Remoting... Pin
Blue_Aqua18-Feb-04 17:48
Blue_Aqua18-Feb-04 17:48 
GeneralRe: Asyncronous Remoting... Pin
Guillermo Rivero18-Feb-04 7:53
Guillermo Rivero18-Feb-04 7:53 
GeneralRe: Asyncronous Remoting... Pin
Blue_Aqua18-Feb-04 18:43
Blue_Aqua18-Feb-04 18:43 
GeneralMDI problems Pin
ASGill18-Feb-04 0:24
ASGill18-Feb-04 0:24 

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.