Results 1 to 6 of 6

Thread: Callbacks

  1. #1

    Thread Starter
    Fanatic Member pradeepkrao's Avatar
    Join Date
    Sep 2001
    Location
    New Jersey
    Posts
    534

    Thumbs up Callbacks

    blue arial small
    Can anbody tell me how to make threaded callbacks in VB 5.0
    I have developed simple callbacks in vb, but many a times there will be collision.. How to go about it..??
    Learn by others experience as you cannot live long to experience them all.
    www.freewebs.com/pradeepkrao

    LOOK AT MY GAMES AT MY WEB SITE.

  2. #2
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    Smile Events

    I like using events for "call backs" in VB. Much more tidy and without hte need for API calls.
    Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment.

  3. #3

    Thread Starter
    Fanatic Member pradeepkrao's Avatar
    Join Date
    Sep 2001
    Location
    New Jersey
    Posts
    534

    Hi

    I am not using any api's... i am using simple class..
    The problem is if the client requests and the server is in process of responding the client, by this time another client request, the server handles all these things procedureal wice... I want it to be threaded.. like for every client calls the server should create thread but very well share global variables...
    Learn by others experience as you cannot live long to experience them all.
    www.freewebs.com/pradeepkrao

    LOOK AT MY GAMES AT MY WEB SITE.

  4. #4
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    Question Phrasing

    I'm sorry but I am struggling to understand your reply. Please could you re-phrase more clearly?
    Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment.

  5. #5
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Are you assigning an ID to every connection to your object? I guess we can't answer the question without knowing how you are doing your callbacks. Post us some code please.

  6. #6
    Frenzied Member yrwyddfa's Avatar
    Join Date
    Aug 2001
    Location
    England
    Posts
    1,253

    Well . . .

    What you need is an inprocess wrapper to an ActiveX EXE.

    The callbcak goes to the wrapper. The wrapper persists an object in some way (you choose) and raises an event (or custom callback) to the EXE.

    The EXE now knows that there is more processing to be done, and creates an object on a thread to do it.

    This may not even work - you will need to ensure only ONE instance of the EXE exists in order to keep the threads under the same process.

    I will have to give this a go, but for now this is the best guess I've got.

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