Results 1 to 4 of 4

Thread: App Class

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Location
    Antrim
    Posts
    80

    Question

    What is an App Class,

    I'm told I need to use when if I want to perform an action when the app ends rather than in the Form Unload event.

    Any help would be much appreciated,

    Best regards,

    Rob Brown.

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221

    Do you mean the app object, from which you can get info about your project? like app.path and app.Title...

    I'm not sure what you mean with performing actions in Unload Event, what do you need to have done?
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Location
    Antrim
    Posts
    80
    I have built an Add-In program for a SCADA system which places an icon in the system tray.

    I am calling the function to remove the icon from the tray in the Form Unload event.

    This works OK if the user ends the application directly but when the SCADA system ends it (this happens with the NT Task Manager as well) the icon is not removed.

    I need to find somewhere to call my function from so that the icon is removed from the system tray even when the application is 'Killed'.

    Any ideas?

    Best regards,

    Rob Brown.

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Ah, now i remeber, sorry about that but i guess it was because you had moved the topic to a new thread.

    No there isn't a way to catch the termination as an event in within your project not even an activeX ocx or dll would be able to catch it. If it really is critical, you could create an app that runs parallell with yours and destroys the icon if it's being terminated.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

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