Using as a DLL

When the dBarScan DLL is used as a standard DLL the normal property and method names are not available. All properties are set using functions such as

setbSelection(true);

and retrieved using functions such as:

datastring=getoData();

And the names of the scan() methods are prefixed by the letter d, eg

I=dscan();

The list of function exported by the DLL is shown below.

The following functions are available to set properties:

void setdControl1(long n);
void setdControl2(long n);
void sethiwidth(long n);
void sethiheight(long n);
void setbSelection(bool b);
void setbCheckCheck(bool b);
int setselLeft(long n);
int setselTop(long n);
int setselRight(long n);
int setselBottom(long n);
void setSerial(CString s);
void setdImage(HGLOBAL hin);
void setFNC1(char c);
void setFNC2(char c);
void setFNC3(char c);
void setFNC4(char c);
void setTypeMask(long n);

The following functions are available for retrieving properties:

bool getbChecked();
CString getoData();
long getErrorCode();
long getiChkA1();
long getiChkA2();
long getiChkC1();
long getiChkC2();
CString getStatus();
CString getTargetType(long n);
long getnTargetTypes();

The following functions are available to perform actions:

void dInitialise();
long dscan();
long dscan1(long ntries, long ileft, long iline);
long dscan2(long tleft, long tline, long tswidth, long tsdepth);

 

The VCDemo program illustrates the use of dBarScan.dll called from a Visual C/C++ v6 program. Note that dInitialse() MUST be the first function called when the dll is used.

 

More:

dBarScan DLL specific features