|
-
Feb 27th, 2026, 03:28 PM
#1
Thread Starter
Lively Member
[RESOLVED] Why do you still use datatype Long for pointers?
Why do some of you still use the datatype Long for dealing with pointers? Imho using datatype Long for pointers should've been abandoned many years ago.
it is not hard, in fact it is so easy, what is your excuse?
Search your winapi-declarations, go to every variable name, look if the name starts with "p*" or handles starting with "h*" and replace datatype "Long" with "LongPtr"
And you are good to go, your VB6 code becomes instantly ready for x64, ready for twinBasic, ready for Excel VBAx64 as well
@TheTrick suggestion for your code in 32Bit handling with 64Bit pointers
Code:
Public Type LongPtr64
Value As Currency
End Type
Further reading for people who don't know what I am talking about
https://github.com/OlimilO1402/XL_VBanywhere
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|