I put a C# app together that calls some functions from a DLL. This is my function declaration:
[DllImport("c:\\users\\auror\\source\\repos\\dll1\\debug\\Dll1.dll")] public static extern int MM_HELPABOUTME();
Within my C# app, I can call a messagebox from a DLL routine, no problems. BUT, when I click the 'ok' button, the C# app terminates. I thought the C# app is suppose to keep going, but it terminates. What's going on?? Can anyone provide an answer why. Thanks.
====== Moved from solution:
Just a simple C# routine.
private void button1_Click(object sender, EventArgs e)
{
int ic;
ic = MM_HELPABOUTME();
}
My DLL function declaration:
[DllImport("c:\\users\\auror\\source\\repos\\dll1\\debug\\Dll1.dll")]
public static extern int MM_HELPABOUTME();
I'm learning from these problems, cause I have more dll function calls to be placed in this C# app.
Thanks. Is this what you are looking for??
What I have tried:
I just rewrote the DLL to avoid name mangling and the DLL rebuild ok. I'm just trying to marry the C# app and the DLL file together and make it work. Any help, sure would be helpful.