Results 1 to 5 of 5

Thread: close second instance of my app?

  1. #1

    Thread Starter
    Hyperactive Member Cmdr0Sunburn's Avatar
    Join Date
    May 2001
    Location
    g0t r00t?
    Posts
    461

    close second instance of my app?

    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 know a lot oF Vb, expert in C++, and i think in assembly.
    MSVC++6.NET
    vb6
    masm
    Windowz Xp
    I find my self using this a lot in C++

    __asm {
    }

  2. #2

  3. #3

    Thread Starter
    Hyperactive Member Cmdr0Sunburn's Avatar
    Join Date
    May 2001
    Location
    g0t r00t?
    Posts
    461
    please read, i need the api so i can convert to other languages
    I know a lot oF Vb, expert in C++, and i think in assembly.
    MSVC++6.NET
    vb6
    masm
    Windowz Xp
    I find my self using this a lot in C++

    __asm {
    }

  4. #4

  5. #5
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    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
    Attached Files Attached Files
    Need to re-register ASP.NET?
    C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i

    (Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)

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