Developing COM Components using VC-ATL(3-7)(3)
virtual HRESULT __stdcall raw_LuhnCheck (
BSTR bstrCCNo,
BSTR bstrCCType ) = 0;
virtual HRESULT __stdcall raw_LengthCheck (
BSTR bstrCCNo,
BSTR bstrCCType ) = 0;
virtual HRESULT __stdcall raw_PrefixCheck (
BSTR bstrCCNo,
BSTR bstrCCType ) = 0;…………………………………………………..……. 接口方法(对内)
};
//
// Wrapper method implementations
//
#include "c:vctestvccomprojdebugValidateCreditCardServer.tli"………….. 类型库实现文件
} // namespace VALIDATECREDITCARDSERVERLib……………………………..……….. 名字空间
#pragma pack(pop)
参照COM组件端C:ValidateCreditCardServerValidateCreditCardServer.idl
ValidateCreditCardServer.idl清单
--------------------------------------------------------------------------------
// ValidateCreditCardServer.idl : IDL source for ValidateCreditCardServer.dll
//
// This file will be processed by the MIDL tool to
// produce the type library (ValidateCreditCardServer.tlb) and marshalling code.