Hello,
I have ported a windows code to linux using winemaker: it works fine on windows, but doesn't work on linux, Could anyone give some comments on this problem? THanks.
Here's the code.
#include <windows.h> int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { // TODO: Place code here. mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0); mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0); return 0; }
--------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software
On August 8, 2003 07:54 pm, dd jj wrote:
I have ported a windows code to linux using winemaker: it works fine on windows, but doesn't work on linux, Could anyone give some comments on this problem?
In what sense doesn't it work?
Hello,
On Linux (Redhat 9.0, wine-2003-06-18), when I run this program under wine:
%./mouse
The result is supposed to "left button of mouse is pressed then released", but here my result is "the cursor moves to the most left-up conner of the screen".
I tried to run mouse.exe generated by Visual Studio under wine:
%wine ./mouse.exe
Get the same result.
Thanks for help.
"Dimitrie O. Paun" dpaun@rogers.com wrote: On August 8, 2003 07:54 pm, dd jj wrote:
I have ported a windows code to linux using winemaker: it works fine on windows, but doesn't work on linux, Could anyone give some comments on this problem?
In what sense doesn't it work?
On Mon, 11 Aug 2003, dd jj wrote:
On Linux (Redhat 9.0, wine-2003-06-18), when I run this program under wine:
%./mouse
The result is supposed to "left button of mouse is pressed then released", but here my result is "the cursor moves to the most left-up conner of the screen".
I tried to run mouse.exe generated by Visual Studio under wine:
%wine ./mouse.exe
Get the same result.
I'm afraid you'll need to do some debugging of this yourself -- I am not familiar with this piece of code.