Probleme with pointer of pointer

A

alexis.meilland

Hello,

Well I am in MC++ .Net 2.0

I want to transform a type lib com to interop assembly.
To do that action, I have to load the typelib thanks to the following
function.

[ DllImport(S"oleaut32.dll", CharSet = CharSet::Unicode, PreserveSig =
false)]
extern void LoadTypeLibEx(String *strTypeLibName,
REGKIND regkind,
[MarshalAs(UnmanagedType::Interface)] [out]
Object ** typeLib);


So my problem is to translate this source code in .Net 1.1 to .Net 2.0

How can I translate this expression? Object ** typeLib

I tried Object^**
But it doesn't work when I want to call the method like this:

LoadTypeLibEx(S"SHDocVw.dll", REGKIND_NONE, & typeLib);

Will you have an idea.

The msdn code is located in:
http://msdn2.microsoft.com/en-us/li...onverter.converttypelibtoassembly(vs.71).aspx

Thank you very much

Alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top