> From: Aldo Calpini [mailto:[EMAIL PROTECTED]]
> Question to the list: it is a Good Thing to export the thousands of
> constants in the WINUSER and WINGDI include files? it would
> surely help
> C programmers that are already familiar with those constants,
> but it is worth the going?
I wouldn't. Everyone ends up exporting the same constants.
I've currently just started work on the bones of a Win32::TypeLib
module, which I intend to allow selective import of items (specifically,
constants and functions) from a type library. In conjunction with a type
library for the WIN32 API (one comes with the book "Hardcore Visual
Basic", which I understand is redistributable, so I can include it with
the module) my intention is that it should be possible to do
use Win32::TypeLib 'Win.tlb', qw/MessageBox MB_YESNO/;
MessageBox 0, "Clever, aren't I", "Application", MB_YESNO;
This would give a way of getting constants once and for all, saving the
need for everyone to implement it.
But it's a way off yet - I've just started to look at the typelib
reading code.
Paul.