Re: another COM-Question: how to inject a type-lib into a dll?



sure I can :)

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.

If you want I can try to create a minimal VC project to test it, but I
haven't yet. (the project I am talking about is a bit of a patchwork, I
tried something and it got big and didn't work, so I abandoned it :)

.



Relevant Pages

  • Re: Convert int to enum
    ... Why don't you use the ADO header from the Platform SDK? ... No need to process the IDL via MIDL. ... Microsoft MVP, MCSD ... > The problem is not with compiling the msado15_i.c file - that compiles ...
    (microsoft.public.vc.language)
  • Re: Convert int to enum
    ... Why don't you use the ADO header from the Platform SDK? ... No need to process the IDL via MIDL. ... Microsoft MVP, MCSD ... > The problem is not with compiling the msado15_i.c file - that compiles ...
    (microsoft.public.win32.programmer.tools)
  • Re: Convert int to enum
    ... Why don't you use the ADO header from the Platform SDK? ... No need to process the IDL via MIDL. ... Microsoft MVP, MCSD ... > The problem is not with compiling the msado15_i.c file - that compiles ...
    (microsoft.public.win32.programmer.ole)
  • Re: Convert int to enum
    ... Why don't you use the ADO header from the Platform SDK? ... No need to process the IDL via MIDL. ... Microsoft MVP, MCSD ... > The problem is not with compiling the msado15_i.c file - that compiles ...
    (microsoft.public.dotnet.languages.vc)