Creation fenetre avec utilisation directx
Bonjour, je souhaite creer une fenetre avec directx.
J'utilise les fonctions RegisterClassEx et CreateWindow mais lors de l'execution, j'ai une erreur de type System.AccessViolationException
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
| WNDCLASSEX wc =
{
sizeof( WNDCLASSEX ), CS_CLASSDC, NULL, 0L, 0L,
GetModuleHandle( NULL ), NULL, NULL, NULL, NULL,
L"D3D Tutorial", NULL
};
RegisterClassEx( &wc );
// Create the application's window
HWND hWnd = CreateWindow( L"D3D Tutorial", L"D3D Tutorial 02: Vertices",
WS_OVERLAPPEDWINDOW, 100, 100, 300, 300,
NULL, NULL, wc.hInstance, NULL ); |
La compilation marche mais pas l'execution, d'ou cela vient-il?
Merci d'avance pour vos reponses