Jump to content
  • Advertisement
Sign in to follow this  
Raeldor

Game Tools in C++... Win32 API or .NET?

This topic is 4831 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am wanting to recode a terrain generator I wrote in c# with managed directx into a c++ application. It uses some windows dialog boxes and such, so I was wondering what would be the best way to code this? Should I use traditional win32 api and resource files and then use the COM version of directx directly, or should I use the .NET features of c++ for the interface and then somehow use the un-managed directx features via some kind of wrapper? Seems like the whole wrapper thing may be more trouble than it's worth, but then the win32 api is going to be slower to code the dialog boxes in. Any comments appreciated.

Share this post


Link to post
Share on other sites
Advertisement
I would like to recommend you to use the Win32 API because
otherwise it's no point to port your application, it will just
be a jump from .NET to .NET again.C# is better suited for
the .NET framework than C++ is.

Good luck!

Share this post


Link to post
Share on other sites
Maybe a wrapper for the Win32 API?
Like objects like dialog boxes..

Share this post


Link to post
Share on other sites
If you want faster/easier development, I'd recommend using wxWidgets (previously wxWindows) for the GUI part, and just wrap around DirectX, it's not really complicated to do so.

Share this post


Link to post
Share on other sites
Quote:
Original post by Raeldor
I am wanting to recode a terrain generator I wrote in c# with managed directx into a c++ application.


I feel the need to asky why? Presumably your C# app already works, so why change it?

-John

Share this post


Link to post
Share on other sites
I believe it should be possible to code the much of the app in C++, leaving the display and framework code in C#.

Check out this site for information about using C# and C++ together: The Code Project

Quote:
Original post by nife
Maybe a wrapper for the Win32 API?
YAWW?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!