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

Possibly Related Threads…
Thread Author Replies Views Last Post
  Does _base64decode$ and _inflate$ work when used together? Dav 5 540 11-21-2025, 06:59 AM
Last Post: Pete
  CAN someone please get the graphics in this to work? Dragoncat 3 663 05-07-2025, 12:17 PM
Last Post: bplus
  Even robocopy doesn't work krovit 3 968 08-15-2024, 11:36 AM
Last Post: mdijkens
  Does _MapTriangle work in a user defined Window? bplus 12 2,292 02-16-2024, 01:40 AM
Last Post: bplus
Bug I want it to work so bad.... NasaCow 39 9,046 11-30-2022, 10:30 PM
Last Post: bplus

Forum Jump:


Users browsing this thread: 1 Guest(s)