Can you import user32.dll on a 64-bit system?
I have read only richtext box which I would like to also hide the caret. The only suggestions I have seen to do this is import the user32.dll
Code:
[DllImport("user32.dll", EntryPoint = "HideCaret")]
public static extern long HideCaret(IntPtr hwnd);
My question is does anyone know if this will work on a 64-bit system?
Re: Can you import user32.dll on a 64-bit system?
Yes it works perfectly on a 64-bit.
I have used the SendMessage function of user32 and have had no problems.
I don't even think there is a user64.dll - correct me if I'm wrong.
Re: Can you import user32.dll on a 64-bit system?
After a bit of research I was almost certain that there would be a problem but I had no way of testing it.
Thanks
Re: Can you import user32.dll on a 64-bit system?
I also use SendMessage from user32 on a Win7 64 SO and never had problems.