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 / .NET Framework / Interop / August 2003

Tip: Looking for answers? Try searching our database.

Object * to void *

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Itay - 03 Aug 2003 17:17 GMT
Hi all ,

I have a native c++ class which has a method prototyped like :
void f ( void *p1 , void *p2 , void *p3) ....

on the other hand there is a .Net component which uses this class with
an adaptor written in Mc++.

The adaptor gets 'params Object *args' iterating the args and query
the real type of each Object* via GetType().
when revealing the type it should create this value cast it to void*
and then pass it to 'f method' mentioned ealier.
For example it the type is System::Int32 it shoud create an int assign
him the value and cast it to void * and pass it to f.

I couldn't figure out the way to do it .

Thanks for any help.
Itay.
Steve B. [Labo.Net] - 05 Aug 2003 17:07 GMT
See "object missing = System.Reflection.Missing.Value;"

> Hi all ,
>
[quoted text clipped - 15 lines]
> Thanks for any help.
> Itay.

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.