龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > 软件开发 > VC开发 >

Developing COM Components using VC-ATL(3-7)(3)

时间:2009-12-30 15:42来源:未知 作者:admin 点击:
分享到:
virtual HRESULT __stdcall raw_LuhnCheck ( BSTR bstrCCNo, BSTR bstrCCType ) = 0; virtual HRESULT __stdcall raw_LengthCheck ( BSTR bstrCCNo, BSTR bstrCCType ) = 0; virtual HRESULT __stdcall raw_PrefixCh

    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.

精彩图集

赞助商链接