Skip to content

Do not use #If because of LongPtr #3

@OlimilO1402

Description

@OlimilO1402

Hi,
first I must say I like the VbTrickTimer, very cool work!
Then I want to suggest an idea, you could easily simplify the code a little bit. If you declare an empty Enum in VB6 like:

#If VBA7 = 0 Then
Public Enum LongPtr
    [_]
End Enum
#End If

I am convinced you know an Enum in VB6 ist just an int32/VB.Long
you can get rid of some "#If" for the structs and some of your functions.
If you are interested have a look at the small example
https://github.com/OlimilO1402/XL_VBanywhere
cheers Oliver

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions