Results 1 to 8 of 8

Thread: VB to C++

  1. #1

    Thread Starter
    Hyperactive Member Amon Ra's Avatar
    Join Date
    Feb 2001
    Location
    In some cave on Uranus...
    Posts
    500
    anyone got an idea?
    thanks
    Amon Ra
    The Power of Learning.

  2. #2
    jim mcnamara
    Guest
    the this object pointer.

    It looks like you are trying to use the vbAccelerator subclassing dll.

    You do know that you can directly access the WndProc for each control and item in C++?

  3. #3

    Thread Starter
    Hyperactive Member Amon Ra's Avatar
    Join Date
    Feb 2001
    Location
    In some cave on Uranus...
    Posts
    500
    yea i do know, i just thought it would be easier to have a dll keep track of the things that i subclassed, rather than having a Get/SetWindowLong all over... i just liked the idea of having everything in a nice class..
    Amon Ra
    The Power of Learning.

  4. #4

    Thread Starter
    Hyperactive Member Amon Ra's Avatar
    Join Date
    Feb 2001
    Location
    In some cave on Uranus...
    Posts
    500
    i think it would be nice to just call a function like AttachMsg (MESSAGE) to subclass this message....
    Amon Ra
    The Power of Learning.

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    It's probably an automation dll so there's no speaking of "nice" in C++. Automation is damn hard to use in C++, and slow too.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  6. #6

    Thread Starter
    Hyperactive Member Amon Ra's Avatar
    Join Date
    Feb 2001
    Location
    In some cave on Uranus...
    Posts
    500
    hmm..ok CornedBee
    Amon Ra
    The Power of Learning.

  7. #7
    jim mcnamara
    Guest
    FWIW - your assumptions are bad - you do not have to explicitly use GetWindowLong, and so on.

    If you create a WindProc for the window, it will 'automatically' subclass the window - this is the great thing about C++ coding - you make your own windows and their wndprocs, too.

  8. #8

    Thread Starter
    Hyperactive Member Amon Ra's Avatar
    Join Date
    Feb 2001
    Location
    In some cave on Uranus...
    Posts
    500
    ok ok..that's right...
    Amon Ra
    The Power of Learning.

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