lamoueste
Messages postés76Date d'inscriptionlundi 5 septembre 2005StatutMembreDernière intervention 3 juillet 2007
-
30 nov. 2005 à 14:45
BruNews
Messages postés21040Date d'inscriptionjeudi 23 janvier 2003StatutModérateurDernière intervention21 août 2019
-
30 nov. 2005 à 15:09
j'ai un probleme avec ma dll : il s'agit d'une fonction qui doit lance une fenetre (dialog box ) en modal mais j'ai une "assertion failed" :( et je ne sais pas ce que je dois ajouter a la fonction initinstane pour pouvoir correctement initialiser la fonction de la dll dans le genre :
#ifdef _AFXDLL
Enable3dControls();// Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic();// Call this when linking to MFC statically
#endif
voila le code dans lequel j'appel la fonction :
#include "stdafx.h"
extern "C" __declspec(dllimport) int __stdcall RunDiagnosticWizard();
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
// TODO: Place code here.
RunDiagnosticWizard();
return 0;
}