Jump to content
  • Advertisement
Sign in to follow this  
axv4745

Interfacing C++ DX and C# DX

This topic is 4612 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 currently working on a project where we want a Direct3D C++ application to talk to a Direct3D C# applicaiton and vice versa but I'm not really sure where to begin with this. I've already written the C++ code to initialize Direct3D but how would I pass that to C#; I believe a device in C# takes a form as a parameter whereas in C++ a Device takes an HWND. Would anyone be able to point me in the right direction or have any reference links to websites that talk about this kind of stuff? Thanks,

Share this post


Link to post
Share on other sites
Advertisement
Use of the Form element to create your Managed Direct3D object has been deprecated in MDX 2.0. It is now recommended to use the Form's HWND to create the object.

There is a Managed DirectX Device constructor that will allow you to pass in your unmanaged Direct3D Device object.

Search the docs for public Device(IDirect3DDevice9);

(Edit: Changed "not recommended" to "now recommended." Typos are fun, especially when they change the meaning of the sentence. [grr])

[Edited by - RomSteady on April 10, 2006 8:17:47 AM]

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!