programming/COM(Component Object Model)
INTERFACE
설은
2010. 3. 13. 11:08
#include <iostream.h>
#include <odjbase.h>
using namespace std;
//define interface struct
//IUnknwon
//모든 COM 컴포넌트가 상속 받아야 할 interface !!
interface A
{
};
interface IUnknown
{
//interface 얻어오기!!
virtural HRESULT __stdcall QueryInterface(REFIID riid, void ** ppv)=0;
//개체 참조 카운트 증가 !!
virtual ULONG __stdcall AddRef()==0;
//개체 참조 카운트 감소!!
virtual ULONG __stdcall Release()==0;
};
void main()
{
}