Click here to Skip to main content
15,918,125 members
Home / Discussions / C#
   

C#

 
GeneralRe: "contexMenu" in "TreeView" for specific "Node". Pin
saud_a_k9-Jul-04 1:37
saud_a_k9-Jul-04 1:37 
GeneralReturning a String from Managed to Unmanaged Code Pin
SanShou8-Jul-04 6:25
SanShou8-Jul-04 6:25 
GeneralRe: Returning a String from Managed to Unmanaged Code Pin
Heath Stewart8-Jul-04 8:49
protectorHeath Stewart8-Jul-04 8:49 
GeneralRe: Returning a String from Managed to Unmanaged Code Pin
SanShou8-Jul-04 8:57
SanShou8-Jul-04 8:57 
Generalmicrosoft.office.interop Pin
dcronje8-Jul-04 5:49
dcronje8-Jul-04 5:49 
GeneralRe: microsoft.office.interop Pin
Heath Stewart8-Jul-04 8:28
protectorHeath Stewart8-Jul-04 8:28 
GeneralIDragSourceHelper problem Pin
TylerBrinks8-Jul-04 4:17
TylerBrinks8-Jul-04 4:17 
GeneralRe: IDragSourceHelper problem Pin
Heath Stewart8-Jul-04 5:28
protectorHeath Stewart8-Jul-04 5:28 
It's the IID (interface GUID) that's the problem, but the COM object GUID (that's what a CLSID is - a GUID for a class). You must have defined an interop class for the shell object that implements IDragSourceHelper.

See, you don't actually create an interface; an interface is abstract and can't be instantiated. What happens behind the scenes (in the CLR) is that the COM object is created and AddRef'd. The CLR QI's (QueryInterface) for the interface when you perform a cast and returns the interface you want (to which you're casting).

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: IDragSourceHelper problem Pin
TylerBrinks8-Jul-04 5:52
TylerBrinks8-Jul-04 5:52 
GeneralRe: IDragSourceHelper problem Pin
Heath Stewart8-Jul-04 6:43
protectorHeath Stewart8-Jul-04 6:43 
GeneralRe: IDragSourceHelper problem Pin
Heath Stewart8-Jul-04 6:53
protectorHeath Stewart8-Jul-04 6:53 
GeneralForm display porblem Pin
wk_vigorous8-Jul-04 1:52
wk_vigorous8-Jul-04 1:52 
GeneralRe: Form display porblem Pin
Nick Parker8-Jul-04 3:43
protectorNick Parker8-Jul-04 3:43 
GeneralRe: Form display porblem Pin
wk_vigorous8-Jul-04 4:43
wk_vigorous8-Jul-04 4:43 
GeneralRe: Form display porblem Pin
Heath Stewart8-Jul-04 5:21
protectorHeath Stewart8-Jul-04 5:21 
GeneralSelection in datagrid gets really slow Pin
Atlemann8-Jul-04 1:02
Atlemann8-Jul-04 1:02 
Generalstring==C#?YES:NO Pin
saud_a_k7-Jul-04 22:49
saud_a_k7-Jul-04 22:49 
GeneralRe: string==C#?YES:NO Pin
SJ_Phoenix8-Jul-04 0:13
SJ_Phoenix8-Jul-04 0:13 
GeneralRe: string==C#?YES:NO Pin
Nick Parker8-Jul-04 1:37
protectorNick Parker8-Jul-04 1:37 
GeneralRe: string==C#?YES:NO Pin
Heath Stewart8-Jul-04 5:02
protectorHeath Stewart8-Jul-04 5:02 
GeneralRe: string==C#?YES:NO Pin
Grimolfr8-Jul-04 9:01
Grimolfr8-Jul-04 9:01 
GeneralRe: string==C#?YES:NO Pin
leppie8-Jul-04 9:35
leppie8-Jul-04 9:35 
GeneralRe: string==C#?YES:NO Pin
saud_a_k8-Jul-04 19:28
saud_a_k8-Jul-04 19:28 
GeneralRe: string==C#?YES:NO Pin
leppie8-Jul-04 9:37
leppie8-Jul-04 9:37 
GeneralRe: string==C#?YES:NO Pin
saud_a_k8-Jul-04 19:32
saud_a_k8-Jul-04 19:32 

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.