hi !!!
I need to create web based program which will be using DirectX 9.0.
I am going to make a control for using in the IE that it uses of DirectX 9.
I created an ATL project and then i added a ATL Control with HWND stock property to it.
bot now my problems:
1- How should i call Direct3DCreate9 and CreateDevice functions?
2- Where should i call my Init() function for initialize Directx?
3- How could i create a loop for my Render() function?
4- How could i handle messages from ATL Control?
I am only really familiar with programming from the Empty Project that comes with the DX9 SDK.
============================================================
= Could you tell me, how i can create an "Activex DirectX"? =
============================================================
I have recently found within MSDN an ATL Con sample for Direct3D that displays a spinning triangle. But it is too olde and it dosen't work with DirectX 9.
1- atl_direct3d.exe
http://www.microsoft.com/downloads/details.aspx?FamilyID=8FA2D6FB-5017-4706-9ABD-E81962065C48&displaylang=en#QuickInfoContainer
2- atl_advanced_direct3d.exe
http://www.microsoft.com/DOWNLOADS/details.aspx?FamilyID=b0bd2eb8-c943-4fae-82a5-4ee0e161f4ef&displaylang=en
Do you know of any other sample for creating an ATL control using D3D?
tanks