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