This is great.

I was particularly intrigued by the use of the Win32 api.  However, when I
try this as given in your article:

use Inline C => DATA =>
               LIBS => '-luser32',
               PREFIX => 'my_';

MessageBoxA('Inline Message Box', 'Just Another Perl Hacker');

__END__

__C__
#include <windows.h>
int my_MessageBoxA(char* Caption, char* Text) {
   return MessageBoxA(0, Text, Caption, 0);
}

It doesn't work.  I have perl 5.6, Inline 0.31, gcc, and nmake (I also have
gnu make on my computer, but that is not what Inline is configured to use on
my machine).  I will attach out.make.

What am I doing wrong?

Thanks,
Eric



> -----Original Message-----
> From: Brian Ingerson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 06, 2001 10:51 PM
> To: [EMAIL PROTECTED]
> Subject: I Heard the News Today. Oh Boy!
> 
> 
> Check out:
> 
>     http://www.perl.com/pub/2001/02/inline.html
> 
> Cheers, Brian
> 
> 
> -- 
> perl -le 'use Inline C=>q{SV*JAxH(char*x){return newSVpvf
> ("Just Another %s Hacker",x);}};print JAxH+Perl'
> 

out.make

Reply via email to