I don't have any cybermaxx.h
here are the *.h that i have
// MaxxCom.h -- header definitions for CyberMaxx Tracker
// Copyright (C) 1995 VictorMaxx Technologies, Inc.
// Author: Robert J. Gebis
// Date: 2 Oct 95 Ver 1.0
// Date: 19 Jan 96 1.0.1
// Date: 23 Jan 96 1.0.2
// Date: 24 Jan 96 1.0.4
#ifndef __MAXXCOM_H__
#define __MAXXCOM_H__
#define ABSOLUTE_MODE "C"
#define RAW_DATA_MODE "B"
#define ASCII_MODE "E"
#define BINARY_MODE "F"
#define SAMPLE_UPON_REQUEST "G"
#define CONTINOUS_SAMPLE_MODE "H"
#define TRANSITION_9600_19200 "K"
#define TRANSITION_19200_9600 "L"
#define CHECKSUM_ON "M"
#define CHECKSUM_OFF "N"
#define AVERAGE_FILTER_ON "T"
#define AVERAGE_FILTER_OFF "W"
#define HYSTERESIS_FILTER_ON "P"
#define HYSTERESIS_FILTER_OFF "O"
#define HARD_RESET "R"
#define REQUEST_HANDSHAKE "X"
#define REQUEST_VERSION_NUM "V"
#define SEND_CURRENT_COORDINATE "S"
#define SEND_CURRENT_SENSOR_DATA "S"
#define MAXPACK 75 // higher sampling mode
#define MINPACK 5 // lower sampling mode
#define DEFSAMPLE "40" // starting sampling speed
#define COM0_ID 0
#define COM1_ID 1
#define COM2_ID 2
#define COM3_ID 3
#define COM4_ID 4
// Number To Read IN Check Sum Mode
#define N2R_INCSM_ON 7
#define N2R_INCSM_OFF 6
const char COM1[5] = "COM1";
const char COM2[5] = "COM2";
const char COM3[5] = "COM3";
const char COM4[5] = "COM4";
#define DllExport __declspec( dllexport )
class DllExport MaxxCom {
public:
MaxxCom();
~MaxxCom();
int AutoDetectComPort(void);
BOOL OpenCom(const char*);
BOOL checkForCyberMaxx(void);
BOOL Set9600(void);
BOOL Set19200(void);
BOOL SetHysteresisOn(void);
BOOL SetHysteresisOff(void);
BOOL HardReset(void);
BOOL CheckSumOff(void);
BOOL CheckSumOn(void);
BOOL ReadFromPort(void);
char* Get_Version(void); // if not NULL then returns pointer to version
void Get_PYR(int*, int*, int*); // Get Pitch,Yaw,Roll
inline char GetTransMode(void){ return m_TransMode;}
inline void SetTransMode(char tp){ m_TransMode = tp;}
inline char GetDataMode(void){ return m_dataType;}
inline void SetDataMode(char tp){ m_dataType = tp;}
void CloseCom(void);
void SetSamplingRate(int rate); // MINPACK <-> MAXPACK increments of 5
inline int GetSamplingRate(void){return m_SamplingRate;}
inline int GetCurrentSpeed(void){return m_iPortSpeed;}
inline int GetPortId(void){return m_port_ID;}
// For internal use only
BOOL GetDCB(void);
BOOL DoCheckSum(void);
BOOL SendToPort(char*);
inline unsigned char* GetDataBuffer(void){return m_inBuffer;}
inline HANDLE GetTempComHandle(void){return m_hConTemp;}
inline BOOL CheckIfBusy(void){ return m_bPortInUse;}
inline BOOL GetCheckStatus(void){ return m_bChecksum;}
inline void SetPortId(int id){m_port_ID = id;}
inline void SetTempComHandle( void){m_hConTemp = m_hCom;}
inline void SetNewComHandle( void){m_hCom = m_hConTemp;}
inline void SetSpeedFlag(int speed){ m_iPortSpeed = speed;}
inline int GetBytesRead(void){return m_numOfBytesRead;}
inline HANDLE GetComHandle(void){return m_hCom;}
BOOL CloseCom(const HANDLE);
void errMsgBox(const char*);
void ResetFIFO(void);
private:
int m_port_ID, // COM1_ID, COM2_ID, .....
m_SamplingRate, // default 40 packet/s
m_iCheckSum, // contains actual checksum data
m_iPortSpeed, // 9600 | 19200, 9600 default
m_pitch, m_yaw, m_roll; // -45<->+45 , 0<->359, -45<->+45
char m_dataType; // used to flag binary or ascii mode (BINARY_MODE,ASCII_MODE)
char m_TransMode; // used to flag Transfer type (CONTINOUS_SAMPLE_MODE, SAMPLE_UPON_REQUEST)
char m_version[30]; // HMD version number
unsigned char m_inBuffer[30]; // Data read from HMD
BOOL m_bPortInUse, // True if Port is used
m_bChecksum; // True if chack sum enabled
DCB m_dcb;
HANDLE m_hCom, m_hConTemp;
DWORD m_numOfBytesRead; // number of bytes read from HMD
};
#endif // nothing else after this line
-----AND the
// CyberTrak.h : main header file for the CYBERTRAK application
//
#include "MaxxCom.h"
#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
#include "resource.h" // main symbols
/////////////////////////////////////////////////////////////////////////////
// CCyberTrakApp:
// See CyberTrak.cpp for the implementation of this class
//
class CCyberTrakApp : public CWinApp
{
private:
MaxxCom maxxcom;
public:
CCyberTrakApp();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCyberTrakApp)
public:
virtual BOOL InitInstance();
virtual int ExitInstance();
//}}AFX_VIRTUAL
// Implementation
//{{AFX_MSG(CCyberTrakApp)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
But there is no part to declare.
here are the *.h that i have
// MaxxCom.h -- header definitions for CyberMaxx Tracker
// Copyright (C) 1995 VictorMaxx Technologies, Inc.
// Author: Robert J. Gebis
// Date: 2 Oct 95 Ver 1.0
// Date: 19 Jan 96 1.0.1
// Date: 23 Jan 96 1.0.2
// Date: 24 Jan 96 1.0.4
#ifndef __MAXXCOM_H__
#define __MAXXCOM_H__
#define ABSOLUTE_MODE "C"
#define RAW_DATA_MODE "B"
#define ASCII_MODE "E"
#define BINARY_MODE "F"
#define SAMPLE_UPON_REQUEST "G"
#define CONTINOUS_SAMPLE_MODE "H"
#define TRANSITION_9600_19200 "K"
#define TRANSITION_19200_9600 "L"
#define CHECKSUM_ON "M"
#define CHECKSUM_OFF "N"
#define AVERAGE_FILTER_ON "T"
#define AVERAGE_FILTER_OFF "W"
#define HYSTERESIS_FILTER_ON "P"
#define HYSTERESIS_FILTER_OFF "O"
#define HARD_RESET "R"
#define REQUEST_HANDSHAKE "X"
#define REQUEST_VERSION_NUM "V"
#define SEND_CURRENT_COORDINATE "S"
#define SEND_CURRENT_SENSOR_DATA "S"
#define MAXPACK 75 // higher sampling mode
#define MINPACK 5 // lower sampling mode
#define DEFSAMPLE "40" // starting sampling speed
#define COM0_ID 0
#define COM1_ID 1
#define COM2_ID 2
#define COM3_ID 3
#define COM4_ID 4
// Number To Read IN Check Sum Mode
#define N2R_INCSM_ON 7
#define N2R_INCSM_OFF 6
const char COM1[5] = "COM1";
const char COM2[5] = "COM2";
const char COM3[5] = "COM3";
const char COM4[5] = "COM4";
#define DllExport __declspec( dllexport )
class DllExport MaxxCom {
public:
MaxxCom();
~MaxxCom();
int AutoDetectComPort(void);
BOOL OpenCom(const char*);
BOOL checkForCyberMaxx(void);
BOOL Set9600(void);
BOOL Set19200(void);
BOOL SetHysteresisOn(void);
BOOL SetHysteresisOff(void);
BOOL HardReset(void);
BOOL CheckSumOff(void);
BOOL CheckSumOn(void);
BOOL ReadFromPort(void);
char* Get_Version(void); // if not NULL then returns pointer to version
void Get_PYR(int*, int*, int*); // Get Pitch,Yaw,Roll
inline char GetTransMode(void){ return m_TransMode;}
inline void SetTransMode(char tp){ m_TransMode = tp;}
inline char GetDataMode(void){ return m_dataType;}
inline void SetDataMode(char tp){ m_dataType = tp;}
void CloseCom(void);
void SetSamplingRate(int rate); // MINPACK <-> MAXPACK increments of 5
inline int GetSamplingRate(void){return m_SamplingRate;}
inline int GetCurrentSpeed(void){return m_iPortSpeed;}
inline int GetPortId(void){return m_port_ID;}
// For internal use only
BOOL GetDCB(void);
BOOL DoCheckSum(void);
BOOL SendToPort(char*);
inline unsigned char* GetDataBuffer(void){return m_inBuffer;}
inline HANDLE GetTempComHandle(void){return m_hConTemp;}
inline BOOL CheckIfBusy(void){ return m_bPortInUse;}
inline BOOL GetCheckStatus(void){ return m_bChecksum;}
inline void SetPortId(int id){m_port_ID = id;}
inline void SetTempComHandle( void){m_hConTemp = m_hCom;}
inline void SetNewComHandle( void){m_hCom = m_hConTemp;}
inline void SetSpeedFlag(int speed){ m_iPortSpeed = speed;}
inline int GetBytesRead(void){return m_numOfBytesRead;}
inline HANDLE GetComHandle(void){return m_hCom;}
BOOL CloseCom(const HANDLE);
void errMsgBox(const char*);
void ResetFIFO(void);
private:
int m_port_ID, // COM1_ID, COM2_ID, .....
m_SamplingRate, // default 40 packet/s
m_iCheckSum, // contains actual checksum data
m_iPortSpeed, // 9600 | 19200, 9600 default
m_pitch, m_yaw, m_roll; // -45<->+45 , 0<->359, -45<->+45
char m_dataType; // used to flag binary or ascii mode (BINARY_MODE,ASCII_MODE)
char m_TransMode; // used to flag Transfer type (CONTINOUS_SAMPLE_MODE, SAMPLE_UPON_REQUEST)
char m_version[30]; // HMD version number
unsigned char m_inBuffer[30]; // Data read from HMD
BOOL m_bPortInUse, // True if Port is used
m_bChecksum; // True if chack sum enabled
DCB m_dcb;
HANDLE m_hCom, m_hConTemp;
DWORD m_numOfBytesRead; // number of bytes read from HMD
};
#endif // nothing else after this line
-----AND the
// CyberTrak.h : main header file for the CYBERTRAK application
//
#include "MaxxCom.h"
#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
#include "resource.h" // main symbols
/////////////////////////////////////////////////////////////////////////////
// CCyberTrakApp:
// See CyberTrak.cpp for the implementation of this class
//
class CCyberTrakApp : public CWinApp
{
private:
MaxxCom maxxcom;
public:
CCyberTrakApp();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCyberTrakApp)
public:
virtual BOOL InitInstance();
virtual int ExitInstance();
//}}AFX_VIRTUAL
// Implementation
//{{AFX_MSG(CCyberTrakApp)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
But there is no part to declare.