Announcement

Collapse
No announcement yet.

SDK - VB6 App

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • SDK - VB6 App

    Hi Guino,

    I've just tried using the RRSDK VB app to try to remotely exit RR from VB. If I open the code and run the example you give VB closes immediately.

    If I comment out:

    Code:
    Private Sub Form_Load()
    
        'Prepare to receive messages
        COMHook Me.hwnd
    
    End Sub
    
    or
    
    Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
    
        'Unhook message API
        COMUnhook Me.hwnd
    
    End Sub
    It will run ok, but obviously nothing will work, any ideas?? Have tried both with and without RR running, I'm running VB6 SP6.

    Thanks

  • #2
    Originally posted by UK_MP3Car
    Hi Guino,
    I've just tried using the RRSDK VB app to try to remotely exit RR from VB. If I open the code and run the example you give VB closes immediately.
    If I comment out:
    Code:
    Private Sub Form_Load()
        'Prepare to receive messages
        COMHook Me.hwnd
    End Sub
    or
    Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
        'Unhook message API
        COMUnhook Me.hwnd
    End Sub
    It will run ok, but obviously nothing will work, any ideas?? Have tried both with and without RR running, I'm running VB6 SP6.
    Thanks
    You can't make window hooks and don't restore them while IN the message.. or it will crash.. there's a timer in RR just to close it when a "QUIT" message comes it.. I don't recommend testing any hooks in VB's IDE, because if you have to stop your application VB will Freeze/Close.
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

    Comment


    • #3
      Ah k, never thought of that, I found out my problem anyway, it was a DoLog command that always made it crash, even when compiled.

      Comment

      Working...
      X