Re: [win32gui] [perl-win32-gui-users] Toolbar style contants

2005-11-02 Thread Chris Wearn
Looking at the Microsoft website, it mentions that VC6 compiler is no longer 
supported and that the CURRENT platform SDK is NOT compatible with VC6. The 
last SDK that works with VC6 is the SDK released February 2003.

This I downloaded from the MSDN site (subscribers section), and installed 
it, added the two paths to lib and includes, checked out the Win32-GUI 
source and started to compile... all works fine until the last section and 
then it fails, producing an error linking virtually every obj... not sure 
what's next.

What version of the Platform SDK are you using Rob?

Rgds

Chris

-Original Message-
From: Robert May [EMAIL PROTECTED]
To: perl-win32-gui-users perl-win32-gui-users@lists.sourceforge.net
Date: Mon, 31 Oct 2005 18:47:42 +
Subject: Re: [win32gui] [perl-win32-gui-users] Toolbar style contants

 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 0x0008 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-40C0EC4F68E5displaylang=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 
 #define  Y
 #endif
 
 to GUI.h.  My preference would be not to bloat GUI.h
 
 (3) Add code like
 
 sub () {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/
 
 
 ---
 This SF.Net email is sponsored by the JBoss Inc.
 Get Certified Today * Register for a JBoss Training Course
 Free Certification Exam for All Training Attendees Through End of 2005
 Visit http://www.jboss.com/services/certification for more information
 ___
 Perl-Win32-GUI-Users mailing list
 Perl-Win32-GUI-Users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
 http://perl-win32-gui.sourceforge.net/





Re: [perl-win32-gui-users] Toolbar style contants

2005-11-02 Thread Robert May

Chris Wearn wrote:

What version of the Platform SDK are you using Rob?


Win2003 sp1, downloaded in June of this year.

I do remember having to play with removing a few of the new SDK tools 
(nmake for example) as the new ones don't play well with W98, but I'm 
afraid that I don't have any notes on anything else I may have done.


If you post the error messages you are getting I may be able to help 
further.


Regards,
Rob.



Re: [win32gui] [perl-win32-gui-users] Toolbar style contants

2005-11-01 Thread Chris Wearn
Hi Rob,

Thanks for the reply... Agree that I don't want to bloat the code and whist 
doing a bit more searching via the web, I found someone else similar plight 
and found a reference to the SDK. This is most likely the best option.

I installed the Platform SDK from my MSDN subscription (should be the same) 
and get two extra directories:
Microsoft Visual Studio .NET 2003 (two sub dirs: Common7 and Vc7)
Microsoft .NET

both of which contain 'include' and 'lib' directories.

In Visual C++ menu Tools-Options [Directories] tab I've set both the 
includes and lib paths Microsoft Visual Studio .NET 2003, and pushed them to 
the top of their lists.

Do I have to do the same for the Microsoft .NET directory.

Also noted that there is no 'commctrl.h' file in the .NET one either, so not 
sure how it works.

Are there any other settings that had to be changed. I tried compiling again 
with these new settings and got the same error.

In the meantime I've re-compiled using MinGW till I get it sorted.

The reason I mentioned that Jez may be in the same boat, was because he 
installed the same version of Visual Studio and when I sent him toolbar.pl 
he got the same error, although he also had MinGW to fall back on.


The reference to MinGW was that I wondered if I could use the MinGW header 
files instead of the Microsoft ones, but they appear to be in a difference 
format, so I'm guessing no...

Rgds

Chris

-Original Message-
From: Robert May [EMAIL PROTECTED]
To: perl-win32-gui-users perl-win32-gui-users@lists.sourceforge.net
Date: Mon, 31 Oct 2005 18:47:42 +
Subject: Re: [win32gui] [perl-win32-gui-users] Toolbar style contants

 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 0x0008 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-40C0EC4F68E5displaylang=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.
 
  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/


Re: [win32gui] [perl-win32-gui-users] Toolbar style contants

2005-11-01 Thread Jeremy White

The reason I mentioned that Jez may be in the same boat, was because he
installed the same version of Visual Studio and when I sent him toolbar.pl
he got the same error, although he also had MinGW to fall back on.


Just to confirm, I do have the same issue. I know next to nothing about 
VC6:)


Cheers,

jez.





Re: [win32gui] [perl-win32-gui-users] Toolbar style contants

2005-10-31 Thread Robert May

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 0x0008 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-40C0EC4F68E5displaylang=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 
#define  Y
#endif

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

(3) Add code like

sub () {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/



Re: [win32gui] [perl-win32-gui-users] Toolbar style contants

2005-10-30 Thread Robert May

Chris Wearn wrote:

Hi All,

Have just downgraded and recompiled latest Win32-GUI from CVS using VC6.

Now I get an error can't find TBSTYLE_EX_MIXEDBUTTONS in package blah
blah

The same if I run the demo toolbar.pl that Rob May posted to the group
when experimenting with all the options.

Is this something that is missing from Win32-GUI?

How do I get around this... use constant  or something.

Cheers

Chris


Hi Chris,

Do you have a short example that exhibits the problem?  I can't 
duplicate it:


#!perl -w
use strict;
use warnings;

use Win32::GUI;

print Win32::GUI version: $Win32::GUI::VERSION\n;
print Constant TBSTYLE_EX_MIXEDBUTTONS = , TBSTYLE_EX_MIXEDBUTTONS, \n;

exit(0);

Produces (the same for both Perl 5.6.1 and 5.8.7):

C:\WINDOWS\Desktopperl tbstyle.pl
Win32::GUI version: 1.0202
Constant TBSTYLE_EX_MIXEDBUTTONS = 8

Does TBSTYLE_EX_MIXEDBUTTONS have a definition in your commctrl.h file?

Regards,
Rob.




Re: [win32gui] [perl-win32-gui-users] Toolbar style contants

2005-10-30 Thread Chris Wearn
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 0x0008 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 tried the Win32api includes from MinGW, however BTNS_SHOWTEXT was not
found in commctrl.h from MinGW either.

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

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

Rgds

Chris

On Sun, 2005-10-30 at 18:06 +, Robert May wrote:
 Chris Wearn wrote:
  Hi All,
  
  Have just downgraded and recompiled latest Win32-GUI from CVS using VC6.
  
  Now I get an error can't find TBSTYLE_EX_MIXEDBUTTONS in package blah
  blah
  
  The same if I run the demo toolbar.pl that Rob May posted to the group
  when experimenting with all the options.
  
  Is this something that is missing from Win32-GUI?
  
  How do I get around this... use constant  or something.
  
  Cheers
  
  Chris
 
 Hi Chris,
 
 Do you have a short example that exhibits the problem?  I can't 
 duplicate it:
 
 #!perl -w
 use strict;
 use warnings;
 
 use Win32::GUI;
 
 print Win32::GUI version: $Win32::GUI::VERSION\n;
 print Constant TBSTYLE_EX_MIXEDBUTTONS = , TBSTYLE_EX_MIXEDBUTTONS, \n;
 
 exit(0);
 
 Produces (the same for both Perl 5.6.1 and 5.8.7):
 
 C:\WINDOWS\Desktopperl tbstyle.pl
 Win32::GUI version: 1.0202
 Constant TBSTYLE_EX_MIXEDBUTTONS = 8
 
 Does TBSTYLE_EX_MIXEDBUTTONS have a definition in your commctrl.h file?
 
 Regards,
 Rob.
 
 
 
 ---
 This SF.Net email is sponsored by the JBoss Inc.
 Get Certified Today * Register for a JBoss Training Course
 Free Certification Exam for All Training Attendees Through End of 2005
 Visit http://www.jboss.com/services/certification for more information
 ___
 Perl-Win32-GUI-Users mailing list
 Perl-Win32-GUI-Users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
 http://perl-win32-gui.sourceforge.net/
 


toolbar.pl
Description: Perl program


[perl-win32-gui-users] Toolbar style contants

2005-10-27 Thread Chris Wearn
Hi All,

Have just downgraded and recompiled latest Win32-GUI from CVS using VC6.

Now I get an error can't find TBSTYLE_EX_MIXEDBUTTONS in package blah
blah

The same if I run the demo toolbar.pl that Rob May posted to the group
when experimenting with all the options.

Is this something that is missing from Win32-GUI?

How do I get around this... use constant  or something.

Cheers

Chris