Eddie Monster
12th December 2001, 23:46
Can anyone offer an explaination of how the declaration of:

#pragma used dll

works and is there a list of the different items (ottdllbw, ottdllinputstr, etc.) that exist?

Thanks in advance!

gfasbender
13th December 2001, 00:02
The "#pragma used dll.." code is used by Baan's compiler to update an objects where-used tables. It it also used to link the DLL.

As for a list, I've Never seen one, but you can look in the $BSE/tools/. directory structure to see the different tools DLL objects.

maxbel
13th December 2001, 15:39
you can insert
#pragma used dll o<dllname>
to use dll <dllname> from script\library
it has the same effect as adding <dllname> to libraries list of your object.

Example
#pragma used dll otfzzzdll003m00

I prefer use dlls such way because it can be easily maintained with text editor and parsed. (For example my Unired shows me list of used dll in code explorer).

I think there is no sense in using existing dll's of Baan because the aren't documented an so can be changed without warning.