[Please excuse if this message comes as MIME type multipart/alternative; our
mail server was reconfigured and I don't know whether they've changed it
back yet.]
Olivier CLERE wrote:
> Could anybody give me an easy method to
> include C functions in a Perl CGI file?
> Is this possible anyway?
> What does it require?
Read the following question in perlfaq3 for starters:
Where can I learn about linking C with Perl? [h2xs, xsubpp]
For example, by calling `perldoc -q "linking C with Perl"`.
You can create so-called XS modules as glue between Perl and C. But I
wouldn't describe XS as "easy" (though I haven't tried it myself).
What is it you are trying to do in C? Here are some more possible solutions.
Perhaps you can re-code it in Perl. If you want to call a C program (rather
than just a subroutine), you can use system(). If the routine is in a
Windows DLL, you may be able to use Win32::API to interface with it fairly
easily. If the program has an OLE Automation interface, you might be able to
use Win32::OLE to talk to it.
Cheers,
Philip
---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
[EMAIL PROTECTED]
For non-automated Mailing List support, send email to
[EMAIL PROTECTED]