|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Senior Member
Iscritto dal: Jun 2002
Città: Dublin
Messaggi: 5989
|
[C++] "Impossibile trovare il modulo specificato"
È incredibile, da molto tempo cerco di capire perche' uesto codice non mi funziona in Delphi, non funziona in C, in C++ ma non trovo nessun errore di programmazione. Dopo la chiamata alla funzione che vi allego, il risultato di GetLastError e' "Impossibile trovare il modulo specificato".
Qualcuno sa dirmi di cosa si tratta ? Codice:
BOOL DoubleBuffer (HWND win) { PIXELFORMATDESCRIPTOR pfd; HDC wdc; int iFormat; BOOL rc; /* return code */ wdc = GetDC (win); iFormat = GetPixelFormat (wdc); DescribePixelFormat (wdc, iFormat, sizeof (PIXELFORMATDESCRIPTOR), &pfd); pfd.dwFlags = PFD_DRAW_TO_WINDOW | // support window PFD_SUPPORT_OPENGL | // support OpenGL PFD_DOUBLEBUFFER; // double buffered iFormat = ChoosePixelFormat (wdc, &pfd); rc = SetPixelFormat (wdc, iFormat, &pfd); ReleaseDC (win, wdc); return (iFormat != 0 && rc != FALSE); }
__________________
C'ho certi cazzi Mafa' che manco tu che sei pratica li hai visti mai! |
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 19:58.