set HB_USER_LIBS=gtwvt.lib
set HB_MT=yes
set C_USR=-tW
bld_b32 mttest10

when run mttest10 open and close immediately


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Szakáts Viktor
Sent: Wednesday, October 22, 2008 2:43 PM
To: Harbour Project Main Developer List.
Subject: Re: [Harbour] 2008-10-22 05:03 UTC+0200 
PrzemyslawCzerpak(druzus/at/priv.onet.pl)

Hi Przemek,

Yes, you're right, -tW is the one for BCC, and this
is exactly the one I used in C_USR to build the GTWVG
test program.

Thanks for the SHIFT tip.

Brgds,
Viktor

On 2008.10.22., at 14:20, Przemyslaw Czerpak wrote:

> On Wed, 22 Oct 2008, Szak�ts Viktor wrote:
>> hbmk.bat has -tWM by default, so it should be okay. (but
>> I didn't test it for this case specifically).
>
> I'm not BCC user but I thought that -tWM enables only
> MT mode but does not force GUI and WinMain() startup.
> If not then we may need additional switch for console
> MT applications or GTSTD and similar GTs will not work
> with BCC MT programs. I cannot say too much about final
> MS-Windows binaries behavior because when I execute them
> in WINE they have different startup conditions then in
> real MS-Windows.
>
>> MSVC on the other hand needs /subsystem:windows instead
>> of /subsystem:console to make it work. I'll commit
>> some modifications to help doing that.
>
> AFAIR just like POCC.
> In MinGW it's -mwindows and this switch is recognized by hb*
> scripts though I'll add sth simpler like -gui in the future.
> Maybe in hbmk.bat you should add support for some command line
> switches passed at the beginning, f.e. sth like:
>
>   IF '%1' == '-mt' GOTO NO_MT
>      SET HB_MT=MT
>      SHIFT
>   :NO_MT
>   IF '%1' == '-gui' GOTO NO_GUI
>      SET HB_GUI=yes
>      SHIFT
>   :NO_GUI
>
> best regards,
> Przemek
> _______________________________________________
> Harbour mailing list
> Harbour@harbour-project.org
> http://lists.harbour-project.org/mailman/listinfo/harbour

_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to