develooper Front page | perl.perl5.porters | Postings from April 2001

BorlandC++ fix

Thread Next
From:
Vadim Konovalov
Date:
April 30, 2001 09:11
Subject:
BorlandC++ fix
Message ID:
006e01c0d1ec$8fb1b8d0$406bff87@vad
All BorlandC++ compilers versions higher than 5.2 think that structure
OPENFILENAMEW is longer than it must be. (file include/commdlg.h proves
this)
Because of this, for example, following:

perl -MTk -Mstrict -we "MainWindow->new->getOpenFile"

 will fail on WinNT-4.0 (with Tk error "CDERR_STRUCTSIZE") but will succeed
on Win2000

I currently can't see any benefits of such incompatibilities, most probably
this is another Borland's incompatibility bug.

That is why I want introduce "-D_WIN32_WINNT=0x0410" switch to suppress this
behaviour and not to go into Win2000 when unnecesarry.

--- d:\Work\PerlCompile\perl@9917-orig\win32\makefile.mk Mon Apr 30 07:01:28
2001
+++ makefile.mk Mon Apr 30 19:31:21 2001
@@ -381,7 +381,7 @@
 LIBOUT_FLAG =
 .IF "$(BCCOLD)" != "define"
 LINK_FLAGS += -Gn
-DEFINES  += -D_MT
+DEFINES  += -D_MT -D__USELOCALES__ -D_WIN32_WINNT=0x0410
 .END
 .IF "$(BCCVCL)" == "define"
 LIBC  = cp32mti.lib vcl.lib vcl50.lib vclx50.lib vcle50.lib


Best wishes,
Vadim.


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About