Scanlab RTC 5 PC Interface Board Installation And Operation Manual page 63

Table of Contents

Advertisement

C
In C, you can choose either implicit linking – also
known as static load or load-time dynamic linking –
or explicit linking – also known as dynamic load or
run-time dynamic linking.
Implicit Linking
To accomplishing implicit linking, include the header
file RTC5impl.h and link with the (C) import library
RTC5DLL.LIB (for Win32-based applications or with
RTC5DLLx64.LIB for Win64-based applications) for
building the executable.
®
Call the RTC
5 commands you need like
goto_xy(1000, 2500);
for causing a jump to location 1000, 2500.
Explicit Linking
To accomplishing explicit linking, include the header
file RTC5expl.h. Before calling any RTC
initialize the DLL by calling the function RTC5open
(which is defined in the file RTC5expl.c).
When you are finished using the RTC
by calling the function RTC5close (also defined in the
file RTC5expl.c).
For building the executable, link with the file
RTC5EXPL.OBJ, which you can generate from the
source code RTC5expl.c.
®
Call the RTC
5 commands you need, like
goto_xy(1000, 2500);
for causing a jump to location 1000, 2500.
®
RTC
5 PC Interface Board
Rev. 1.9 e
6 Developing User Applications
Pros and Cons of Implicit and Explicit Linking
Necessary
Files
Advantage Easiest linking
Negative
Aspect
C++
®
5 function,
If you want to use references instead of pointers for
returning values to function parameters in C++ (for
®
instance UINT&Pos instead of UINT*Pos), use the files
5, close the DLL
RTC5impl.hpp instead of RTC5impl.h. Otherwise the
command import is realized as in C (see above).
C#
To accomplishing implicit linking in C#, import decla-
rations of the wrapper class are provided.
As of DLL 537: The wrapper class also supports the
'Any CPU' option for simultaneous usage with 32-bit
and 64-bit programs.
Implicit Linking
Explicit Linking
RTC5impl.h or
RTC5expl.h,
RTC5impl.hpp,
RTC5expl.c
RTC5DLL.LIB or
RTC5DLLx64.LIB
Eliminates the
method
need to link the
application with
an import library
Need to link the
Need to initialize
application with a
(RTC5open) and
compiler-specific
close (RTC5close)
import library
the DLL
63

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RTC 5 PC Interface Board and is the answer not in the manual?

Related Products for Scanlab RTC 5 PC Interface Board

Table of Contents

Save PDF