chessgui has asked for the wisdom of the Perl Monks concerning the following question:
This code works. However if I want to use the 'UINT' data type (which is in the original declaration of the function) instead of 'unsigned int' the make fails:#include "EXTERN.h" #include "perl.h" #include "XSUB.h" #include "ppport.h" #include "windows.h" MODULE = Mytest PACKAGE = Mytest int hello(input) unsigned int input CODE: int x=MessageBox(NULL,TEXT("Text"),TEXT("Caption"),input); RETVAL=x; OUTPUT: RETVAL
The perlxs manual says that prototypes can be enabled and disabled but I find no guidance for how to use a predefined C prototype.Error: 'UINT' not in typemap in Mytest.xs, line 12 Please specify prototyping behavior for Mytest.xs (see perlxs manual)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Prototype problem for XS module
by syphilis (Archbishop) on Feb 05, 2012 at 18:40 UTC | |
by chessgui (Scribe) on Feb 05, 2012 at 19:07 UTC | |
by Anonymous Monk on Feb 06, 2012 at 08:47 UTC | |
|
Re: Prototype problem for XS module
by BrowserUk (Patriarch) on Feb 05, 2012 at 17:15 UTC | |
by chessgui (Scribe) on Feb 05, 2012 at 17:46 UTC | |
by BrowserUk (Patriarch) on Feb 05, 2012 at 19:26 UTC | |
by chessgui (Scribe) on Feb 06, 2012 at 06:32 UTC | |
by BrowserUk (Patriarch) on Feb 06, 2012 at 07:53 UTC | |
|
Re: Prototype problem for XS module
by Anonymous Monk on Feb 05, 2012 at 16:16 UTC | |
by chessgui (Scribe) on Feb 05, 2012 at 16:41 UTC | |
|
Re: Prototype problem for XS module
by Anonymous Monk on Feb 05, 2012 at 16:18 UTC |