Force MIDL to generate TLB with local interfaces



Hi,

I'm using MIDL to generate TypeLibraries containing some AX interfaces. After spending several day trying to find out why stuff doesn't work I finally found out, that the type library contained the remote interface definitions (e.g. IViewObject::RemoteDraw() vs. IViewObject::Draw()).

I used the following IDL file:

[
uuid(E6951A62-58D0-4500-B15F-F419E00EBD91), // Any valid GUID
helpstring("OLE Type Library"),
version(1.0)
]

library USOLETLB // This will be the package name
{
importlib("stdole.tlb");
import "ocidl.idl";
import "ObjIdl.idl";

interface IViewObject;
interface IViewObjectEx;
}

Is there any way to force MIDL to create a TLB containing the local interface definitions?

Thanks,

Udo
.



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)
  • Benutzung von Datentypen aus COM-Dlls
    ... Unser Kunde hat eine Typenbiliotek von der ich ... Wenn ich aber das Interface als parameter meiner Methode einbaue Gibts ... Kann mir jemand auf die Sprünge helfen damit der MIDL nicht mehr streikt? ... Next by Date: ...
    (microsoft.public.de.vc)
  • 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)