Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GetWindowTextW - can you get it to work?
#5
_OFFSET and _INTEGER64 are only the same thing in 64-bit programs, for 32-bit programs _OFFSET is 32-bits in size instead. It's the correct type to use for pointer arguments because those are also 64-bit or 32-bit depending on the program. If you're using 64-bit QB64 though then `_INTEGER64` should work (if you do it along with the fixed-length string thing).

I would also note this is a case similar to your `GetWindowRect` code where the state according to QB64 is not always the state according to Windows, and in this instance it's intentional. If you check the `_TITLE$` function it will always return the correct title that you set with `_TITLE "foobar"` with no delay, but `GetWindowText`may return something different if the window title hasn't actually be updated yet by the QB64 runtime.
Reply


Messages In This Thread
RE: GetWindowTextW - can you get it to work? - by DSMan195276 - 06-08-2024, 01:16 AM



Users browsing this thread: 5 Guest(s)