10 Kasım 2010 Çarşamba

error C3861: 'GetCursorPos' 'SetCursorPos': identifier not found c++

In c++ coding language and try the code snippet below, you will have an error such as below:

error C3861: 'SetCursorPos': identifier not found.

[code]
void function()
{
int xCoord = 234;
int yCoord = 345;
SetCursorPos(xCoord,yCoord);
}
[/code]


If you get such an error try to write the code below:
[code]
void function()
{
        int xCoord = 234;
int yCoord = 345;

System::Windows::Forms::Cursor::Position = Point(xCoord , yCoord );
}

[/code]

Hiç yorum yok:

Yorum Gönder