Main > Programming > Libraries >

C::DynaLib 0.55

C::DynaLib 0.55

Sponsored Links

C::DynaLib 0.55 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.035 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 1211
Date added: 2006-07-05
Publisher: John Tobey

C::DynaLib 0.55 description

C::DynaLib is a Perl interface to C compiled code.

SYNOPSIS

use C::DynaLib;
use sigtrap; # recommended

$lib = new C::DynaLib( $linker_arg );

$func = $lib->DeclareSub( $symbol_name
[, $return_type [, @arg_types] ] );
# or
$func = $lib->DeclareSub( { "name" => $symbol_name,
[param => $value,] ... } );
# or
use C::DynaLib qw(DeclareSub);
$func = DeclareSub( $function_pointer,
[, $return_type [, @arg_types] ] );
# or
$func = DeclareSub( { "ptr" => $function_pointer,
[param => $value,] ... } );

$result = $func->( @args );

$callback = new C::DynaLib::Callback( &my_sub,
$return_type, @arg_types );
$callback_pointer = $callback->Ptr();

PLUG FOR PERL XS

If you have a C compiler that Perl supports, you will get better results by writing XSubs than by using this module. I GUARANTEE IT! It may take you longer to do what you want, but your code will be much more solid and portable. See perlxs.

This module brings "pointers" to Perl. Perls non-use of pointers is one of its great strengths. If you dont know what I mean, then maybe you ought to practice up a bit on C or C++ before using this module. If anything, pointers are more dangerous in Perl than in C, due to Perls dynamic, interpretive nature.

The XSub interface and Perl objects provide a means of calling C and C++ code while preserving Perls abstraction from pointers. Once again, I urge you to check out perlxs! Its really cool!!!

This module allows Perl programs to call C functions in dynamic libraries. It is useful for testing library functions, writing simple programs without the bother of XS, and generating C function pointers that call Perl code.

Your Perl must be of the dynamic variety and have a working DynaLoader to use the dynamic loading capabilities of this module. Be sure you answered "y" when Configure (from the Perl source kit) asked, "Do you wish to use dynamic loading?".
The mechanics of passing arguments to and returning values from C functions vary greatly among machines, operating systems, and compilers. Therefore, Makefile.PL checks the Perl configuration and may even compile and run a test program before the module is built.

This module is divided into two packages, C::DynaLib and C::DynaLib::Callback. Each makes use of Perl objects (see perlobj) and provides its own constructor.
A C::DynaLib object corresponds to a dynamic library whose functions are available to Perl. A C::DynaLib::Callback object corresponds to a Perl sub which may be accessed from C.

C::DynaLib 0.55 Screenshot

Advertisements

C::DynaLib 0.55 Keywords

Bookmark C::DynaLib 0.55

Hyperlink code:
Link for forum:

C::DynaLib 0.55 Copyright

WareSeeker periodically updates pricing and software information of C::DynaLib 0.55 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of C::DynaLib 0.55 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
C::DynaLib::Struct is a tool for handling the C `struct data type. Free Download
Inline::CPP is a Perl module that can write Perl subroutines and classes in C++. Free Download
CVS Perl library is a Perl module which is is a wrapper around the CVS command with an object-oriented interface. Free Download
Module::Signature is a Perl module signature file manipulation. Free Download
Code::Perl is a Perl module to produce Perl code from a tree. Free Download
Locale::Memories is a Perl module for L10N Message Retrieval. Free Download
Convert::Braille is a Perl module that can convert Between Braille Encodings. Free Download
PerlIO is a Perl module created to load on demand PerlIO layers and root of PerlIO::* name space. Free Download