Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP DLL Question
Message
 
À
02/08/2001 08:33:02
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00538602
Message ID:
00544625
Vues:
28
>>
>>I was thinking in terms of VFP pier-to-pier (apartment threaded?) COM. If two clients instanciate the same server, could the server be used to pass (push) a message from one of the clients to the other? I've had some experience with
>>languages that offer an HWND port.
>
>No. It won't be apartment model threaded. You have to run the DLL under MTS or COM+ to get that.
>
>And, it doesn't work the way you want. The DLL runs in the process space of the EXE that is hosting it.
>
>>
>>I guess I am trying to understand if a server can be "aware" of the clients
>>holding it's object reference, and can the server direct mesaages (providing a push mechanism is in place) to a specific client.
>
>I don't think you can do that. What exactly are you trying to accomplish? Maybe there is another way to make it work.

I would say - yes, you can do it. I finished the first working prototype of my new COM Communicator class at 3:00 AM last night. So far I experimented with multi-use out-of-process version. It is done through raising the events - this is the "push mechanism".
I will experiment more with different versions and if everything works as I expect it, I will add this as a bonus sample for my DevCon session.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform