试试在你程序的头文件中声明一下:
extern STDAPI CIMakeICommand( ICommand **    ppCommand,
                       ULONG                 cScope,
                       DWORD const *         aDepths,
                       WCHAR const * const * awcsScope,
                       WCHAR const * const * awcsCatalogs,
                       WCHAR const * const * awcsMachine );