⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 easycics_tlb.h

📁 IBM 开发的easy cics通讯相关的源代码
💻 H
📖 第 1 页 / 共 5 页
字号:
  {
    TVariant RetData;
    OLECHECK(this->LoadBlock((TVariant*)&RetData));
    return RetData;
  }

  short __fastcall ConnectServerListX(BSTR ListName/*[in]*/, BSTR UserName/*[in]*/, 
                                      BSTR Password/*[in]*/)
  {
    short __MIDL_0030;
    OLECHECK(this->ConnectServerListX(ListName, UserName, Password, (short*)&__MIDL_0030));
    return __MIDL_0030;
  }

  short __fastcall GetMsgQlf(void)
  {
    short __MIDL_0031;
    OLECHECK(this->GetMsgQlf((short*)&__MIDL_0031));
    return __MIDL_0031;
  }

  short __fastcall ConnectServerList(BSTR UserName/*[in]*/, BSTR Password/*[in]*/)
  {
    short __MIDL_0032;
    OLECHECK(this->ConnectServerList(UserName, Password, (short*)&__MIDL_0032));
    return __MIDL_0032;
  }

  short __fastcall GetReplyWait(void)
  {
    short __MIDL_0033;
    OLECHECK(this->GetReplyWait((short*)&__MIDL_0033));
    return __MIDL_0033;
  }

  short __fastcall GetSpecReply(void)
  {
    short __MIDL_0034;
    OLECHECK(this->GetSpecReply((short*)&__MIDL_0034));
    return __MIDL_0034;
  }

  short __fastcall GetSpecReplyWait(void)
  {
    short __MIDL_0035;
    OLECHECK(this->GetSpecReplyWait((short*)&__MIDL_0035));
    return __MIDL_0035;
  }

  short __fastcall EPIConnectServer(BSTR ServerName/*[in]*/)
  {
    short __MIDL_0036;
    OLECHECK(this->EPIConnectServer(ServerName, (short*)&__MIDL_0036));
    return __MIDL_0036;
  }

  short __fastcall EPIGetEvent(void)
  {
    short __MIDL_0037;
    OLECHECK(this->EPIGetEvent((short*)&__MIDL_0037));
    return __MIDL_0037;
  }

  BSTR __fastcall EPIGetEventData(void)
  {
    BSTR Data = 0;
    OLECHECK(this->EPIGetEventData((BSTR*)&Data));
    return Data;
  }

  short __fastcall EPIGetEventType(void)
  {
    short __MIDL_0038;
    OLECHECK(this->EPIGetEventType((short*)&__MIDL_0038));
    return __MIDL_0038;
  }

  short __fastcall EPIReply(BSTR Data/*[in]*/)
  {
    short __MIDL_0039;
    OLECHECK(this->EPIReply(Data, (short*)&__MIDL_0039));
    return __MIDL_0039;
  }

  short __fastcall EPIGetEventNoWait(void)
  {
    short __MIDL_0040;
    OLECHECK(this->EPIGetEventNoWait((short*)&__MIDL_0040));
    return __MIDL_0040;
  }



#endif //   __TLB_NO_INTERFACE_WRAPPERS

};

#if !defined(__TLB_NO_INTERFACE_WRAPPERS)
// *********************************************************************//
// SmartIntf: TCOMIApp
// Interface: IApp
// *********************************************************************//
template <class T /* IApp */ >
class TCOMIAppT : public TComInterface<IApp>, public TComInterfaceBase<IUnknown>
{
public:
  TCOMIAppT() {}
  TCOMIAppT(IApp *intf, bool addRef = false) : TComInterface<IApp>(intf, addRef) {}
  TCOMIAppT(const TCOMIAppT& src) : TComInterface<IApp>(src) {}
  TCOMIAppT& operator=(const TCOMIAppT& src) { Bind(src, true); return *this;}

  HRESULT         __fastcall About(void);
  HRESULT         __fastcall BeginWrite(void);
  HRESULT         __fastcall CallProgram(BSTR ProgramName/*[in]*/);
  HRESULT         __fastcall CallProgramAndCommit(BSTR ProgramName/*[in]*/);
  HRESULT         __fastcall CallProgramDSync(BSTR ProgramName/*[in]*/);
  HRESULT         __fastcall CallProgramDSyncAndCommit(BSTR ProgramName/*[in]*/);
  HRESULT         __fastcall Commit(void);
  HRESULT         __fastcall ConnectServer(BSTR ServerName/*[in]*/, BSTR UserName/*[in]*/, 
                                           BSTR Password/*[in]*/, short* __MIDL_0015/*[out,retval]*/);
  short           __fastcall ConnectServer(BSTR ServerName/*[in]*/, BSTR UserName/*[in]*/, 
                                           BSTR Password/*[in]*/);
  HRESULT         __fastcall ConnectServer2(BSTR ServerName1/*[in]*/, BSTR ServerName2/*[in]*/, 
                                            BSTR UserName/*[in]*/, BSTR Password/*[in]*/, 
                                            short* __MIDL_0016/*[out,retval]*/);
  short           __fastcall ConnectServer2(BSTR ServerName1/*[in]*/, BSTR ServerName2/*[in]*/, 
                                            BSTR UserName/*[in]*/, BSTR Password/*[in]*/);
  HRESULT         __fastcall GetBlockSize(long* __MIDL_0017/*[out,retval]*/);
  long            __fastcall GetBlockSize(void);
  HRESULT         __fastcall GetErr(BSTR* Rs/*[out,retval]*/);
  BSTR            __fastcall GetErr(void);
  HRESULT         __fastcall GetErrCode(short* __MIDL_0018/*[out,retval]*/);
  short           __fastcall GetErrCode(void);
  HRESULT         __fastcall GetReply(short* __MIDL_0019/*[out,retval]*/);
  short           __fastcall GetReply(void);
  HRESULT         __fastcall GetValue(BSTR KeyName/*[in]*/, BSTR* __MIDL_0020/*[out,retval]*/);
  BSTR            __fastcall GetValue(BSTR KeyName/*[in]*/);
  HRESULT         __fastcall RollBack(void);
  HRESULT         __fastcall RsAddRow(void);
  HRESULT         __fastcall RsCreate(short ColNum/*[in]*/);
  HRESULT         __fastcall RsFetchRow(void);
  HRESULT         __fastcall RsGetCol(short Col/*[in]*/, BSTR* __MIDL_0021/*[out,retval]*/);
  BSTR            __fastcall RsGetCol(short Col/*[in]*/);
  HRESULT         __fastcall RsGetColNum(short* __MIDL_0022/*[out,retval]*/);
  short           __fastcall RsGetColNum(void);
  HRESULT         __fastcall RsGetRowNum(short* __MIDL_0023/*[out,retval]*/);
  short           __fastcall RsGetRowNum(void);
  HRESULT         __fastcall RsGetTableColNum(short nt/*[in]*/, short* __MIDL_0024/*[out,retval]*/);
  short           __fastcall RsGetTableColNum(short nt/*[in]*/);
  HRESULT         __fastcall RsGetTableRowNum(short nt/*[in]*/, short* __MIDL_0025/*[out,retval]*/);
  short           __fastcall RsGetTableRowNum(short nt/*[in]*/);
  HRESULT         __fastcall RsNewTable(short ColNum/*[in]*/);
  HRESULT         __fastcall RsOpen(void);
  HRESULT         __fastcall RsSaveRow(void);
  HRESULT         __fastcall RsSetCol(short Col/*[in]*/, BSTR Vlu/*[in]*/);
  HRESULT         __fastcall SetEciTimeOut(short t/*[in]*/);
  HRESULT         __fastcall SetValue(BSTR KeyName/*[in]*/, BSTR StrValue/*[in]*/);
  HRESULT         __fastcall Upload(BSTR FileName/*[in]*/, BSTR ServerFileName/*[in]*/);
  HRESULT         __fastcall T_T(TVariant* __MIDL_0026/*[out,retval]*/);
  TVariant        __fastcall T_T(void);
  HRESULT         __fastcall FetchStrFromFile(BSTR fs/*[in]*/, BSTR* __MIDL_0027/*[out,retval]*/);
  BSTR            __fastcall FetchStrFromFile(BSTR fs/*[in]*/);
  HRESULT         __fastcall GetValueToFile(BSTR KeyName/*[in]*/, BSTR fs/*[in]*/);
  HRESULT         __fastcall RsGetColByName(BSTR ColName/*[in]*/, BSTR* __MIDL_0028/*[out,retval]*/);
  BSTR            __fastcall RsGetColByName(BSTR ColName/*[in]*/);
  HRESULT         __fastcall RsGetColName(short ColNo1/*[in]*/, BSTR* __MIDL_0029/*[out,retval]*/);
  BSTR            __fastcall RsGetColName(short ColNo1/*[in]*/);
  HRESULT         __fastcall SaveStrToFile(BSTR s/*[in]*/, BSTR fs/*[in]*/);
  HRESULT         __fastcall LoadBlock(TVariant* RetData/*[out,retval]*/);
  TVariant        __fastcall LoadBlock(void);
  HRESULT         __fastcall SetTransId(BSTR TransId/*[in]*/);
  HRESULT         __fastcall EcInit(void);
  HRESULT         __fastcall ConnectServer0(BSTR ServerName/*[in]*/, BSTR UserName/*[in]*/, 
                                            BSTR Password/*[in]*/);
  HRESULT         __fastcall CallProgramAndCommit1(BSTR ProgramName/*[in]*/);
  HRESULT         __fastcall RsClose(void);
  HRESULT         __fastcall RestartWindow(void);
  HRESULT         __fastcall ServerListInit(short SrvNum);
  HRESULT         __fastcall ServerListAdd(BSTR ServerName/*[in]*/);
  HRESULT         __fastcall ConnectServerListX(BSTR ListName/*[in]*/, BSTR UserName/*[in]*/, 
                                                BSTR Password/*[in]*/, 
                                                short* __MIDL_0030/*[out,retval]*/);
  short           __fastcall ConnectServerListX(BSTR ListName/*[in]*/, BSTR UserName/*[in]*/, 
                                                BSTR Password/*[in]*/);
  HRESULT         __fastcall SetMsgQlf(short qlf/*[in]*/);
  HRESULT         __fastcall GetMsgQlf(short* __MIDL_0031/*[out,retval]*/);
  short           __fastcall GetMsgQlf(void);
  HRESULT         __fastcall ConnectServerList(BSTR UserName/*[in]*/, BSTR Password/*[in]*/, 
                                               short* __MIDL_0032/*[out,retval]*/);
  short           __fastcall ConnectServerList(BSTR UserName/*[in]*/, BSTR Password/*[in]*/);
  HRESULT         __fastcall GetReplyWait(short* __MIDL_0033/*[out,retval]*/);
  short           __fastcall GetReplyWait(void);
  HRESULT         __fastcall GetSpecReply(short* __MIDL_0034/*[out,retval]*/);
  short           __fastcall GetSpecReply(void);
  HRESULT         __fastcall GetSpecReplyWait(short* __MIDL_0035/*[out,retval]*/);
  short           __fastcall GetSpecReplyWait(void);
  HRESULT         __fastcall EPIConnectServer(BSTR ServerName/*[in]*/, 
                                              short* __MIDL_0036/*[out,retval]*/);
  short           __fastcall EPIConnectServer(BSTR ServerName/*[in]*/);
  HRESULT         __fastcall DisConnect(void);
  HRESULT         __fastcall EPIDisConnect(void);
  HRESULT         __fastcall EPIStartTran(BSTR TranName/*[in]*/);
  HRESULT         __fastcall EPIGetEvent(short* __MIDL_0037/*[out,retval]*/);
  short           __fastcall EPIGetEvent(void);
  HRESULT         __fastcall EPIGetEventData(BSTR* Data/*[out,retval]*/);
  BSTR            __fastcall EPIGetEventData(void);
  HRESULT         __fastcall EPIGetEventType(short* __MIDL_0038/*[out,retval]*/);
  short           __fastcall EPIGetEventType(void);
  HRESULT         __fastcall EPIReply(BSTR Data/*[in]*/, short* __MIDL_0039/*[out,retval]*/);
  short           __fastcall EPIReply(BSTR Data/*[in]*/);
  HRESULT         __fastcall EPIGetEventNoWait(short* __MIDL_0040/*[out,retval]*/);
  short           __fastcall EPIGetEventNoWait(void);
  HRESULT         __fastcall InitLogFile(BSTR FileName/*[in]*/);
  HRESULT         __fastcall WriteLogFile(BSTR LogStr/*[in]*/);
  HRESULT         __fastcall LogValue(BSTR KeyName/*[in]*/);
  HRESULT         __fastcall RsLogCol(short Col/*[in]*/);
  HRESULT         __fastcall WriteLogFileLine(BSTR LogStr/*[in]*/);

};
typedef TCOMIAppT<IApp> TCOMIApp;

// *********************************************************************//
// DispIntf:  IApp
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {5B554873-ACC5-11D4-8403-EA6165000000}
// *********************************************************************//
template<class T>
class IAppDispT : public TAutoDriver<IApp>
{
public:
  IAppDispT(){}

  IAppDispT(IApp *pintf)
  {
    TAutoDriver<IApp>::Bind(pintf, false);
  }

  IAppDispT(IAppPtr pintf)
  {
    TAutoDriver<IApp>::Bind(pintf, true);
  }

  IAppDispT& operator=(IApp *pintf)
  {
    TAutoDriver<IApp>::Bind(pintf, false);
    return *this;
  }

  IAppDispT& operator=(IAppPtr pintf)
  {
    TAutoDriver<IApp>::Bind(pintf, true);
    return *this;
  }

  HRESULT BindDefault()
  {
    return OLECHECK(Bind(CLSID_App));
  }

  HRESULT BindRunning()
  {
    return BindToActive(CLSID_App);
  }

  HRESULT         __fastcall About();
  HRESULT         __fastcall BeginWrite();
  HRESULT         __fastcall CallProgram(BSTR ProgramName/*[in]*/);
  HRESULT         __fastcall CallProgramAndCommit(BSTR ProgramName/*[in]*/);
  HRESULT         __fastcall CallProgramDSync(BSTR ProgramName/*[in]*/);
  HRESULT         __fastcall CallProgramDSyncAndCommit(BSTR ProgramName/*[in]*/);
  HRESULT         __fastcall Commit();
  HRESULT         __fastcall ConnectServer(BSTR ServerName/*[in]*/, BSTR UserName/*[in]*/, 
                                           BSTR Password/*[in]*/, short* __MIDL_0015/*[out,retval]*/);
  short           __fastcall ConnectServer(BSTR ServerName/*[in]*/, BSTR UserName/*[in]*/, 
                                           BSTR Password/*[in]*/);
  HRESULT         __fastcall ConnectServer2(BSTR ServerName1/*[in]*/, BSTR ServerName2/*[in]*/, 
                                            BSTR UserName/*[in]*/, BSTR Password/*[in]*/, 
                                            short* __MIDL_0016/*[out,retval]*/);
  short           __fastcall ConnectServer2(BSTR ServerName1/*[in]*/, BSTR ServerName2/*[in]*/, 
                                            BSTR UserName/*[in]*/, BSTR Password/*[in]*/);
  HRESULT         __fastcall GetBlockSize(long* __MIDL_0017/*[out,retval]*/);
  long            __fastcall GetBlockSize(void);
  HRESULT         __fastcall GetErr(BSTR* Rs/*[out,retval]*/);
  BSTR            __fastcall GetErr(void);
  HRESULT         __fastcall GetErrCode(short* __MIDL_0018/*[out,retval]*/);
  short           __fastcall GetErrCode(void);
  HRESULT         __fastcall GetReply(short* __MIDL_0019/*[out,retval]*/);
  short           __fastcall GetReply(void);
  HRESULT         __fastcall GetValue(BSTR KeyName/*[in]*/, BSTR* __MIDL_0020/*[out,retval]*/);
  BSTR            __fastcall GetValue(BSTR KeyName/*[in]*/);
  HRESULT         __fastcall RollBack();
  HRESULT         __fastcall RsAddRow();
  HRESULT         __fastcall RsCreate(short ColNum/*[in]*/);
  HRESULT         __fastcall RsFetchRow();
  HRESULT         __fastcall RsGetCol(short Col/*[in]*/, BSTR* __MIDL_0021/*[out,retval]*/);
  BSTR            __fastcall RsGetCol(short Col/*[in]*/);
  HRESULT         __fastcall RsGetColNum(short* __MIDL_0022/*[out,retval]*/);
  short           __fastcall RsGetColNum(void);
  HRESULT         __fastcall RsGetRowNum(short* __MIDL_0023/*[out,retval]*/);
  short           __fastcall RsGetRowNum(void);
  HRESULT         __fastcall RsGetTableColNum(short nt/*[in]*/, short* __MIDL_0024/*[out,retval]*/);
  short           __fastcall RsGetTableColNum(short nt/*[in]*/);
  HRESULT         __fastcall RsGetTableRowNum(short nt/*[in]*/, short* __MIDL_0025/*[out,retval]*/);
  short           __fastcall RsGetTableRowNum(short nt/*[in]*/);
  HRESULT         __fastcall RsNewTable(short ColNum/*[in]*/);
  HRESULT         __fastcall RsOpen();
  HRESULT         __fastcall RsSaveRow();
  HRESULT         __fastcall RsSetCol(short Col/*[in]*/, BSTR Vlu/*[in]*/);
  HRESULT         __fastcall SetEciTimeOut(short t/*[in]*/);
  HRESULT         __fastcall SetValue(BSTR KeyName/*[in]*/, BSTR StrValue/*[in]*/);
  HRESULT         __fastcall Upload(BSTR FileName/*[in]*/, BSTR ServerFileName/*[in]*/);
  HRESULT         __fastcall T_T(TVariant* __MIDL_0026/*[out,retval]*/);
  TVariant        __fastcall T_T(void);
  HRESULT         __fastcall FetchStrFromFile(BSTR fs/*[in]*/, BSTR* __MIDL_0027/*[out,retval]*/);
  BSTR            __fastcall FetchStrFromFile(BSTR fs/*[in]*/);
  HRESULT         __fastcall GetValueToFile(BSTR KeyName/*[in]*/, BSTR fs/*[in]*/);
  HRESULT         __fastcall RsGetColByName(BSTR ColName/*[in]*/, BSTR* __MIDL_0028/*[out,retval]*/);
  BSTR            __fastcall RsGetColByName(BSTR ColName/*[in]*/);
  HRESULT         __fastcall RsGetColName(short ColNo1/*[in]*/, BSTR* __MIDL_0029/*[out,retval]*/);
  BSTR            __fastcall RsGetColName(short ColNo1/*[in]*/);
  HRESULT         __fastcall SaveStrToFile(BSTR s/*[in]*/, BSTR fs/*[in]*/);
  HRESULT         __fastcall LoadBlock(TVariant* RetData/*[out,retval]*/);
  TVariant        __fastcall LoadBlock(void);
  HRESULT         __fastcall SetTransId(BSTR TransId/*[in]*/);
  HRESULT         __fastcall EcInit();
  HRESULT         __fastcall ConnectServer0(BSTR ServerName/*[in]*/, BSTR UserName/*[in]*/, 
                                            BSTR Password/*[in]*/);
  HRESULT         __fastcall CallProgramAndCommit1(BSTR ProgramName/*[in]*/);
  HRESULT         __fastcall RsClose();
  HRESULT         __fastcall RestartWindow();
  HRESULT         __fastcall ServerListInit(short SrvNum);
  HRESULT         __fastcall ServerListAdd(BSTR ServerName/*[in]*/);
  HRESULT         __fastcall ConnectServerListX(BSTR ListName/*[in]*/, BSTR UserName/*[in]*/, 
                                                BSTR Password/*[in]*/, 
                                                short* __MIDL_0030/*[out,retval]*/);
  short           __fastcall ConnectServerListX(BSTR ListName/*[in]*/, BSTR UserName/*[in]*/, 
                                                BSTR Password/*[in]*/);
  HRESULT         __fastcall SetMsgQlf(short qlf/*[in]*/);
  HRESULT         __fastcall GetMsgQlf(short* __MIDL_0031/*[out,retval]*/);
  short           __fastcall GetMsgQlf(void);
  HRESULT         __fastcall ConnectServerList(BSTR UserName/*[in]*/, BSTR Password/*[in]*/, 
                                               short* __MIDL_0032/*[out,retval]*/);
  short           __fastcall ConnectServerList(BSTR UserName/*[in]*/, BSTR Password/*[in]*/);
  HRESULT         __fastcall GetReplyWait(short* __MIDL_0033/*[out,retval]*/);
  short           __fastcall GetReplyWait(void);
  HRESULT         __fastcall GetSpecReply(short* __MIDL_0034/*[out,retval]*/);
  short           __fastcall GetSpecReply(void);
  HRESULT         __fastcall GetSpecReplyWait(short* __MIDL_0035/*[out,retval]*/);
  short           __fastcall GetSpecReplyWait(void);
  HRESULT         __fastcall EPIConnectServer(BSTR ServerName/*[in]*/, 
                                              short* __MIDL_0036/*[out,retval]*/);
  short           __fastcall EPIConnectServer(BSTR ServerName/*[in]*/);
  HRESULT         __fastcall DisConnect();
  HRESULT         __fastcall EPIDisConnect();
  HRESULT         __fastcall EPIStartTran(BSTR TranName/*[in]*/);
  HRESULT         __fastcall EPIGetEvent(short* __MIDL_0037/*[out,retval]*/);
  short           __fastcall EPIGetEvent(void);
  HRESULT         __fastcall EPIGetEventData(BSTR* Data/*[out,retval]*/);
  BSTR            __fastcall EPIGetEventData(void);
  HRESULT         __fastcall EPIGetEventType(short* __MIDL_0038/*[out,retval]*/);
  short           __fastcall EPIGetEventType(void);
  HRESULT         __fastcall EPIReply(BSTR Data/*[in]*/, short* __MIDL_0039/*[out,retval]*/);
  short           __fastcall EPIReply(BSTR Data/*[in]*/);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -