A
Augusto
My problem is that when I add a resource like a dialog in EVC++ 3.0 and I
try to start
the dialog from the CF C# the dialog does not start.
the EVC++ dll code is a test function that computes a product and start the
dialog.
The function is computed correctly, but the form is not shown on the PDA
extern "C" _declspec(dllexport) int WINAPI MyFunc(int n1, int n2)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
CDialog DLG;
DLG. DoModal();
return(n1 * n2);
}
the C# code is the following
private void button1_Click(object sender, System.EventArgs e)
{
int result;
result = MyFunc(3,7);
MessageBox.Show(result.ToString());
}
What's wrong woth my code? The DLL is a regular MFC DLL.
Ciao Augusto.
try to start
the dialog from the CF C# the dialog does not start.
the EVC++ dll code is a test function that computes a product and start the
dialog.
The function is computed correctly, but the form is not shown on the PDA
extern "C" _declspec(dllexport) int WINAPI MyFunc(int n1, int n2)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
CDialog DLG;
DLG. DoModal();
return(n1 * n2);
}
the C# code is the following
private void button1_Click(object sender, System.EventArgs e)
{
int result;
result = MyFunc(3,7);
MessageBox.Show(result.ToString());
}
What's wrong woth my code? The DLL is a regular MFC DLL.
Ciao Augusto.