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

Tip: Looking for answers? Try searching our database.

call managed/unmanaged classes from unmanaged code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bonk - 29 Sep 2005 08:43 GMT
Hello,

I am trying to create a c++ dll or lib (not COM) that contains a little
bit of managed code and a lot of unmanged code using c++/CLI. Basically
some classes rely on managed bits internally. But nothing of that
managed stuff will be exposed to the outside. The user of that dll is
suppsed to "see" only plain unmanaged c++ classes so that if he uses
that dll he does not have to compile his code using that /CLR switch.

Do you think something like that is possible? If so, how ?
Or will I have to use COM if I want create and use dlls that also
contain managed code ?
Marcus Heege - 01 Oct 2005 16:10 GMT
It is possible.

Issues I am aware of (OTOMH):
* somewhat increased load times
* __declspec(appdomain) variables are initialized when the CLR is loaded (by
the module .cctor) - don't access them earlier

If you face other issues, let me know.

Marcus Heege

> Hello,
>
[quoted text clipped - 8 lines]
> Or will I have to use COM if I want create and use dlls that also contain
> managed code ?

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.