For Programmers: Free Programming Magazines  


Home > Archive > Open Source Software > March 2006 > C# source code question?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author C# source code question?
Pam

2006-03-06, 7:00 pm

My brother asked me to pose this question .. .I have no clue if I'm in the
right group or not - as I have no clue what he's asking - if anyone can help
me help him - please let me know.

thanks!

*********
Question:

I am looking for some C# source code on how to use ATL COM Object written in
VC6 in CSharp.
Below is a further explanation.
Does anyone have any source code that I can view that show how to use an
ATL
COM nbject written in VC6 in C#. I have some ATL COM objects the use
IDispatch interfaces for connections, and dispinterface interface for the
sink interfaces. I had no problem adding the COM object as a reference to a
C# windows project, but I am lost on how to sink the dispinterfaceand, and
create an instance on the IDispatch interface. Do I just CreateInstance()
function to load to COM Object like one does in VC6, and make a class
derived from the sink interface and load it the usual way like one does in
VC6? I have research different C# websites but not one really answers what
I am looking for.

Also if both types of interfaces, main interface and sink interface, are
IUKnown interfaces would they be loaded into a C# application the same as
the Dispatch and dispinterface interface? If anyone has any C# projects that
show how to use both set of interfaces?

sun_water_snow(removethis)@hotmail.com



Michael B. Johnson

2006-03-06, 7:00 pm

On Mon, 6 Mar 2006 08:09:10 -0600, "Pam" <pam_staley-remove-this@hotmail.com>
wrote:

>My brother asked me to pose this question .. .I have no clue if I'm in the
>right group or not - as I have no clue what he's asking - if anyone can help
>me help him - please let me know.


This is not the right group in which to pose this kind of question, as it has
nothing to do with open source software nor the movement.
_______________________
Michael B. Johnson
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com