7.3. Interface Design—Embed Perl Interpreter into C/C++
7.3.1. Overview
In this section, we will discuss how to develop an interface between Perl and C/C++ by using a method of embedding a Perl interpreter into the C/C++ domain. To achieve this objective, we will utilize Visual C++ 6.0 as a compiler and a linker, and use the ExtUtils::Embed module provided by Perl to finish embedding the Perl interpreter into the Visual C++ 6.0 domain. We will develop some code in the Visual C++ 6.0 domain, and try to embed the Perl interpreter in to that domain, to call and run a Perl script to test this interface.
The block diagram of the functionality of this interface is shown in Figure 7-4. C/C++ code accesses the Perl script by calling and running an embedded ...
Get Applications Interface Programming Using Multiple Languages: A Windows® Programmer's Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.