Re: Calling C# COM from C (not C++)
- From: "Amil" <AmilHanish@xxxxxxxxxxx>
- Date: Fri, 22 Apr 2005 09:17:04 -0600
As I already stated....C++ is not an option. The C code uses a third-part
compiler for interfacing with certain electronic devices. After searching
the Internet, I think the answer about interfacing with COM with C is a huge
huge huge pain!
Amil
"Willy Denoyette [MVP]" <willy.denoyette@xxxxxxxxxx> wrote in message
news:#L9qCxyRFHA.3096@xxxxxxxxxxxxxxxxxxxxxxx
>
> "Amil" <AmilHanish@xxxxxxxxxxx> wrote in message
> news:%239a3MWpRFHA.2736@xxxxxxxxxxxxxxxxxxxxxxx
> >I have a managed C# COM object that I currently use fine with an ASP web
> > page. I want to call it from a legacy piece of C code. Does anyone
have
> > a
> > REAL example of how to call CoInitialize, CoCreateInstance, etc from C
> > (not
> > C++)? Any info on how to generate .h files from c# would be great.
> > Thanks.
> >
> > Amil
> >
> >
>
> Why not C++, Do you have a language issue or a compiler issue?.
> VC++ has an option to import a tlb file (f.i created by regasm.exe) and
> create the interface headers.
> You will have a hard time to create the header files by hand.
>
> Willy.
>
>
.
- References:
- Calling C# COM from C (not C++)
- From: Amil
- Re: Calling C# COM from C (not C++)
- From: Willy Denoyette [MVP]
- Calling C# COM from C (not C++)
- Prev by Date: Re: Calling C# COM from C (not C++)
- Next by Date: HOW TO: Catch Inbox Items When They Arrive
- Previous by thread: Re: Calling C# COM from C (not C++)
- Next by thread: Re: Calling C# COM from C (not C++)
- Index(es):
Relevant Pages
|