Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfp app acting as a server to a vfp client app
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00817662
Message ID:
00817790
Views:
10
>Hi,
>
>How do you set up 2 vfp apps so that one is a server and one is a client.
>How does the client application register itself with the server application so the server knows who to communicate with?

I think servers are only aware of the session, and not the particulars of a specific client. They may just return info through the reference instanciated by by the client:

oMyServer=CREATEOBJECT('Server')

Typically, the client wiill ask the server for stuff. There are some methods the server can use to PUSH stuff to the client. In VFP 6, the only guy we had was COMRETURNERROR. More recent versions of VFP have evolved with Event Handlers - but nothing as straight forward as a 'COMRETURNEVENT' and 'ONEVENT' systax

The server can write info keyed for a particular client to a file. The client, can access that info on demand or through some kind of client side timer event.

>
>I host an activeX control in a vfp form that is basically an image browser. I can point the control to any directory and it will display a thumb nail list of all of the jpg files that are present. The jpg file names are stored in a collection of the activex control that I access in a for - endfor loop.
>
>I made a little project and generated a compiled exe that works fine. I would like to use this exe as a generic image browser. I would like to have it sitting on the taskbar waiting for me to maximize it. How do I get this stand-a-lone project to host information, ie:file names, to a seperately running vfp client. I guess that's really the question. How do you set up 2 vfp apps so that one is a server, one is a client and how does the client register itself with the server application?

The server registers itself with the OS, and the client requests a session. It may be up to the client to retain specifics related to it's transactions with the server.

Check out the "Timer" control.

>
>Thanx,
>Neil
Imagination is more important than knowledge
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform