Re: another COM-Question: how to inject a type-lib into a dll?
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Mon, 23 Jan 2006 11:01:52 -0500
Axel Bock <axel.bock.news@xxxxxxxxxxxxxx> wrote:
> Basically I created a COM server project, and defined a class with a
> method:
>
> STDMETHODIMP
> MyClass::MyMethod(myEnumType en, VARIANT_BOOL somethingElse)
> { ... }
>
> When compiling the MIDL compiler said:
> error MIDL2011 : unresolved type declaration : ....
>
> That is the error I am referring to. Cause it might be that I will be
> porting a project with **many** custom typedef'ed enums I really don't
> want to write a MIDL definition for each of them manually.
Can't you copy-and-paste already-written definitions from your header
files into your IDL file? Also, you can use #include in the IDL file in
the usual way. If you have a header with these enums and nothing else,
you should be able to just include it.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- Follow-Ups:
- Re: another COM-Question: how to inject a type-lib into a dll?
- From: Axel Bock
- Re: another COM-Question: how to inject a type-lib into a dll?
- From: Axel Bock
- Re: another COM-Question: how to inject a type-lib into a dll?
- References:
- another COM-Question: how to inject a type-lib into a dll?
- From: Axel Bock
- Re: another COM-Question: how to inject a type-lib into a dll?
- From: Igor Tandetnik
- Re: another COM-Question: how to inject a type-lib into a dll?
- From: Axel Bock
- Re: another COM-Question: how to inject a type-lib into a dll?
- From: Igor Tandetnik
- Re: another COM-Question: how to inject a type-lib into a dll?
- From: Axel Bock
- another COM-Question: how to inject a type-lib into a dll?
- Prev by Date: Re: CComPtr oddity?
- Next by Date: Re: How to send a data struct through a socket
- Previous by thread: Re: another COM-Question: how to inject a type-lib into a dll?
- Next by thread: Re: another COM-Question: how to inject a type-lib into a dll?
- Index(es):
Relevant Pages
|
Loading