Sunday, January 24, 2016
PPC support [DllImport (& quot; User32.dll & quot;)] What, debugging old Baocuo: Can not find PInvoke Dll & quot; User32.dll & quot;
Intelligent equipment program, winform, C #, in order to always ended up floating toolbar at the top of the screen, to obtain the screen window handle GetDC () function, the program uses [DllImport ("User32.dll")], and add the
using System.Runtime .InteropServices;
But the run time error: unable to find PInvoke Dll "User32.dll". But put the code into an operating winform stickers on the PC where you can draw on the screen.
Reply:
Your use of it?
For example:
class Win32API {
[DllImport ("User32.dll")]
public static extern Bool PtInRect (ref Rect r, Point p);
}
Reply:
WINCE system does not User32.dll, it should be Coredll.dll
Reply:
many many many many many thanks
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment