Hi, I find that the following (slightly altered) sample from the cookbook runs fine:
--- try.pl --- use warnings; use Inline C => Config => BUILD_NOISY => 1; use Inline C =><<'EOC'; int WinBox(char* Caption, char* Text) { return MessageBoxA(0, Text, Caption, 0); } EOC $text = "@ARGV" || 'Inline.pm works with MSWin32. Scary...'; WinBox('Inline Text Box', $text); __END__ ------------ It differs from the cookbook example mainly in that it doesn't '#include <windows.h>', and that it doesn't explicitly link to 'user32.lib'. Does the fact that it runs fine and compiles without warning indicate that windows.h has been automatically included ? (Surely if windows.h were not included there would be a compiler warning along the lines that MessageBoxA() was undefined.) Given that windows.h is being included for me, how might I go about undoing that ? (I'm messing around with Inline::CPP and MFC and getting the error that "MFC apps must not #include <windows.h>".) Cheers, Rob