
This test program demonstrate how to use an existing
API function in a DLL in an RPC server.

The api.dll exports a function 
   void printmsg(char*msg);

To use the function in a server, we write the IDL 
description 
  
     interface ds {
             void printmsg(char [size=strlen(msg)+1] msg);
     } 0x22334;

Compile this interface, then modify the generated makefile ds.mak:
1) delete the ds_impl.obj from the makefile
2) add the import library app.lib to the server
3) make sure the dssrv.exe server can find the api.dll

That is it!


