Jump to content
  • Advertisement
Sign in to follow this  
poly-gone

[.net] DirectX9 apps with /clr using VC.Net 2005

This topic is 5039 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'm trying to integrate my engine with a .Net Form-Based app in VC.Net 2005. The engine is written is unmanaged code, and so, doesn't integrate with the new managed code syntax. The code works fine with the old managed syntax of VC.Net 2003 (__gc, * and new), but completely fails with the new managed syntax of VC.Net 2005 (ref, ^ and gcnew). It's a real pain to manually change hundreds of lines of app generated managed code to work with the old syntax, so I was wondering if there's a way to solve the problem. Thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement
If the engine is a library, instead of changing and recompiling all the code, why don't you just call the methods from the library?

Share this post


Link to post
Share on other sites
I didn't mean that I would have to recompile the engine, just re-write the app code. I cannot call methods from the library because the old unmanaged code simply isn't compatible with the new managed syntax by default.

Share this post


Link to post
Share on other sites
dood there is a switch in the compiler setting for /clr that allows the old syntax try it you might be able to use it.

Share this post


Link to post
Share on other sites
Thanks dude, but as I said, it is a real pain to edit the code everytime I drop in a text box or a menu item, since VC.Net 2005 generates the new syntax code even with /clr:oldSyntax enabled. There has to be some way to make VC.Net 2005 to generate old syntax code, just trying to figure that out. Thanks again for your replies guys.

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!