Jump to content

C++ Help: LNK2019 and AU3_ControlClick


Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...