ben.kansas
12th December 2008, 23:22
Hi All,

I am trying to make use of the pre-processor directives in a program script in which I am running an Exchange Scheme for a user as found here (http://www.baanboard.com/baanboard/showthread.php?t=8411). However, I am adapting it for use in LN.

When I use:

#include "odaxch0224"

I receive a compile error:

odaxch0224( 1): Error: '[' not expected.


Am I calling the wrong object? How should go about accessing the functions inside of this library?

Many thanks,
Ben

shah_bs
13th December 2008, 00:10
You are using an object code file, so you need to use following command:


#pragma used dll "odaxch0224"

prashant
15th December 2008, 08:14
hi,
You can try this also.
For DLL's use:-
#pragma used dll ottdllbw

Otherwise,to include:-
#include <bic_dam>

may be this can help you.

regards

ben.kansas
15th December 2008, 18:53
Thanks, Prashant and shah_bs for the information.

Using the #pragma used solved the compile issue.

However, I ran into another problem. Odaxch0224 does not expose the functions process.range.of.xch.schemes() and handle.run.num() like ituxch0224 in Baan IV does.

Is there another dll or include that I can use to access these functions?