Is there a way to port this into VB?
#ifdef UNICODE
#define WC_TREEVIEW WC_TREEVIEWW
#else
#define WC_TREEVIEW WC_TREEVIEWA
#endif
Printable View
Is there a way to port this into VB?
#ifdef UNICODE
#define WC_TREEVIEW WC_TREEVIEWW
#else
#define WC_TREEVIEW WC_TREEVIEWA
#endif
find out the value of the constants, then just do this
Code:Const WC_TREEVIEW = value
I assume that you'll be defining UNICODE at some point when compiling on NT.
Code:#If UNICODE Then
Const WC_TREEVIEW = WC_TREEVIEWW
#Else
Const WC_TREEVIEW = WC_TREEVIEWA
#End If
Thanks parksie ;)
And thanks for trying dennis :D
Wow. It's descended into madness over the night...
The #'s are compiler directives, which make a difference when they are compiled, rather than when it is run. It's like in C++ programs, you can compile different things.
Such as:
Then when you do a release version just set DEBUG to 0.Code:#Const DEBUG = 1
Private Sub MySub()
#If DEBUG
Trace "MySub"
#End If
' Continue with sub
End Sub
oh cool :cool: