1。请问如何用vc产生guid2。请问在51页的例子中
typedef BOOL (_stdcall * MyFunctionType)(const CLSID & clsid,
const IID& iid, void ** ppv);
MyFunctionType fnCreateObject;
如何解释3。请问在160页提到vc自动提供DllRegisterServer功能,他注册了那些东西
如何在自己实现的DllUnregisterServer中反注册晴多多执教
typedef BOOL (_stdcall * MyFunctionType)(const CLSID & clsid,
const IID& iid, void ** ppv);
MyFunctionType fnCreateObject;
如何解释3。请问在160页提到vc自动提供DllRegisterServer功能,他注册了那些东西
如何在自己实现的DllUnregisterServer中反注册晴多多执教
意思就是定义MyFunctionType作为函数返回BOOL,并且带有3个参数。
有了上面的定义,语句:
MyFunctionType fnCreateObject;
相当于:
BOOL fnCreateObject(const CLSID & clsid,
const IID& iid, void ** ppv); MSDN上有这么一段,你看了就明白了:
typedef void DRAWF( int, int );This example provides the type DRAWF for a function returning no value and taking two int arguments. This means, for example, that the declarationDRAWF box; is equivalent to the declaration void box( int, int );
3、我还没看到那里,Sorry。
一上来就是COM
注:纯粹瞎说
const IID& iid, void ** ppv);
三参数分别是:类ID 接口ID 和指向接口的地址]DllRegisterServer会将你程序中用到的Class ID和Interface ID写入注册表,其包括符号化和序号化注册。