in reply to Win32::API question
use Win32::API; my $prwin1 = Win32::API->new('OH-DLL.dll', 'prwin1', 'PP', 'D') or die("Error linking to prwin1: $^E\n"); sub pl_prwin { my $hands = "AhKh|Td9s|QQ+,AQs+,AQo+|JJ-88|XxXx|XxXx|XxXx"; my $board = "Ks7d4d"; return $prwin1->Call($hands, $board); }
Update: Fixed return type, as per tye's reply. Forgot to check that. Also added error message.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Win32::API question
by gbotzz (Novice) on Apr 25, 2009 at 03:40 UTC | |
by tye (Sage) on Apr 25, 2009 at 05:14 UTC | |
by gbotzz (Novice) on Apr 25, 2009 at 10:28 UTC | |
by tye (Sage) on Apr 25, 2009 at 15:40 UTC |