Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / September 2007

Tip: Looking for answers? Try searching our database.

Probleme with pointer of pointer

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
alexis.meilland@gmail.com - 31 Aug 2007 08:36 GMT
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/library/system.runtime.interopservices.typelibc
onverter.converttypelibtoassembly(vs.71).aspx


Thank you very much

Alex
Marcus Heege - 01 Sep 2007 13:57 GMT
Object^%

> Hello,
>
[quoted text clipped - 28 lines]
>
> Alex

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.