GUI app and winAPI calls
#9
(03-22-2023, 08:13 PM)aurel Wrote: all handles must be _OFFSET ..why ..in other windows compilers there are INTEGER or LONG
why is in QB64 pointer?

It was a half-successful attempt to ease the life of the programmer moving from 32-bit to 64-bit. A pointer isn't supposed to be dictated by what's its size. Remember that _OFFSET and _MEM are necessary in QB64(PE) because otherwise it would have to look like Freebasic or Purebasic which, in turn, look the most like C and C++.

I guess in this case use ConvertOffset&&() function that Steve wrote and is in QB64 Wiki. But that returns _INTEGER64 and not INTEGER or LONG. INTEGER is always 16-bit integer in QuickBASIC and descendants, shouldn't be discussed any longer in systems programming.
Reply


Messages In This Thread
GUI app and winAPI calls - by aurel - 03-22-2023, 02:23 PM
RE: GUI app and winAPI calls - by SpriggsySpriggs - 03-22-2023, 02:26 PM
RE: GUI app and winAPI calls - by aurel - 03-22-2023, 05:24 PM
RE: GUI app and winAPI calls - by aurel - 03-22-2023, 06:10 PM
RE: GUI app and winAPI calls - by aurel - 03-22-2023, 06:23 PM
RE: GUI app and winAPI calls - by aurel - 03-22-2023, 07:21 PM
RE: GUI app and winAPI calls - by SpriggsySpriggs - 03-22-2023, 08:05 PM
RE: GUI app and winAPI calls - by aurel - 03-22-2023, 08:13 PM
RE: GUI app and winAPI calls - by mnrvovrfc - 03-22-2023, 08:33 PM
RE: GUI app and winAPI calls - by SpriggsySpriggs - 03-22-2023, 08:34 PM
RE: GUI app and winAPI calls - by aurel - 03-22-2023, 09:13 PM
RE: GUI app and winAPI calls - by SpriggsySpriggs - 03-22-2023, 09:23 PM
RE: GUI app and winAPI calls - by aurel - 03-22-2023, 09:35 PM
RE: GUI app and winAPI calls - by aurel - 03-22-2023, 09:39 PM
RE: GUI app and winAPI calls - by SpriggsySpriggs - 03-22-2023, 11:45 PM
RE: GUI app and winAPI calls - by aurel - 03-23-2023, 07:38 AM
RE: GUI app and winAPI calls - by SpriggsySpriggs - 03-23-2023, 01:03 PM
RE: GUI app and winAPI calls - by aurel - 03-23-2023, 05:26 PM
RE: GUI app and winAPI calls - by aurel - 03-23-2023, 07:18 PM
RE: GUI app and winAPI calls - by aurel - 03-23-2023, 07:29 PM
RE: GUI app and winAPI calls - by SpriggsySpriggs - 03-23-2023, 07:33 PM
RE: GUI app and winAPI calls - by mnrvovrfc - 03-23-2023, 07:51 PM
RE: GUI app and winAPI calls - by vince - 03-23-2023, 08:07 PM
RE: GUI app and winAPI calls - by mnrvovrfc - 03-23-2023, 08:41 PM
RE: GUI app and winAPI calls - by aurel - 03-23-2023, 08:25 PM
RE: GUI app and winAPI calls - by aurel - 03-23-2023, 08:41 PM
RE: GUI app and winAPI calls - by SpriggsySpriggs - 03-23-2023, 08:53 PM
RE: GUI app and winAPI calls - by vince - 03-23-2023, 08:50 PM
RE: GUI app and winAPI calls - by aurel - 03-23-2023, 08:51 PM
RE: GUI app and winAPI calls - by aurel - 03-23-2023, 08:53 PM
RE: GUI app and winAPI calls - by aurel - 03-23-2023, 09:00 PM
RE: GUI app and winAPI calls - by aurel - 03-23-2023, 09:07 PM
RE: GUI app and winAPI calls - by aurel - 03-23-2023, 09:09 PM
RE: GUI app and winAPI calls - by SpriggsySpriggs - 03-23-2023, 09:11 PM
RE: GUI app and winAPI calls - by vince - 03-23-2023, 09:21 PM
RE: GUI app and winAPI calls - by aurel - 03-24-2023, 06:33 AM
RE: GUI app and winAPI calls - by mnrvovrfc - 03-24-2023, 07:12 AM
RE: GUI app and winAPI calls - by aurel - 03-24-2023, 09:27 AM
RE: GUI app and winAPI calls - by aurel - 03-24-2023, 09:51 AM
RE: GUI app and winAPI calls - by mnrvovrfc - 03-24-2023, 06:19 PM
RE: GUI app and winAPI calls - by aurel - 03-24-2023, 02:49 PM
RE: GUI app and winAPI calls - by aurel - 03-24-2023, 08:43 PM
RE: GUI app and winAPI calls - by aurel - 03-24-2023, 08:49 PM
RE: GUI app and winAPI calls - by aurel - 03-25-2023, 04:28 PM
RE: GUI app and winAPI calls - by aurel - 03-25-2023, 07:32 PM
RE: GUI app and winAPI calls - by aurel - 03-25-2023, 09:35 PM
RE: GUI app and winAPI calls - by RhoSigma - 03-25-2023, 10:44 PM
RE: GUI app and winAPI calls - by aurel - 03-26-2023, 07:16 AM
RE: GUI app and winAPI calls - by RhoSigma - 03-26-2023, 08:39 AM



Users browsing this thread: 22 Guest(s)