为什么网上的一些代码例子却传递了俩个参数,这是为什么? // Give the browser a pointer to my IOleClientSite object
if (!browserObject->lpVtbl->SetClientSite(browserObject, (IOleClientSite *)_iOleClientSiteEx))
{
// We can now call the browser object's SetHostNames function. SetHostNames lets the browser object know our
// application's name and the name of the document in which we're embedding the browser. (Since we have no
// document name, we'll pass a 0 for the latter). When the browser object is opened for editing, it displays
// these names in its titlebar.
....
....
if (!browserObject->lpVtbl->SetClientSite(browserObject, (IOleClientSite *)_iOleClientSiteEx))
{
// We can now call the browser object's SetHostNames function. SetHostNames lets the browser object know our
// application's name and the name of the document in which we're embedding the browser. (Since we have no
// document name, we'll pass a 0 for the latter). When the browser object is opened for editing, it displays
// these names in its titlebar.
....
....
解决方案 »
- MFC 小问题
- GDI+的PNG透明4状态按钮,放到DIALOG或者FRAMEWND上就不刷新自己了
- 纯win32程序中,怎么建立线程并让线程先不执行处于等待状态,待定时器里某种条件达成时再让它去执行?
- CTypedPtrArray和List Control难题
- 几个网络socket编程的问题!~~~
- 多表查询添加删除操作的实现
- 求助——ListControl 控件中 Yellow 、Red、Green、Magenta、Cyan、Blue上面图形表示什么意思?
- 100分求屏幕截图源码 在线等
- 哪里有DDK下载?masterz的读主板信息要DDK,是吗?
- CString 最多可以存多长的字符串?CEDIT呢?
- 我怎么不能给某个程序安装钩子??
- 请教,CEdit的WM_MOUSELEAVE怎么不响应?
第一个参数相当于this指针,第二个参数跟原来那唯一一个参数是一样的。。
#if defined(__cplusplus) && !defined(CINTERFACE)
#else /* C style interface */ //就是这儿 typedef struct IOleObjectVtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
IOleObject * This,
/* [in] */ __RPC__in REFIID riid,
/* [iid_is][out] */
__RPC__deref_out void **ppvObject);
ULONG ( STDMETHODCALLTYPE *AddRef )(
IOleObject * This);
ULONG ( STDMETHODCALLTYPE *Release )(
IOleObject * This);
HRESULT ( STDMETHODCALLTYPE *SetClientSite )(
IOleObject * This,
/* [unique][in] */ __RPC__in_opt IOleClientSite *pClientSite);
END_INTERFACE
} IOleObjectVtbl; interface IOleObject
{
CONST_VTBL struct IOleObjectVtbl *lpVtbl;
};