Re: windows 95 RPC

From: vipin (vipin_at_nospam.com)
Date: 05/24/04


Date: Mon, 24 May 2004 15:31:23 +0530

Actually the problem is midl can't generate the output
for an interface like this:-

void TestFunc([out] int *psize , [out,size_is(*psize)] int **ptr);

looks like, it can't take size_is(....) in the parameter attributes.

Now I wrapped it to something like this and it seems to go through fine.

typedef struct {
int size;
[size_is(size)] int **psize;
}Wrapper;

and the new interface like this

void testfunc([out] int *psize , [out] Wrapper *ptr);

midl /no_robust /Oic test.idl generates the stubs properly.

Am I missing something. Can you point me to the proper documentation in msdn
for these discrepancies with windows 98.

thanks
vipin

"vipin" <anonymous@discussions.microsoft.com> wrote in message
news:989CFF9A-6C28-496F-B5CE-2FC92FB6364B@microsoft.com...
> Hi,
> If I use user-defined types for parameters in my interface, the midl
compiler doesn't generate stubs for windows 95,but only winnt4.0 and up. I
pass /no_robust and /Oic to the midl compiler.
>
> But if I use primitive typeslike char*, char**,etc, it creates stubs
properly for win9x.
>
> Can someone tell me how to overcome this?
>
> thanks
> vipin



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)