CmdrVimes Posted April 27, 2012 Share Posted April 27, 2012 I have a small issue with ControlClick throwing up a LNK2019 error in Visual C++ 2010 Express. I'm a bit new to C++ (started learning 3 days ago to be precise) but I've done some C, Java, and of course AutoIT. I've already written this in AutoIT and it worked fine, I am just porting it to C++. void tabSelect() { int selected = 0; wchar_t tabText[5]; while (selected == 0) { AU3_ControlClick(L"", L"", L"[CLASS:SysTabControl32]", L"",1,175,30); AU3_WinGetText(L"",L"RS232",tabText,5); if (tabText == L"RS232") selected = 1; else AU3_ControlClick(L"", L"", L"[CLASS:SysTabControl32]", L"",1,175,10); } } To summarise: I'm selecting a tab labeled "RS232". The tab is designed (by the company who made it, badly) so that all of the tabs are merged into one large object so I have to click co-ordinates. Once clicked, I then have to check for the specific text "RS232" to be present on the whole screen. Anyway, this throws up an error: 1>------ Build started: Project: CTA5, Configuration: Debug Win32 ------ 1>main.obj : error LNK2019: unresolved external symbol _AU3_ControlClick@28 referenced in function "void __cdecl tabSelect(void)" (?tabSelect@@YAXXZ) 1>\\ocz.ocz.uk\export\Hardware\A001H05\Experiments\CPP\CTA5\Debug\CTA5.exe : fatal error LNK1120: 1 unresolved externals ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== I've come across the LNK2019 before (I hadn't included the AutoITX3.lib file), but this time around I'm stumped as to what the issue is. Link to comment Share on other sites More sharing options...
JohnOne Posted April 27, 2012 Share Posted April 27, 2012 This is a c++ problem. But for better help all around it should be in the autoitx forum.http://msdn.microsoft.com/en-us/library/799kze2z(v=vs.80).aspx AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now