So, again, a short reminder of what you need to do:
- Create empty DLL project
- Set “preprocessor definition” WIN32_WINNT=0x0500 and REGISTER_PROXY_DLL
- Add linker “additional dependency” rpcrt4.lib
- Create a def file for your project and set it as the linker “module definition file”
- Compile IDL and files, generated out of IDL, into a DLL
- Register proxy DLL with regsvr32
附注:在vs2005中,新建“win32项目”,向导中设置类型为dll