extern "C" __declspec(dllexport) int __stdcall DataIE
(CWnd* pWnd
, _ConnectionPtr pConn
, int iStyle //类型:1导入 0导出
, .........
)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
//CDataIEDlg dlg(pWnd);
CDataIEDlg dlg;
dlg.pConn = pConn;
dlg.iStyle = iStyle;
............
dlg.DoModal();
return 1;
}
调用正常,就是DELPHI主程序退出时异常!什么原因?
(CWnd* pWnd
, _ConnectionPtr pConn
, int iStyle //类型:1导入 0导出
, .........
)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
//CDataIEDlg dlg(pWnd);
CDataIEDlg dlg;
dlg.pConn = pConn;
dlg.iStyle = iStyle;
............
dlg.DoModal();
return 1;
}
调用正常,就是DELPHI主程序退出时异常!什么原因?
退出时第一个错误对话框
"0x00000000"指令引用的"0x00000000"内存.该内存不能为"read"
2:
Exception EAccessViolation in module a.exe at 00000000.
Access violation at address 0000000.read of address 00000000.
高人指点点指吧
First-chance exception in GasJar.exe: 0xC0000005: Access Violation.
//上面这行一共有8000多行!!!
The thread 0x9FC has exited with code 1 (0x1).
The thread 0x87C has exited with code 1 (0x1).
The thread 0x904 has exited with code 1 (0x1).
The thread 0x994 has exited with code 1 (0x1).
The program 'F:\Silly\Debug\GasJar.exe' has exited with code 1 (0x1).
这是什么回事?
p: Function (Key1_Mouse2:integer ):boolean;cdecl;// stdcall;
版开了一个帖http://community.csdn.net/Expert/topic/3086/3086312.xml?temp=.409878
解决了一并给分,并且可以再开贴给分!!!!TO hhhaaa(hhhaaa)
这样的话参数传递失败!!!