in reply to What is the difference: Calling a (c based) program OR inline c code

If you are on Windows, you also have

3) Write a DLL, and use it through Win32::OLE
  • Comment on Re: What is the difference: Calling a (c based) program OR inline c code

Replies are listed 'Best First'.
Re^2: What is the difference: Calling a (c based) program OR inline c code
by BrowserUk (Patriarch) on Oct 15, 2008 at 13:55 UTC
    and use it through Win32::OLE

    That would be an ass-back'ards way of doing things.

    1. Inline::C creates a dll from the C code and puts the glue in place to load and call it.
    2. You can access the functions in any DLL via Win32::API.

    Using Win32::OLE is about more black magic than just about any other module. Jumping through the hoops required to create an OLE callable DLL--just so you can access it via that module--is really seeking out the path of most resistance.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.