Sign in to follow this  
Followers 0
jasonlg3d

Updated to 3.3 and get compile errors

4 posts in this topic

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

Share this post


Link to post
Share on other sites



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"

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

Got the right size buffer allocated?

Share this post


Link to post
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
Sign in to follow this  
Followers 0