Benutzung von Datentypen aus COM-Dlls



Hallo NG,

ich habe folgendes Problem: Unser Kunde hat eine Typenbiliotek von der ich
die DLL bekommen habe und ich soll ein Interface daraus in meinem COM-Server
als Parameter einer Methode Nutzen.
Als erstes habe ich die DLL mit "importlib("Kunden.DLL");" in der Library
definition meiner Typenbiliothek eingefügt das an sich gibt keine Fehler von
MIDL. Wenn ich aber das Interface als parameter meiner Methode einbaue Gibts
den error MIDL2009 der besagt das das Symbol nicht definiert ist.

Kann mir jemand auf die Sprünge helfen damit der MIDL nicht mehr streikt?

Gruss Klaus


.



Relevant Pages

  • Re: SAFEARRAY(Interface)
    ... This method definition is clearly not automation-compliant. ... So it means that a custom proxy-stub must be generated by the MIDL ... Out of the box, if you try to define the above COM interface method, the MIDL compiler give a warning message: ... If so, I'm speculating that this COM object's interface was designed not to be marshaled at all, and therefore the COM ...
    (microsoft.public.win32.programmer.ole)
  • Re: IDL to C#?
    ... but many attributes used in the oleidl.idl cant be parsed be ... > MIDL and TlbImp is the way to go. ... > interface declarations directly in C# instead. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: HRESULT only required for Automation-compatible interfaces?
    ... Even in a interface, you are still limited to MIDL types (note ... for generating marshalling support - but you explicitly don't want it. ... to the same flavor of CRT DLL (otherwise, binary layout of the string ...
    (microsoft.public.vc.atl)
  • Re: MIDL class an C++Code binden
    ... MR - Rudolf Meier ... "Matthias Friedrich" schrieb im Newsbeitrag ... ich habe in MIDL ein Interface deklariert und eine Klasse, ...
    (microsoft.public.de.vc)

Loading