|
// SmppAddressCom.h : Declaration of the CSmppAddressCom
#pragma once
#include "resource.h" // main symbols
#include "SMPPCOM.h"
#include "..\smpppacket.h"
// CSmppAddressCom
class ATL_NO_VTABLE CSmppAddressCom : public CSmppAddress,
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<CSmppAddressCom, &CLSID_SmppAddressCom>,
public IDispatchImpl<ISmppAddressCom, &IID_ISmppAddressCom, &LIBID_SMPPCOMLib, /*wMajor =*/ 1, /*wMinor =*/ 0>
{
public:
CSmppAddressCom()
{
}
DECLARE_REGISTRY_RESOURCEID(IDR_SMPPADDRESSCOM)
DECLARE_NOT_AGGREGATABLE(CSmppAddressCom)
BEGIN_COM_MAP(CSmppAddressCom)
COM_INTERFACE_ENTRY(ISmppAddressCom)
COM_INTERFACE_ENTRY(IDispatch)
END_COM_MAP()
DECLARE_PROTECT_FINAL_CONSTRUCT()
HRESULT FinalConstruct()
{
return S_OK;
}
void FinalRelease()
{
}
public:
STDMETHOD(get_TON)(SHORT* pVal);
STDMETHOD(put_TON)(SHORT newVal);
STDMETHOD(get_NPI)(SHORT* pVal);
STDMETHOD(put_NPI)(SHORT newVal);
STDMETHOD(get_Address)(BSTR* pVal);
STDMETHOD(put_Address)(BSTR newVal);
};
OBJECT_ENTRY_AUTO(__uuidof(SmppAddressCom), CSmppAddressCom)
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
I'm a guy situated in Hong Kong with some knowledges in Java, VC++, C#, database, client-server, distributed, and mutithreaded computing and so on. I've been working in various companies as engineer, consultant, programmer.
Lately I was mainly working in banking & financial industries. Personally, I'm working on a trading application on my own now.