Directx with vc++ windows form application

Started by
5 comments, last by Kjell Andersson 10 years, 3 months ago

how can i use Directx with vc++ windows form application

i want to create 3d application like 3dmax or maya

Advertisement

Do you have an existing renderer that you want to add into a WinForms application, or are you starting from scratch? Also, are you already familiar with WinForms development and DirectX development on their own? Your answers to these questions will help to inform how you should proceed!

thank you for your reply

i want start build my own 3dgraphics software from scratch

i had build my own 3dgraphics software but for Kitchen

WaTWb.jpg

You can build a GUI for input if that is what you are after.

do you have any tutorials for build GUI

http://sol.gfxile.net/imgui/

or you can use a library

http://anttweakbar.sourceforge.net

http://gameware.autodesk.com/scaleform

I would not recommend using WinForms for integration with DirectX. It is possible, but not optimal. You need to supply a WHND from your WinForms application down to the C++ code that you use when you setup your DirectX-devices for rendering. This means that DirectX will "own" the render surface on this HWND and you will not be able to overlay any .NET graphics components (like button or texts etc) on top of your DirectX-drawing. You need to provide all drawing down in the DirectX-code. This might be fine you if you don't want any overlay information handled by the .NET code.

What I instead would like to recommend is that you build your .NET-application in WPF instead. WPF has a component named D3DImage that is used for interoperating a DirectX-surface with the WPF rendering pipeline. This is much cleaner and provides no limitations on your GUI layout in the .NET application.

This topic is closed to new replies.

Advertisement