home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Troubleshooting Netware Systems
/
CSTRIAL0196.BIN
/
attach
/
msj
/
v10n12
/
oleq1295.exe
/
CLIENT1.CPP
next >
Wrap
C/C++ Source or Header
|
1995-12-01
|
387b
|
19 lines
/////////////////////////////////////////////////////////
//
// Client1.cpp - client code to access IFoo
//
#include <windows.h>
#include "IFoo.h"
void UseFoo(IUnknown *punk)
{
IFoo *pfoo = 0;
if (SUCCEEDED(punk->QueryInterface(IID_IFoo, (void**)&pfoo))) {
short s = 0;
if (pfoo->Agreement(&s) == S_OK)
pfoo->Argument(s);
pfoo->Release();
}
}