Are both "mouse\x" values considered different to each other? The manual says that "Protected" only works with variables, arrays, lists and maps (not structures); so I'm assuming both "mouse\x" values are private to their own procedures? I'm calling GetCursorPos_() in different procedures in different threads.
Reason for asking: A user keeps telling me that my app won't report the correct mouse position for him (it returns null, not even "0"). So I don't know what's going on.
Syntax : BOOL WINAPI GetCursorPos( _Out_ LPPOINT lpPoint );
Parameters :
lpPoint [out]
Type: LPPOINT
A pointer to a POINT structure that receives the screen coordinates of the cursor.
PureBasic 6.10 LTS (Windows x86/x64) | Windows10 Pro x64 | Asus TUF X570 Gaming Plus | R9 5900X | 64GB RAM | GeForce RTX 3080 TI iChill X4 | HAF XF Evo | build by vannicom
English is not my native language... (I often use DeepL to translate my texts.)
Yeah, I might have to add "Protected" and see what the user says. I didn't bother since the manual doesn't mention "Protected" for structures. Nothing to lose by trying.
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too!Please visit my YouTube Channel
The structuredefinition is always global, a compilerdirective!
This have nothing to do with the variable you are using with this structure.
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
ts-soft wrote:The structuredefinition is always global, a compilerdirective!
Yes; even if it's defined within procedures that are not called.
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too!Please visit my YouTube Channel