Hello rob,
Am 14.08.2005 10:37 schrieb Sisyphus:
----- Original Message -----
From: "Reinhard Pagitsch" <[EMAIL PROTECTED]>
To: <perl-xs@perl.org>
Sent: Friday, August 12, 2005 11:05 PM
Subject: Where is my XS Module located?
Hello,
Is there a way to get the path name where the dll is located?
e.g. the dll of my module is in
D:\Perl\site\lib\auto\Win32\File\Summary\Summary.dll
How can I get the path name, not in the .pm but in the .xs?
D:\Perl\site\lib\auto\Win32\File\Summary
For the first part of the path, I find I can use any one of the following:
$Config{sitearchexp}
$Config{sitelibexp}
$Config{installsitearch}
$Config{installsitelib}
$Config{sitearch}
$Config{sitelib}
I think 'installsitelib' would be available and reliable on all Win32
machines.
Then that's followed by 'auto', which is in turn followed by the package
name split on the '::' .
Cheers,
Rob
Sure, but what have I to do to get it in my XSUB? In a pure Perl
script/module it is no problem, but what are the functions I have to use
in my C/C++ function?
--
Antworten bitte nur an rpirpag at aon punkt at
Die Adresse im From/Replay to ist als Spamfänger gedacht und wird nicht
gelesen.
Please Visit: http://members.aon.at/rpagitsch/
An 100 Gewinnspielen/Monat teilnehmen:
http://www.gewinn24.de/index.php3?partner=1169