Help: Interrupt a process while implementing

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Hai Le

    Help: Interrupt a process while implementing

    Hi,
    I'm trying to write a program for Smartphone 2003 device bu eVC++ 4.0. The
    interface consists of couple of buttons ( i used pushbutton type), when you
    press the button, the program start to implement. But I want to add on
    another button which do the job of stopping the first one if pressed. It's
    like when you install a program and you have the cancel button.
    My problem is that once the first button is pressed (the implementing
    button), in my device you cannot press any other button, it's like all other
    buttons are disabled. If you try to press other buttons, it waits until the
    process finishes, it then implement the other command.
    Does that happen to everyone? Does anyone have know some function that works
    in this case? Thanks a bunch.
  • poojapatel22

    #2
    Re: Help: Interrupt a process while implementing


    I think you must implement the Execution procedure of button click event
    in new Thread. and Hence you can do other activity while your first
    action is in progress...



    --
    poojapatel22
    ------------------------------------------------------------------------
    Posted via http://www.codecomments.com
    ------------------------------------------------------------------------

    Comment

    Working...