Click here to get back home

Getting Path of an external DLL in Perl: Inline C.

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Getting Path of an external DLL in Perl: Inline C. Sankaran 10-02-2005
Posted by Sankaran on October 2, 2005, 8:41 pm
Please log in for more thread options


Hello All,

Subject: Getting Path of an external DLL in Perl: Inline C.

I have a Perl program where I am using Inline:C module to call C++
functions exposed by another DLL (Registry.DLL) . Normally the
Registry.Dll comes along with another installation and this will be
available in the Bin directory (For Eg. F:\MyInstallation\Bin).

For my testing purpose, I have copied the Registry.Dll in my local
folder and built the perl program to produce the exe.

The problem is like this, upon making the exe from my perl program, an
_Inline directory is created, of course this is obvious! And my exe is
also generated. When I remove the registry.Dll from my local directory,
assuming that the Registry.Dll will be taken from the Path, gives me an
error and the Registry.Dll is not being picked from the Bin folder as
expected. Ay suggestion how this can be solved?

I am assuming that this could be due to some wrong usage in Perl:Inline
C module and hence sending this mail to this group.

Regards,
Sankaran



Posted by Sisyphus on October 3, 2005, 4:57 pm
Please log in for more thread options




>
> The problem is like this, upon making the exe from my perl program, an
> _Inline directory is created, of course this is obvious! And my exe is
> also generated. When I remove the registry.Dll from my local directory,
> assuming that the Registry.Dll will be taken from the Path, gives me an
> error and the Registry.Dll is not being picked from the Bin folder as
> expected. Ay suggestion how this can be solved?
>

Are you using the PAR module's pp utility to make the exe from the perl
program ?
What does the error message say ?

Cheers,
Rob




Posted by Sisyphus on October 3, 2005, 4:58 pm
Please log in for more thread options




>
> The problem is like this, upon making the exe from my perl program, an
> _Inline directory is created, of course this is obvious! And my exe is
> also generated. When I remove the registry.Dll from my local directory,
> assuming that the Registry.Dll will be taken from the Path, gives me an
> error and the Registry.Dll is not being picked from the Bin folder as
> expected. Ay suggestion how this can be solved?
>

Are you using the PAR module's pp utility to make the exe from the perl
program ?
What does the error message say ?

Cheers,
Rob





Posted by Sankaran on October 3, 2005, 1:05 am
Please log in for more thread options


No error message. The program simply goes off. But if I place the DLL
in my current folder it works.

Sankaran



Similar ThreadsPosted
Calling external dll from inline perl using gcc on XP May 19, 2006, 2:48 am
Calling External DLL functions in Perl using Inline July 11, 2005, 6:47 am
Using external REXX function libraries with PERL October 1, 2007, 2:40 pm
Windows: Perl:Inline July 6, 2005, 4:56 am
Error in Perl Inline::C program running November 3, 2005, 4:00 am
Running compiled Inline C perl scripts on more than one machine February 9, 2006, 12:12 pm
Sybase Simple gmake test unresolved external - HP/UX March 1, 2005, 8:58 am
Why is nothing found in @INC path ?!?! April 21, 2006, 2:39 pm
CGI Cookie Path Question December 26, 2005, 10:53 am
skip path prune July 17, 2006, 12:34 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap