Call environment, there is A service as A daemon program, and connected to A program by using the method of websocket, IE, A dynamic library B.d ll call, B perform related functions, the pop-up interface,
Normally, when the interface can pop up normally, but in the one computer, B interface has been unable to pop up, until the restart the computer, or restart the program a.
, there is a problem of computer has Windows 7 also has win10
Through the log and other means to atl DoModal place specifically DialogBoxParam return 1, LastError=0
The calling code
CxxxDlg DLG.
INT_PTR Res=DLG. DoModal ();
Everyone a great god, can you tell me some encountered similar problems, or have any Suggestions, please, I really can't imagine what could the
CodePudding user response:
May be can't find the resources needed, the log will be the incoming parameters do record to seeTry to add an export interface, call the export interface
# include "TestDlg. H"
Extern "C" __declspec (dllexport) int TestDlg (HWND hParentWnd)
{
AFX_MANAGE_STATE (AfxGetStaticModuleState ());
(CWnd: : FromHandle CTestDlg DLG (hParentWnd));
Return (INT) DLG. DoModal ();
}