Go4Expert (http://www.go4expert.com/)
-   C++ (http://www.go4expert.com/forums/cpp/)
-   -   using.dll files in c or c++ (http://www.go4expert.com/forums/usingdll-files-c-cpp-t3571/)

codoll53 23Mar2007 02:42

using.dll files in c or c++
I am trying to emulate a mouse and am using the following command to set the mouse cursor and am getting errors:
public static extern int SetCursorPos(int x, int y)
I am very lost and any help would be appreciated

shabbir 23Mar2007 09:54

Re: using.dll files in c or c++
You dont need to be doing it using the DllImport in C-C++ but just add the following header file Winuser.h or include Windows.h and link the dll.

In C# you the DllImport the way you have demonstrated.

All times are GMT +5.5. The time now is 07:10.