I have a C++ header file I am porting over, I finally found the time to do this.
It's a HLLAPI type conversion, designed to be used to speak through an emulator to a host...
So my questions are these typedef's, I am coming across some minor errors and not sure I am porting this correctly:
-------------
Scott
mailto:[email protected][email protected]</A>
It's a HLLAPI type conversion, designed to be used to speak through an emulator to a host...
So my questions are these typedef's, I am coming across some minor errors and not sure I am porting this correctly:
Code:
typedef struct tagATMSystem { WORD wHLLAPIVersionNumber; WORD wHLLAPILevelNumber; } ATMSYSTEM, NEAR * NPATMSYSTEM, FAR * LPATMSYSTEM; typedef struct tagStartIntercept { char cPSID; WORD wKeyFilter; WORD wQueueLength; BOOL bWindowsMessage; } STARTINTERCEPT, NEAR * NPSTARTINTERCEPT, FAR * LPSTARTINTERCEPT; PORTED: Type tagATMSystem wHLLAPIVersionNumber As Word wHLLAPILevelNumber As Word ' ATMSYSTEM, NEAR * NPATMSYSTEM, FAR * LPATMSYSTEM; End Type Type tagStartIntercept cPSID As String * 1 wKeyFilter As Word wQueueLength As Word bWindowsMessage As Integer ' STARTINTERCEPT, NEAR * NPSTARTINTERCEPT, FAR * LPSTARTINTERCEPT; End Type ============================================================================================================ Example 2 typedef struct tagHLLParams { BYTE byAttribute; /* ATTRB or NOATTRB */ BYTE byAutoReset; /* AUTORESET or NOAUTORESET */ BYTE byConnectType; /* CONLOG or CONPHYS */ BYTE byEAB; /* EAB or NOEAB */ char cEscape; /* default '@' */ BYTE byPause; /* IPAUSE or FPAUSE */ BYTE bySearchOrigin; /* SRCHALL or SRCHFROM */ BYTE bySearchDirection; /* SRCHFORWARD or SRCHBKWD */ WORD wTimeOut; /* 0..64k */ BYTE byTrace; /* TRON or TROFF */ BYTE byWait; /* TWAIT, LWAIT, NWAIT */ BYTE byXlate; /* ASCII<->3270DC translation or not */ } HLLPARAMS, NEAR * NPHLLPARAMS, FAR * LPHLLPARAMS; PORTED: Type tagHLLParams byAttribute As Byte '/* ATTRB or NOATTRB */ byAutoReset As Byte '/* AUTORESET or NOAUTORESET */ byConnectType As Byte '/* CONLOG or CONPHYS */ byEAB As Byte '/* EAB or NOEAB */ cEscape As String * 1 '/* default '@' */ byPause As Byte '/* IPAUSE or FPAUSE */ bySearchOrigin As Byte '/* SRCHALL or SRCHFROM */ bySearchDirection As Byte '/* SRCHFORWARD or SRCHBKWD */ wTimeOut As Word '/* 0..64k */ byTrace As Byte '/* TRON or TROFF */ byWait As Byte '/* TWAIT, LWAIT, NWAIT */ byXlate As Byte '/* ASCII<->3270DC translation or not */ ' HLLPARAMS, NEAR * NPHLLPARAMS, FAR * LPHLLPARAMS; End Type And then HOW does one Port this?? typedef struct tagSessions { char cPSID; char szLongName [8]; Byte byState; /****************************************** Bit 0: configured? Bit 1: opened? Bit 2: powered? *******************************************/ Word wPSSize; } SESSIONS, NEAR * NPSESSIONS, FAR * LPSESSIONS; typedef struct tagSessionStatus { char cPSID; /* session short Name */ char szLongName [8]; Word bType; /* FALSE = CUT; TRUE = DFT */ Byte byCharacteristics; /***************************************************** Bit 0: EABs? Y/N Bit 1: Programmed Symbols Y/N *****************************************************/ Byte byUsage; /**************************************************** Bit 0: Configured? Y/N Bit 1: Opened? Y/N Bit 2: Powered? Y/N Bit 3: AutoPowered? Y/N Bit 4: Emulated? Y/N Bit 5: HLLAPI-Connected? Y/N Bit 6: FileTrans? Y/N ****************************************************/ /****************************************************************** note that Bit 5, HLLAPI-Connected, may be either HLLWin connection, HLLWin keystroke interception, Or HLLWin-initiated file transfer *******************************************************************/ Word wRows; Word wColumns; } SESSIONSTATUS, NEAR * NPSESSIONSTATUS, FAR * LPSESSIONSTATUS;
-------------
Scott
mailto:[email protected][email protected]</A>
Comment