Jump to content
  • Advertisement
Sign in to follow this  
fatima

using directx in windows forms application

This topic is 3662 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 know how we can use directx with win32 applications,but is it possible to use same methods in windows forms application? i don't want to learn directx managed. my be i have to create a 3d view control then use it in managed application.but i don't know how to do this.

Share this post


Link to post
Share on other sites
Advertisement
Sure. All Direct3D needs is a window handle, which you can get from a Form or Control via the Handle property. Just marshall the IntPtr to your native code and use it when you create your device.

Share this post


Link to post
Share on other sites
thank you a lot.i'm going to test that.
//////////////////////
yes!it works.thanx again.

[Edited by - fatima on December 3, 2008 10:41:31 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!