Glenn Linderman wrote:
On approximately 5/4/2007 6:25 AM, came the following characters from
the keyboard of Roode, Eric:
Say I create a dll containing a library of custom controls (written in
C++, C#, whatever). How can I use these controls in a Win32::GUI
program?
Or even say someone else creates such a dll, how can I use it/them?
Assuming that this is a "standard" control library that registers the
classes that it needs on loading etc., then off the top of my head (no
code available right now). You need to
(1) Use LoadLibrary to load the DLL
(2) call the (internal) Win32::GUI::_new() function as a class
constructor, passing in the (Win32) Class name take the control needs as
one of the arguments - this in turn calls CreateWindow().
(3) Use SendMessage to send instructions to the control and get
information back from it.
The Win32::GUI::Scintilla class (Scintilla.pm) should have most of the
detail that you need.
Rob.
--
Robert May
Win32::GUI, a perl extension for native Win32 applications
http://perl-win32-gui.sourceforge.net/