****Email on behalf of Mark Riehl (he is having problems posting****
All,
What's the best way to approach this? I'm trying to put together an
application that needs to be flexible enough to use multiple databases
(MySQL and Oracle are the first two). I've done some experimenting with
Perl/DBI standalone scripts and it works great. I'd like to get this
interface into a C/C++ application. There are a few examples in v3 of
the Camel book.
Questions:
1. Is there a way to embed the DBI Perl module into a C++ app or should
I write a Perl subroutine and call it from C++?
2. Am I better off just using a standalone Perl process and pass the
data to the C++ app via a socket?
3. In either approach, are there any platform dependent issues that I
need to be aware of? My initial platforms would need to include Win2k,
Linux, and Solaris.
4. If a Perl program contains a subroutine that I want to call from a
C++ program (e.g., DBI calls), how do I get a handle to the return data?
The examples in the Camel book are similar to making system calls.
Any advice/suggestions would be appreciated.
Thanks,
Mark
--
Mark Riehl