Results 1 to 7 of 7

Thread: C 2 VB Porting

  1. #1
    Guest

    Talking

    Is there a way to port this into VB?

    #ifdef UNICODE
    #define WC_TREEVIEW WC_TREEVIEWW
    #else
    #define WC_TREEVIEW WC_TREEVIEWA
    #endif

  2. #2
    Guest
    find out the value of the constants, then just do this


    Code:
    Const WC_TREEVIEW = value

  3. #3
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  4. #4
    Guest
    Thanks parksie

  5. #5
    Guest
    And thanks for trying dennis

  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  7. #7
    Guest
    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
  •  



Click Here to Expand Forum to Full Width