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

Tip: Looking for answers? Try searching our database.

Managed /unmanaged

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Fredrik Wahlgren - 04 Jan 2005 00:40 GMT
hi

I have apet aproject that i created a long time ago and I now want to make
part of it managed. This is a dtabase application s I want to create a class
in which I wrap ADO.NET. The design is such that when I make a query, I want
to send each string from the query to unmanaged code. In other words, I
simply want to call an unmanaged function from within a managed class within
the same dll.

Is there anything in particular that I should be aware of? All the articles
I have seen talk about calling an unmanaged dll from managed code.

/ Fredrik
Sylvain Lafontaine - 04 Jan 2005 02:35 GMT
You can mixes managed and unmanaged code with VC++.NET, the C++ version that
comes with VS.NET 2002 or 2003.  However, it's not an easy topic and a good
book on the subject is probably the easiest way to master this topic.

If you don't want to buy a book, then you can search the Internet.  For
example, on the www.codeproject.com, the search with ? C++ managed ? will
return many hits.

Another solution would be to use .NET Interoperability and create a COM
object from your C# code.  This will give you the possibility of easily
accessing your .NET code from any language who has support for COM &
Active-X.

S. L.

> hi
>
[quoted text clipped - 13 lines]
>
> / Fredrik
Fredrik Wahlgren - 04 Jan 2005 02:55 GMT
> You can mixes managed and unmanaged code with VC++.NET, the C++ version that
> comes with VS.NET 2002 or 2003.  However, it's not an easy topic and a good
[quoted text clipped - 10 lines]
>
> S. L.

The only book I have is by Kate Gregory "VS.NET 2003 Kick Start". Are there
other books you would recommend?
/ Fredrik
Sylvain Lafontaine - 04 Jan 2005 05:03 GMT
It's always hard to suggest a good book, especially for a topic as vast as
the .NET Framework.  I don't have the Kate Gregory book but it should give
you a fair start about .NET Interoperability.

The books from Adam Nathan: ? .NET and COM: The complete Interoperability
Guide ? and Andrew Troelsen
: ? COM and .NET Interoperability ? looks like two very good books on this
topic (
http://www.amazon.com/exec/obidos/ASIN/067232170X/102-5766017-4616949 ;
http://www.amazon.com/exec/obidos/tg/detail/-/1590590112/ref=pd_bxgy_text_1/102-
5766017-4616949?v=glance&s=books&st
=* )
.

Also, here some articles about this subject:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/m
anunmancode.asp


http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cp
conexposingnetframeworkcomponentstocom.asp


http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cp
conBuildingCOMComponentsForInteroperability.asp


S. L.

>> You can mixes managed and unmanaged code with VC++.NET, the C++ version
> that
[quoted text clipped - 17 lines]
> other books you would recommend?
> / Fredrik
Fredrik Wahlgren - 04 Jan 2005 22:22 GMT
Thank you

/ Fredrik

> It's always hard to suggest a good book, especially for a topic as vast as
> the .NET Framework.  I don't have the Kate Gregory book but it should give
[quoted text clipped - 5 lines]
> topic (
> http://www.amazon.com/exec/obidos/ASIN/067232170X/102-5766017-4616949 ;

http://www.amazon.com/exec/obidos/tg/detail/-/1590590112/ref=pd_bxgy_text_1/102-
5766017-4616949?v=glance&s=books&st
=* )
> .
>
> Also, here some articles about this subject:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/m
anunmancode.asp


http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cp
conexposingnetframeworkcomponentstocom.asp


http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cp
conBuildingCOMComponentsForInteroperability.asp


> S. L.
>
[quoted text clipped - 19 lines]
> > other books you would recommend?
> > / Fredrik

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.