Chris Wearn wrote:
Hi Rob,

Have checked my commctrl.h file and it is dated 1998 and stated as being
v1.2
The includes are directly from installing VS98 and SP6

The header file IS missing TBSTYLE_EX_MIXEDBUTTONS. If I define it:

#define TBSTYLE_EX_MIXEDBUTTONS 0x00000008 and re-compile, it then
protests that it is missing BTNS_SHOWTEXT.

Clearly the commctrl.h file is out of date. I was under the impression
you were using the same compiler. Can the include headers from .NET be
used. If not how do you update the headers (and what other resources
need to be updated).

I am indeed using the VC 6 compiler, but I am pointing it at the header files from the latest Platform SDK.

The latest SDK can be downloaded from MS at:
http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en

I downloaded the ISO image (~400MB) and burned a CD, but there are other options - see links on the page.

You then need to set up your environment variables (INCLUDE and LIB) to point to the correct SDK directories before the VC98 directories.

I tried the Win32api includes from MinGW, however BTNS_SHOWTEXT was not
found in commctrl.h from MinGW either.

What version of MinGW headers? Latest is 3.2 (look in w32api.h to find your current version), and that has it defined.

An example that exhibits this is the toolbar.pl script you sent me
(attached).

There are 2 ways to deal with this:
(1) Upgrade to the latest headers
(2) Add code like

#ifndef XXXX
#define XXXX Y
#endif

to GUI.h.  My preference would be not to bloat GUI.h

(3) Add code like

sub XXXX() {Y}

to the start of your script - although you might have to turn off warnings to avoid message about redefinition of function calls (untested)

I think Jez is in the same boat, as he couldn't run the script either,
the other day without the same error.

I know from previous discussions with Jez that he's using quite an old MinGW build.

Regards,
Rob.
--
Robert May
Win32::GUI, a perl extension for native Win32 applications
http://perl-win32-gui.sourceforge.net/

Reply via email to