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++ / July 2005

Tip: Looking for answers? Try searching our database.

What is the best case for accessing managed code from unmanaged code?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bae,Hyun-jik - 28 Jul 2005 03:15 GMT
Hi,

What is the best case for accessing managed code from unmanaged C++ code,
considering that the unmanaged code doesn't have managed extension?

Please reply.
Thanks in advance.

Regards,
Hyun-jik Bae
Carl Daniel [VC++ MVP] - 28 Jul 2005 03:27 GMT
> Hi,
>
> What is the best case for accessing managed code from unmanaged C++ code,
> considering that the unmanaged code doesn't have managed extension?

See the CLR hosting APIs.

See http://msdn.microsoft.com/msdnmag/issues/01/03/clr/default.aspx, for
example.

Using Managed Extensions is a far better choice in most cases.

-cd
Nishant Sivakumar - 28 Jul 2005 06:11 GMT
In addition to Carl's suggestions, you could also look at CCW.

Signature

Regards,
Nish [VC++ MVP]
http://www.voidnish.com
http://blog.voidnish.com

Marcus Heege - 28 Jul 2005 10:49 GMT
In addition to that, you can also use pointers to managed functions with
unmanaged calling conventions.

A standard case of this is virtual functions of native classes implemented
in managed code. Other cases exist as well.

Marcus Heege

> In addition to Carl's suggestions, you could also look at CCW.
Carl Daniel [VC++ MVP] - 28 Jul 2005 14:37 GMT
> In addition to that, you can also use pointers to managed functions
> with unmanaged calling conventions.
>
> A standard case of this is virtual functions of native classes
> implemented in managed code. Other cases exist as well.

... but only through the use of Managed Extensions for C++, which the OP
specifically didn't want to use.

-cd

Rate this thread:







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.