473,397 Members | 2,116 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Managed C++

Hi,

I'm considering to make my own little 3D game using C++ /
DirectX. Problem is that I need to create some tools for
that, and I need an editor with lots of buttons and
controls. I bought a book a while ago about MFC
programming for VC++6 but I found the material hard to
master compared to what I was used to in my old days with
Visual Basic, and I kinda gave up on MFC for VC++.

Now I stumpled upon this page:
http://www.developer.com/net/cplus/article.php/1559251

I'm not sure if I fully understood this correcly, but it
says that with MC++ you can easily put buttons and
controls on a form just as with C#. Is MC++ just as easy
for buttons and controls as VB or C# or did I
misinterpreted? Has anyone here has experience with MC++,
what are your opinions about it?

I'm kinda hoping to write the tools in MC++ and the game
in C++, that would save me a lot of time. I wouldn't have
to learn MFC with C++ and I could transfer parts of code
which are similar in both the game and editor to one
another. Right now I'm using VC++6 but I will consider
switching over to .NET if I find it usefull.
Thanks,
Peter
Jul 19 '05 #1
1 2324
I tried Managed C++ with VS.Net 2002 for a bit. I love C++'s templates and
the fact that const & for the most part ensures at compiletime that you won'
t have a null, so I tried to stick with it. 2002's problem was it didn't
have a WinForm editor, so it was nearly impossible to write a UI (and MUCH
more time-consuming that C#) I've never used 2003's WinForm editor, but it
should be just as easy. My problem with MC++ (other than the fact that I
couldn't write a WinService in 100% MC++ due to a security check) is that
with all the .Net macros (like __gc), the code gets extremely difficult to
read, as you wind up with something that's like 1/2 code, 1/4 macros, and
1/4 attributes. I find C# MUCH cleaner, although I would like to have stack
variables and deterministic GC in it. C++ should still be faster for games,
but as the API becomes more high-level, C# should become more suitable for
gaming (in fact, I'm writing a 3d system right now in it, but speed is not a
concern of mine; it's more of an architectural project that something that
could be competitive)
So bottom line for me is that I consider MC++ more trouble than its worth,
but that's because I stay 100% in .Net; C++ is ultimately much more
flexible.

"Peter" <pe********@zonnet.nl> wrote in message
news:04****************************@phx.gbl...
Hi,

I'm considering to make my own little 3D game using C++ /
DirectX. Problem is that I need to create some tools for
that, and I need an editor with lots of buttons and
controls. I bought a book a while ago about MFC
programming for VC++6 but I found the material hard to
master compared to what I was used to in my old days with
Visual Basic, and I kinda gave up on MFC for VC++.

Now I stumpled upon this page:
http://www.developer.com/net/cplus/article.php/1559251

I'm not sure if I fully understood this correcly, but it
says that with MC++ you can easily put buttons and
controls on a form just as with C#. Is MC++ just as easy
for buttons and controls as VB or C# or did I
misinterpreted? Has anyone here has experience with MC++,
what are your opinions about it?

I'm kinda hoping to write the tools in MC++ and the game
in C++, that would save me a lot of time. I wouldn't have
to learn MFC with C++ and I could transfer parts of code
which are similar in both the game and editor to one
another. Right now I'm using VC++6 but I will consider
switching over to .NET if I find it usefull.
Thanks,
Peter

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bob Rock | last post by:
Hello, in the last few days I've made my first few attempts at creating mixed C++ managed-unmanaged assemblies and looking aftwerwards with ILDASM at what is visible in those assemblies from a...
1
by: lolomgwtf | last post by:
I have a managed C++ method that wraps unmanaged code and creates a managed object holding data retrieved form an unmanged one. I want create an instance of this managed class in C#, pass it to...
16
by: Ekim | last post by:
hello, I'm allocating a byte-Array in C# with byte byteArray = new byte; Now I want to pass this byte-Array to a managed C++-function by reference, so that I'm able to change the content of the...
2
by: lolomgwtf | last post by:
I have a managed C++ method that wraps unmanaged code and creates a managed object holding data retrieved form an unmanged one. I want create an instance of this managed class in C#, pass it to...
2
by: asanford | last post by:
We use StackWalk(StackWalk64) from dbghelp.dll to walk our callstacksas needed, using the various Sym* methods (SymGetSymFromAddr, SymGetLineFromAddr) to resolve source file, function name, and...
4
by: William F. Kinsley | last post by:
My understanding is that when I re-compile a existing MFC application with the /clr switch, that the code generated is managed(with some exceptions) but that the data isn't, i.e. not garbage...
9
by: Amit Dedhia | last post by:
Hi All I have a VC++ 2005 MFC application with all classes defined as unmanaged classes. I want to write my application data in xml format. Since ADO.NET has buit in functions available for...
12
by: DaTurk | last post by:
Hi, I have a rather interesting problem. I have a unmanged c++ class which needs to communicate information to managed c++ via callbacks, with a layer of c# on top of the managed c++ ultimatley...
3
by: Klaus | last post by:
Hi, I have an existing VC 6 MFC application which communicates asynchronly with a VC 2005 managed code dll. I use an unmanaged base class with virtual functions to access methods in the MFC...
8
by: Varangian | last post by:
Hello, was wondering of how to dispose of managed resources? or referencing every member of a class to null will release resources...? http://www.marcclifton.com/tabid/79/Default.aspx...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.