Click here to Skip to main content
15,915,739 members
Home / Discussions / C#
   

C#

 
GeneralRe: Automation server in C# Pin
Heath Stewart3-Dec-04 7:11
protectorHeath Stewart3-Dec-04 7:11 
GeneralRe: Automation server in C# Pin
Member 871963-Dec-04 8:12
Member 871963-Dec-04 8:12 
GeneralRe: Automation server in C# Pin
Heath Stewart3-Dec-04 8:44
protectorHeath Stewart3-Dec-04 8:44 
GeneralRe: Automation server in C# Pin
Member 8719615-Dec-04 3:14
Member 8719615-Dec-04 3:14 
GeneralRe: Automation server in C# Pin
Heath Stewart15-Dec-04 5:25
protectorHeath Stewart15-Dec-04 5:25 
GeneralRe: Automation server in C# Pin
Member 8719615-Dec-04 6:26
Member 8719615-Dec-04 6:26 
GeneralRe: Automation server in C# Pin
Member 8719615-Dec-04 6:22
Member 8719615-Dec-04 6:22 
GeneralRe: Automation server in C# Pin
Heath Stewart15-Dec-04 6:50
protectorHeath Stewart15-Dec-04 6:50 
Jason Ruan wrote:
I am not sure why it needs to call QueryInterface.

All methods exposed by IUnknown - which every interface inherits from - is essential to COM. QueryInterface (or just "QI" for us COM-heads, like you QI for an interface) is how you get a reference to an object based on an interface it exposes, or you get E_NOTIMPLEMENTED if it doesn't support that interface. When an interface is attributed with the ComImportAttribute, the CLR will QI for that interface using the compiler-generated GUID or the GUID in the GuidAttribute for that interface when you cast an object to that interface.

Do the clients make calls directly on the COM object through the remoting proxy, or does the remoting object proxy calls to the COM object? If the clients make calls directly on the COM object through the remoting proxy then the client need a reference to the interface, either defined in the client assemblies or exposed in a shared assembly (unlike managed interfaces, you can define interface with the ComImportAttribute how every many times you want, so long as you use it only to communicate with the COM object, not passing the interface itself since the Type must be the same).

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralInstalling .NET Framework Pin
Ami Bar2-Dec-04 9:26
Ami Bar2-Dec-04 9:26 
GeneralRe: Installing .NET Framework Pin
Heath Stewart2-Dec-04 11:03
protectorHeath Stewart2-Dec-04 11:03 
GeneralRe: Installing .NET Framework Pin
Daniel Turini2-Dec-04 11:32
Daniel Turini2-Dec-04 11:32 
GeneralDownload files ListBox and Thread Pin
fredza2-Dec-04 8:28
fredza2-Dec-04 8:28 
GeneralRe: Download files ListBox and Thread Pin
Nick Parker2-Dec-04 9:31
protectorNick Parker2-Dec-04 9:31 
GeneralRe: Download files ListBox and Thread Pin
fredza2-Dec-04 10:04
fredza2-Dec-04 10:04 
GeneralRe: Download files ListBox and Thread Pin
Heath Stewart2-Dec-04 11:08
protectorHeath Stewart2-Dec-04 11:08 
GeneralClose Windows Form automatically Pin
realmontanakid2-Dec-04 6:27
realmontanakid2-Dec-04 6:27 
GeneralRe: Close Windows Form automatically Pin
Judah Gabriel Himango2-Dec-04 7:34
sponsorJudah Gabriel Himango2-Dec-04 7:34 
GeneralRe: Close Windows Form automatically Pin
Heath Stewart2-Dec-04 7:40
protectorHeath Stewart2-Dec-04 7:40 
GeneralChange text color on a single line Pin
Gywox2-Dec-04 5:45
Gywox2-Dec-04 5:45 
GeneralTest for file lock Pin
Marc Clifton2-Dec-04 5:16
mvaMarc Clifton2-Dec-04 5:16 
GeneralRe: Test for file lock Pin
Heath Stewart2-Dec-04 5:31
protectorHeath Stewart2-Dec-04 5:31 
GeneralRe: Test for file lock Pin
Marc Clifton2-Dec-04 6:04
mvaMarc Clifton2-Dec-04 6:04 
GeneralRe: Test for file lock Pin
Heath Stewart2-Dec-04 7:34
protectorHeath Stewart2-Dec-04 7:34 
GeneralRe: Test for file lock Pin
Willie Lassiter5-Dec-04 17:55
Willie Lassiter5-Dec-04 17:55 
GeneralConverting string to bitmap Pin
jawbrey2-Dec-04 5:15
jawbrey2-Dec-04 5:15 

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.