jasonlg3d Posted February 11, 2009 Share Posted February 11, 2009 I just upgraded to 3.3 hoping to get my program to run in Vista and now i get compile errors. They all seem to be related to functions that used to take a const char as a parameter. Could some one give me a hand? C++ by the way. example: AU3_MouseClick( "right", x, y, 1, 0 ); // This line yields the compile error below C:\Documents and Settings\groundsj\My Documents\My Programs\test.h : error C2664: 'AU3_MouseClick' : cannot convert parameter 1 from 'char [6]' to 'const unsigned short *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast Link to comment Share on other sites More sharing options...
Richard Robertson Posted February 11, 2009 Share Posted February 11, 2009 You'll need to use unicode strings. Add an L to your string literal and if you are using std::basic_string<char> switch to wchar_t or short. L"this is wide" Link to comment Share on other sites More sharing options...
jasonlg3d Posted February 11, 2009 Author Share Posted February 11, 2009 Thanks, I i've got everything compiling now. Still having a problem with reading data in the clip board. I'm sure I'll figure it out. Thanks for the quick help! Link to comment Share on other sites More sharing options...
Richard Robertson Posted February 12, 2009 Share Posted February 12, 2009 Got the right size buffer allocated? 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