Results 1 to 3 of 3

Thread: Calling A COM From An Executable

  1. #1

    Thread Starter
    Hyperactive Member razzaj's Avatar
    Join Date
    Oct 1999
    Location
    jounieh
    Posts
    261

    Calling A COM From An Executable

    I am calling a COM from an Executable and it is working fine , the COM is supposed to add an entry to a Database.

    For some reason , sometimes an error occures while trying to update the Database. the error is not my issue here , my issue is that My exe program will stall not do anything , and then suddenly terminate.
    ( I am running it on Win2k) I think i can oversome this by using threads but I have no idea how.

    I am basically looping in a list and for each item i Am performing a sries of actions among which Calling this COM function.

    What I would like is make this Function run in a different thread so that if an error occures my program doesnt stall , and continues processing the other entries regardless of failing entries.
    - regards -
    - razzaj -

  2. #2
    Addicted Member wolfofthenorth's Avatar
    Join Date
    Jan 2001
    Location
    Tatooine
    Posts
    169
    Hi,

    You can use a timer, or settimer & killtimer APIs to start a background operation. Call a function in the object that initializes a timer. When the timer event fires, it is running in a different thread.

    Hope this helps

    That which does not kill us, only makes us stronger.

  3. #3

    Thread Starter
    Hyperactive Member razzaj's Avatar
    Join Date
    Oct 1999
    Location
    jounieh
    Posts
    261
    well , yes but i want a more explicit way of running a process in a different or new thread
    - regards -
    - razzaj -

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