Managed C++ equivalent for Foo([in] VARIANT_BOOL b, [out, retval] VARIANT *ptr)

  • Thread starter Thread starter Boris
  • Start date Start date
B

Boris

I have an interface in Managed C++ where one of the methods is this one:

Object *Foo(Boolean *b)

When I use tlbexp to check the IDL the line above is converted to:

HRESULT Foo([in, out] VARIANT_BOOL *b, [out, retval] VARIANT *ptr)

However I need:

HRESULT Foo([in] VARIANT_BOOL b, [out, retval] VARIANT *ptr)

What must the declaration of the method look like?

Thanks in advance,
Boris
 
What must the declaration of the method look like?

Probably

Object *Foo(Boolean b)



Mattias
 
Mattias said:
Probably

Object *Foo(Boolean b)

Which is converted to this IDL:

HRESULT Foo([in] unsigned char b, [out, retval] VARIANT *ptr)

Any other idea?

Boris
 
Back
Top