G
Guest
I have an MMI application written in C# for Windows Mobile 5.0 (PPC). I have
a business logic DLL, however, written in unmanaged C++ to which my MMI has
to interface with. I am able to call into this DLL using the standard
practise as illustrated below:
using System.Runtime.InteropServices;
[DllImport("User32.dll")]
public static extern int MessageBox(int h, string m, string c, int type);
I also have a requirement wherein my DLL has to call into/send event to
(along with a data structure) to the managed module.
1. How can i achieve this? An illustration or example would be highly
appreciated.
2. (dumb question) If i do a DllImport as above, does the dll get loaded
into the main C# process address space? or can i keep doing DllImport at will
in multiple classes existing in the same address space?
Regards,
Sanjay.
a business logic DLL, however, written in unmanaged C++ to which my MMI has
to interface with. I am able to call into this DLL using the standard
practise as illustrated below:
using System.Runtime.InteropServices;
[DllImport("User32.dll")]
public static extern int MessageBox(int h, string m, string c, int type);
I also have a requirement wherein my DLL has to call into/send event to
(along with a data structure) to the managed module.
1. How can i achieve this? An illustration or example would be highly
appreciated.
2. (dumb question) If i do a DllImport as above, does the dll get loaded
into the main C# process address space? or can i keep doing DllImport at will
in multiple classes existing in the same address space?
Regards,
Sanjay.