Results 1 to 4 of 4

Thread: Can you import user32.dll on a 64-bit system?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jun 2001
    Location
    Trafalgar, IN
    Posts
    4,141

    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?

  2. #2
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    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.

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Jun 2001
    Location
    Trafalgar, IN
    Posts
    4,141

    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

  4. #4
    Hyperactive Member
    Join Date
    Dec 2008
    Posts
    256

    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.






Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width