Hi :)
You have tied many things together and have increased my
understanding. I elimenated all the junk in my files,
and created a simple one-function XS module, which returned
the same results, so none of that stuff seems to be getting
in the way at least.
If I write a small C program using this function, and
including the libraries etc, the return is the device
handle as it should be. I don't, then, know how further
to debug this problem - I will here admit that one might
expect better C from an overripe tomato than from myself,
springing from which my need for Perl. How could I check
errno from the XS? I understand how to insert code there,
just not 'what' code.
Regarding passing the struct parameters into functions...
I'm less in the dark, but I will concentrate on making
the simplest functions usable, and then I will, as you say,
add support as necassary.
Thank you again, you have been unexpectedly helpful and kind.
ceeb
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.