Board index » Visual Studio » Where to learn Managed C++.NET?
|
reservices
|
|
reservices
|
Where to learn Managed C++.NET?
Visual Studio223
Hi there, I am wondering where i can learn Managed C++.NET. I had check out the msdn C++.NET specs. Very hard to learn. I had no money to buy books. And there are far too little tutorials on this area in google. Only see some like Hello World, Sortting algorithm (mostly consoles). I had no much knowledge in c++ so i can't be looking at application and learn it. Any help please? Thanks. - |
| Evan
Registered User |
Wed Oct 01 07:59:38 CDT 2003
Re:Where to learn Managed C++.NET?
Goto www.codeguru.com
Scroll to the bottom for thier columns and regular features section. Kate Gregory has a regular column on managed c++ .NET programming starting from the basics and progressing, should help you. Though you should probably have an good understanding of C++. Also if you are going to do managed code, C# may be a better choice of languages, unless you are a rather advanced C++ programmer and plan on mixing managed and unmanaged C++ code inline there is no real point to doing managed C++ IMHO. Anyhow hope it helps, good luck. -Evan "Chua Wen Ching" <chuawenching@cwc.com>wrote in message QuoteHi there, - |
| a
Registered User |
Wed Oct 01 10:39:38 CDT 2003
Re:Where to learn Managed C++.NET?
I would suggest looking into C#. Its more efficient as far as writting
the code and its all managed nicely. I wrote a OpenGL wrapper for .net in c# and had a great time. Of course the execution time between c# and c++ code isnt the same but thats not always an issue. cya. - |
| Chua
Registered User |
Wed Oct 01 15:36:03 CDT 2003
Re:Where to learn Managed C++.NET?
Dear everyone,
Thanks for the reply. The reason why i want to learn c++.net is bcs i want to write managed wrapper for existing c++ static libraries. That is why? I know c# .. well okay for me to code something. Anyway thanks. yeah i am looking into his articles. Is there any more? :) Thanks. Regards, Chua Wen Ching :p Quote-----Original Message----- |
| Evan
Registered User |
Wed Oct 01 16:14:42 CDT 2003
Re:Where to learn Managed C++.NET?
You can use c# to write a managed wrapper around your native c++. Its all in
the interop namespaces. Enjoy!! -Evan P.S. Check out www.thecodeproject.com I believe there are a few articles with full sample code that do what you want. THis is also one of the most valuable sites for almost everything you could want to do in .NET. "Chua Wen Ching" <chuawenching@cwc.com>wrote in message QuoteDear everyone, - |
| Chua
Registered User |
Thu Oct 02 04:37:54 CDT 2003
Re:Where to learn Managed C++.NET?
You can? You sure?
I am suppose to convert static libs (with .h or .lib) to managed so later i can use C# with it. I don't think COM interop can do this? Not sure.. i base on 2 person.. 1 intel programmer which did this type of stuff and 1 more is the programmer of a game engine. You sure c# can??? Regards, Chua Wen Ching :p Quote-----Original Message----- |
| Evan
Registered User |
Thu Oct 02 08:38:04 CDT 2003
Re:Where to learn Managed C++.NET?
Well I think that there is something being lost in the translation here.
But you can write a C# DLL that wraps your native C++ DLL, so you would use your C# dll to actually call your C++. However if you were going to fully convert you native c++ to some managed form it would probably be a better idea to go with that for optimization purposes. As to am I sure, yes I am I have a huge ASP.NET app that calls all my native C++ DLLs using via C# with DLLImport and marshaling stuff. So I have a native C++ DLL. I create a C# application and then I import the DLL. here is the import syntax. [DllImport("c:\\development\\cpp\\teststuff\\release\\VIsAlive.dll", EntryPoint = "DeleteResults")] unsafe public static extern void DeleteResults(IntPtr pResults); After doing that I can call my DeleteResults function from my C#, just need to make sure the unsae option is set to true in the settings. -Enjoy!! -Evan "Chua Wen Ching" <chuawenching@cwc.com>wrote in message QuoteYou can? You sure? - |
| Chau
Registered User |
Thu Oct 02 14:24:38 CDT 2003
Re:Where to learn Managed C++.NET?
The problem is i do not have any native dlls. It is just
static libs with *.lib. I think so! I can't remember. Coz i am not with my dev PCs. Thanks for the reply. Regards, Chua Wen Ching :p Quote-----Original Message----- |
| a
Registered User |
Thu Oct 02 21:57:55 CDT 2003
Re:Where to learn Managed C++.NET?
The documentation that comes with .NET is massive.
If you take the time to sit down and research info on how to wrap functions from external modules, im sure you'll find more info then you need. cya. - |
