DirkRi
8th October 2002, 18:52
I would like to know how to reference (call) a Baan DLL from an exchange condition (Baan 5.2a).
Thanks!
baanprog
8th October 2002, 21:36
Just Call it as you would in a program script and it should work.
nick_rogers
8th October 2002, 21:42
First you have to declare the DLL in the script as follows:
Put this in the top of the condition.
#pragma used dll ${BSE}/application/tcB40C_b4_C2b2/otcmcs/omcsdllc001
#pragma used dll ${BSE}/application/tcB40C_b4_C2b3/otccom/ocomdll0025
actual call later on for what I did:
file.ptr = tcmcs.dllc001.open.file(strip$(shiftl$(file.path)) & "/" &
strip$(shiftl$(file.name)),"r")
DirkRi
9th October 2002, 16:11
Thanks..I'll try the #pragma statement with the full path. I tried it with just the dll and it did not work.
baanprog
9th October 2002, 20:07
I missed to write that u should use # pragma used dll.( i presumed one would do that as we link it to the program script, sorry for any inconvenience)