Jump to content
Sign in to follow this  
jasonlg3d

Updated to 3.3 and get compile errors

Recommended Posts

jasonlg3d

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
Richard Robertson

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
jasonlg3d

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
Richard Robertson

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.