使用ATL编写COM,下面一段内容是怎么生成的,我的意思是有哪些步骤,而不是原理!
// Note: Proxy/Stub Information
// To merge the proxy/stub code into the object DLL, add the file
// dlldatax.c to the project. Make sure precompiled headers
// are turned off for this file, and add _MERGE_PROXYSTUB to the
// defines for the project.
//
// If you are not running WinNT4.0 or Win95 with DCOM, then you
// need to remove the following define from dlldatax.c
// #define _WIN32_WINNT 0x0400
//
// Further, if you are running MIDL without /Oicf switch, you also
// need to remove the following define from dlldatax.c.
// #define USE_STUBLESS_PROXY
//
// Modify the custom build rule for SimpleTrans.idl by adding the following
// files to the Outputs.
// SimpleTrans_p.c
// dlldata.c
// To build a separate proxy/stub DLL,
// run nmake -f SimpleTransps.mk in the project directory.
谢谢!
// Note: Proxy/Stub Information
// To merge the proxy/stub code into the object DLL, add the file
// dlldatax.c to the project. Make sure precompiled headers
// are turned off for this file, and add _MERGE_PROXYSTUB to the
// defines for the project.
//
// If you are not running WinNT4.0 or Win95 with DCOM, then you
// need to remove the following define from dlldatax.c
// #define _WIN32_WINNT 0x0400
//
// Further, if you are running MIDL without /Oicf switch, you also
// need to remove the following define from dlldatax.c.
// #define USE_STUBLESS_PROXY
//
// Modify the custom build rule for SimpleTrans.idl by adding the following
// files to the Outputs.
// SimpleTrans_p.c
// dlldata.c
// To build a separate proxy/stub DLL,
// run nmake -f SimpleTransps.mk in the project directory.
谢谢!
Allow merging of proxy/stub code
复选框产生的代码,是告诉你如何生成合并了
代理/桩子(proxy/stub)
的目标文件