how would i close a second instance of my app using api, not built in vb stuff, i need the api so i can convert to other languages
Printable View
how would i close a second instance of my app using api, not built in vb stuff, i need the api so i can convert to other languages
I assume by "not built in vb stuff" that you mean App.PrevInst. Why is that is a problem?
please read, i need the api so i can convert to other languages
I was only trying to help and your rudeness is not appreciated. Good luck.
use the attached module
On the loading function of your app, like Form_Load or Sub Main:
gRecipentName = "caption" 'the form caption of the capturing form
SendMSG vnMyString, "exit"
On the Form Load:
StartCapture Me.hwnd
On the form unload:
EndCapture
Then, write a function called KillApp that unloads your app.
Mine looks like this:
Public Function KillApp() As Boolean
Dim objForm As Form
For Each objForm In Forms
Unload objForm
Set objForm=Nothing
Next
End Function