Hi,
Could you please suggest a translation of the following C function:
extern "C" void __declspec(dllexport) __cdecl XLSGetCellValue(THandle AHandle, int SheetIndex, int Row, int Col, int MaxLen, LPSTR &Value);
In particular
LPSTR &Value is of interest.
I have shallow understanding that this is a pointer to string passed by reference;
also I understand that XBLite's default data type is
XLONG, so in .def file I did:
EXTERNAL CFUNCTION VOID XLSGetCellValue(AHandle,SheetIndex,Row,Col,MaxLen,@Value)
Here is how I call it:
...
XLSGetCellValue(hXlsFile,0,0,0,valLen,&cellVal)
PRINT "cellVal ",CSTRING$(cellVal)
...
all passed values seem to be valid:
SheetIndex,Row,Col,MaxLen.
hXlsFile is valid because I call other functions with this handle and they do work.
But execution does not proceed past
XLSGetCellValue call. The compiled .exe silently
ignores all the code below, nothing is printed.
I also did:
XLSGetCellValue(hXlsFile,0,0,0,valLen,@cellVal)
or
XLSGetCellValue(hXlsFile,0,0,0,valLen,cellVal)
and
PRINT "cellVal ",cellVal ' to just see the address
but nothing is working.