|
-
Aug 18th, 2000, 05:44 PM
#1
Is there a way to port this into VB?
#ifdef UNICODE
#define WC_TREEVIEW WC_TREEVIEWW
#else
#define WC_TREEVIEW WC_TREEVIEWA
#endif
-
Aug 18th, 2000, 10:49 PM
#2
find out the value of the constants, then just do this
Code:
Const WC_TREEVIEW = value
-
Aug 19th, 2000, 08:08 AM
#3
Monday Morning Lunatic
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
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Aug 19th, 2000, 10:45 AM
#4
Thanks parksie
-
Aug 19th, 2000, 10:46 AM
#5
And thanks for trying dennis
-
Aug 20th, 2000, 04:53 AM
#6
Monday Morning Lunatic
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:
Code:
#Const DEBUG = 1
Private Sub MySub()
#If DEBUG
Trace "MySub"
#End If
' Continue with sub
End Sub
Then when you do a release version just set DEBUG to 0.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Aug 20th, 2000, 08:05 AM
#7
oh cool
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
|