Results 1 to 3 of 3

Thread: SDK - VB6 App

  1. #1
    Raw Wave
    Join Date
    Jun 2004
    Location
    On the beach
    Posts
    2,223

    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. #2
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    Quote 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."

  3. #3
    Raw Wave
    Join Date
    Jun 2004
    Location
    On the beach
    Posts
    2,223
    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.

Similar Threads

  1. Replies: 49
    Last Post: 04-06-2007, 10:40 AM
  2. Alpine City Cruise
    By Hell-Stopper in forum RR Skins
    Replies: 170
    Last Post: 02-22-2007, 10:05 PM
  3. iGuidance SDK
    By Quattro in forum GPS
    Replies: 57
    Last Post: 06-23-2006, 07:37 AM
  4. Replies: 9
    Last Post: 03-31-2005, 02:40 AM
  5. Destinator 3 SDK features working
    By loscooby in forum GPS
    Replies: 4
    Last Post: 09-21-2004, 12:46 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •