beautypg.com

3 c++ interface definition header file, C++ interface definition header file – Metrohm 846 Driver Toolbox User Manual

Page 33

background image

3.1 Programming interface definitions

Dosing Interface USB Toolbox, Annex

29

3.1.3 C++ interface definition header file

/*******************************************************************************

Metrohm AG Switzerland. All rights reserved.

$Header:

/Tools/846_USB_DLL/src/846_Dosing_Interface/846DosingInterfaceDefinition.h

7

27.05.05 16:39 Km $

-------------------------------------------------------------------------------

$Log: /Tools/846_USB_DLL/src/846_Dosing_Interface/846DosingInterfaceDefinition.h

$

*

* 7 27.05.05 16:39 Km

*

* 6 27.05.05 11:54 Km

* Change in Interface

*

* 6 12.05.05 15:30 bc, rw --> parameter names adapted

*

* 5 06.01.05 13:52 Km

*

* 4 05.01.05 10:45 Km

*

* 3 04.01.05 14:32 Km

*

* 2 03.01.05 15:29 Km

*

* 1 15.12.04 15:36 Km

$NoKeywords: $

*******************************************************************************/

#ifndef Dosinginterface846_h

#define Dosinginterface846_h

#ifdef _USRDLL

#define DllDirection __declspec( dllexport )

#else

#define DllDirection __declspec( dllimport )

#endif

enum eReturnstate

{

// function could be set up correctly

RET_STAT_OK = 0,

// not a valid 846 Dosing Interface number or Dosino number

RET_STAT_nvNumber = 1,

// not a valid Dosino

RET_STAT_noDosino = 2,

// communication error

RET_STAT_commError = 3,

// function arguments out of specified range

RET_STAT_argError = 4,

// not a valid action

RET_STAT_nvAction = 5

};