|
CIS 573 Callback
by delegate (Sample 1) Last modified 08/07/2006 |
This sample program has a client calling a server. The client is the main form of a Windows application. The server is a DLL which contains a class called CBserver (for "call-back server"). The client passes a string to the the DLL, and the DLL passes the string right back
Client and server are running in different threads. Using a callback by delegate is one good way to have one thread pass information to another thread.
Here's the client code and the server code and the entire project.

Visitors: