Windows Forms Applications
I'm trying to make a Windows Forms application but I cannot find any good tutorials on how to use code that I used in my console applications.
For example:
SetCursorPos(500, 500);
Results in:
1 2 3
|
1>testform.obj : error LNK2028: unresolved token (0A00000F) "extern "C" int __stdcall SetCursorPos(int,int)" (?SetCursorPos@@$$J18YGHHH@Z) referenced in function "private: void __clrcall testform::Form1::button1_Click(class System::Object ^,class System::EventArgs ^)" (?button1_Click@Form1@testform@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)
1>testform.obj : error LNK2019: unresolved external symbol "extern "C" int __stdcall SetCursorPos(int,int)" (?SetCursorPos@@$$J18YGHHH@Z) referenced in function "private: void __clrcall testform::Form1::button1_Click(class System::Object ^,class System::EventArgs ^)" (?button1_Click@Form1@testform@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)
1>E:\Documents and Settings\Chris\My Documents\Visual Studio 2008\Projects\testform\Debug\testform.exe : fatal error LNK1120: 2 unresolved externals
|
Thanks.
And happy new year! :D
Last edited on
Bump.
If your trying to lean windows forms. There are heaps of tutorials on the MSDN website.
Topic archived. No new replies allowed.