MCslp HomeMCslp Home Contact | About | Help | Legal
Books | Articles | Downloads
News | News Archive
 
 
 
Embedding Perl into Visual C Projects, Update, 22nd July, 2000

Between me writing the Visual C Developers Journal article, Embedding Perl into Visual C Projects and it actually being published, ActiveState introduced a new version based on Perl 5.6.

This unfortunately had the effect of breaking the embedding support, including the tricks highlighted in my article. The new version of ActivePerl, build 616, actually fixes all of the problems and makes the entire process of embedding much easier, and more compatible with the Unix system of embedding.

The resulting code is now much simpler to understand, and the whole process of embedding the interpreter is also much simpler. With reference to the original article, the following differences now apply:

  • You no longer need to download and compile the source code - Perl comes with everything you need.
  • You need only one file - the C file with the embedding calls in it, the other files are no longer required.
  • We no longer need the object based interface to the embedded interpreter.

To make it easier, I've created a new version of the source code and a suitable Makefile for running direct through nmake or similar. The Zip file also includes a compiled version of the final script. You should be able to compile the source simply by running make. Make sure you've downloaded the 616 build of ActivePerl, which you can obtain from ActiveState.

Download the updated Zip file for the Embedding Perl article.

Recent Site Updates

Most recent first:

 Downloads
 
Perl I Didn't Know... Source
Download:   PC   Unix
Perl Complete Ref 2ed Source
Download:   PC   Unix
Debugging Perl Source
Download:   PC   Unix
ActivePerl Developer's Guide Source
Download:   PC   Unix  
Visual C Developer's Journal
Embedding Perl Update   PC
Python Annotated Archives Source
Download:   PC   Unix   Mac  
Perl Programmers Reference Source
Download:   PC   Unix   Mac  
Perl Download Reference Source
Download:   PC   Unix   Mac  
Perl AA Scripts  (more info)
Download:   PC   Unix   Mac  

Website (c) 1998 and beyond Martin C Brown, MCSLP, UK. All other items, including contributed texts, files and information is the copyright of their respective owners.
Contact Us