User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Software Developers' Lounge section within the Software Development category of DaniWeb, a massive community of 456,589 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,591 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Software Developers' Lounge advertiser: Programming Forums
View Poll Results: Should you consider switching to the Microsoft's language specifications of C++?
Managed Extensions are helpful, and can save time by NOT creating your own code for it. 0 0%
C++/CLI is a good choice to connect to other .NET languages and has a easy code syntax. 0 0%
Only native C++ is the best. 0 0%
Learning extra in Managed C++ and C++/CLI is too treacherous. 0 0%
Voters: 0. You may not vote on this poll

Views: 1030 | Replies: 5
Reply
Join Date: Aug 2007
Location: Bangalore, India
Posts: 101
Reputation: ChaseVoid is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 10
ChaseVoid's Avatar
ChaseVoid ChaseVoid is offline Offline
Junior Poster

Question Managed C++ and C++/CLI Queries

  #1  
Nov 1st, 2007
I've just looked up my homework and found that that I had to do a Project/Presentation on Microsoft .NET Development Tools and my sub-topic happens to be Visual C++. While doing research about it, I found out about Managed C++ and the recent advanced version C++/CLI by Microsoft.

I know Managed Extensions for C++ is just used to expose the .NET framework functionalities to C++. It's also adds the Garbage Collector Class __gc. But I heard it's now no longer in use.

C++/CLI could be counted as a new programming language cause the syntax is similar to C#. It also introduced the inclusion of ^ handlers, I think. and syntax change. Anyways, I'm wondering if the mscorlib.dll file, which was in Managed C++ still being used here? What functions does this file add to C++ program? System namesapace contains the Console::WriteLine() function, so it's not related to the file.

I'm only gonna use simple programs to explain the concept, cause it's only going to be an introduction from my part, featuring only the important parts of these. So for sure a Hello World! example will make me look stupid, since it's not much different in both syntax. I also need some good working examples for both MC++ and C++/CLI, which I'm trying to search.

There is also one thing that confuses me a lot. In most of the tutorials about C++/CLI and also some in MC++, I've seen them using _tmain(). I'm not sure about it. I've tried it in the VC++ and also the CMD compiler, but gives error. All I know for sure is that in C++ you have to have a main() function, any other shouldn't work.

If you have any good sites or info, related to the above, please give a link or mention it in your reply. I don't want tutorials to those. I'm not learning those languages (for now ^_~, maybe in future I might) I just want to know what makes it different from the native C++ and the new functionality.

I think I'm gonna have a nervous breakdown during the presentation. Argh! I'm really not at all good at talking and especially in front of people. >_> doesn't make much sense huh! But I get nervous like hell, and stammer and then forget what I should say, and end up repeating the same thing, which is really annoying >_<!
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 11,541
Reputation: Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of 
Rep Power: 40
Solved Threads: 972
Moderator
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Most Valuable Poster

Re: Managed C++ and C++/CLI Queries

  #2  
Nov 1st, 2007
think I'm gonna have a nervous breakdown during the presentation. Argh! I'm really not at all good at talking and especially in front of people. >_> doesn't make much sense huh! But I get nervous like hell, and stammer and then forget what I should say, and end up repeating the same thing, which is really annoying >_<!
Take speech 101 course. Use 3x5 cards and write down major topics for discussion then use those cards during your presentation. Almost everyone gets nervous, its called Stage Fright and even the most accomplished people catch it.
<<Freelance Programmer>> << Hobby Site>>
Signature links for sale. PM me for details
Reply With Quote  
Join Date: Aug 2007
Location: Bangalore, India
Posts: 101
Reputation: ChaseVoid is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 10
ChaseVoid's Avatar
ChaseVoid ChaseVoid is offline Offline
Junior Poster

Re: Managed C++ and C++/CLI Queries

  #3  
Nov 1st, 2007
>Almost everyone gets nervous, its called Stage Fright
LOL, I'm sure everyone gets too >_>, but at least they go somewhere. But that's the least of my worries for now. If I can;t figure out how to put the documentation together, I don't think there will be a presentation.

Is it okay to put this thread in the C++ forum, right? I'm not sure, cause mostly here are posts relating to programming questions and this is just about the basic introduction.

Either way, I hope I'll get some nice information out of it.
Reply With Quote  
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 11,541
Reputation: Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of 
Rep Power: 40
Solved Threads: 972
Moderator
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Most Valuable Poster

Re: Managed C++ and C++/CLI Queries

  #4  
Nov 1st, 2007
>>Is it okay to put this thread in the C++ forum, right
No, I'm moving it to the lounge because it isn't a c++ program question.

As for your main question -- sorry but I don't have any experience with CLI, so I can't answer them. I know there's a lot of free code and a couple tutorials over at www.codeproject.com.
<<Freelance Programmer>> << Hobby Site>>
Signature links for sale. PM me for details
Reply With Quote  
Join Date: Aug 2007
Location: Bangalore, India
Posts: 101
Reputation: ChaseVoid is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 10
ChaseVoid's Avatar
ChaseVoid ChaseVoid is offline Offline
Junior Poster

Re: Managed C++ and C++/CLI Queries

  #5  
Nov 1st, 2007
>I know there's a lot of free code and a couple
> tutorials over at www.codeproject.com.
Yeah I have been there. I've got most of my examples from there itself. Thanks anyways.

>No, I'm moving it to the lounge
Thank you. I've never ventured in the lounge before, but hopefully here we can get more info.
Reply With Quote  
Join Date: Oct 2007
Posts: 62
Reputation: Ptolemy is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 8
Ptolemy's Avatar
Ptolemy Ptolemy is offline Offline
Junior Poster in Training

Re: Managed C++ and C++/CLI Queries

  #6  
Nov 2nd, 2007
>But I heard it's now no longer in use.
Managed C++ was the precursor to C++/CLI. It's still in use, but for new code you should be using C++/CLI as it's vastly improved.

>C++/CLI could be counted as a new programming
>language cause the syntax is similar to C#.
C++/CLI is a new programming language that builds on C++ and adds support for CLI.

>It also introduced the inclusion of ^ handlers, I think.
Yes, the ^ reference syntax lets you create CLI object references without worrying about ambiguity with existing C++ pointers or references.

>I'm wondering if the mscorlib.dll file, which was in Managed C++ still being used here?
mscorlib.dll is the primary assembly for the core .NET framework classes. It's still being used in C++/CLI.

>I've seen them using _tmain(). I'm not sure about it.
You need to include tchar.h. _tmain is one of Microsoft's unicode switchable types. If _UNICODE isn't defined, _tmain resolves to main, if _UNICODE is defined, _tmain resolves to wmain.

>If you have any good sites or info, related to the above,
>please give a link or mention it in your reply.
Everything in my post could have been found in MSDN.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Software Developers' Lounge Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Software Developers' Lounge Forum

All times are GMT -4. The time now is 6:40 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC