I need to communicate with Dibal labeling scale.
I've reached SDK from my vendor, samples in C# and VB and two .dll files needed to do transfer of articles to the scale.
I can't start with anything, because I can't find how to call function from this .dll file
My sample code:
Code: Select all
// DataSend is one of the function id Dibalscop.dll
DYNAMIC DataSend
FUNCTION Main
Local hLib
hLib := hb_LibLoad( "Dibalscop.dll" )
// I want to proof if hLib is not empty
msgdebug( hLib ) // returns pointer
//one way to call DataSend function
x := &("DataSend")( 1, date(), time() )
msgdebug(x)
IF !Empty( hLib )
//second way - it should work when DYNAMIC DataSend is declared
x := DataSend()
ENDIF
hb_LibFree( hLib )
RETURN Nil
Code: Select all
Date:06/14/17 Time: 23:49:17
Error BASE/1001 Undefined function: DATASEND
Called from DATASEND(0)
Called from MAIN(9)