Maybe you could use Private scope if you try to stick to type-oriented programming.
It's like
If you create each include-file - including it's own variables and functions - as a Type then it's possible to use dot-notation. Always Me.varName within the code-unit (between Type and End Type) else prefix the unit with a fitting name (foo in the example), something like
12345678910111213Type
t_TypeWithAPrivate
Private
mySubelement
As
Byte
Public
anotherSubelement
As
Word
'...
' Me.mySubelement is only accessible
' inside functions
' between Type - End Type...
End
Type
Dim
foo
As
t_TypeWithAPrivate
' foo.anotherSubelement is accessible from
' anywhere in the project
"SE" - sound-engine
"BUG" - error-handler
"DX" - your directX wrappers...
Bookmarks