#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()
{
}
'programming > COM(Component Object Model)' 카테고리의 다른 글
컴포넌트 생성 및 접근 (전체 흐름도) (0) | 2010.03.15 |
---|