FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Checkbox text disappears Harbour/MSVC
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Checkbox text disappears Harbour/MSVC
Posted: Sun Feb 22, 2015 10:34 AM

I tried with and without manifest and found no problem. :-(

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Checkbox text disappears Harbour/MSVC
Posted: Sun Feb 22, 2015 11:04 AM

Enrico,

Are you using Borland ?

According to Tim this may be only related with MSVC

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Checkbox text disappears Harbour/MSVC
Posted: Sun Feb 22, 2015 11:29 AM

Antonio,

Yes, I'm using BCC690 but how the C compiler could make any difference? I don't understand... :-(

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Checkbox text disappears Harbour/MSVC
Posted: Sun Feb 22, 2015 11:37 AM
Enrico,

Its not the C compiler itself, but several modifications that MS does to the final EXE (segments organization, etc.)

I have seen that inspecting the EXEs with PEInfo and similar apps

https://bitbucket.org/fivetech/fivewin-contributions/downloads/peinfo.exe
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Checkbox text disappears Harbour/MSVC
Posted: Sun Feb 22, 2015 12:00 PM

Antonio,

I still don't understand... :-(

Anyway, what is the solution?

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Checkbox text disappears Harbour/MSVC
Posted: Sun Feb 22, 2015 12:14 PM

Enrico,

Never mind :-)

First of all we need to be able to reproduce it. Up to now I haven't be able to reproduce it. Here it is working fine :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Checkbox text disappears Harbour/MSVC
Posted: Sun Feb 22, 2015 10:54 PM

Antonio,

It will not build with that in the .rc file because Visual Studio creates it's own manifest file, and thus the conflict throws a linker error.

Tim

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Checkbox text disappears Harbour/MSVC
Posted: Mon Feb 23, 2015 04:36 AM
Enrico Maria Giordano wrote:Antonio,

Yes, I'm using BCC690 but how the C compiler could make any difference? I don't understand... :-)

EMG

Off-topic.
I am using bcc582.
Are there any advantages in using bcc690 and where can I get it from?
Regards



G. N. Rao.

Hyderabad, India
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Re: Checkbox text disappears Harbour/MSVC
Posted: Mon Feb 23, 2015 06:58 AM

Tim

I remember a similar problem in folders when the dialog had a "Capion" clausure, try to remove it and see if it makes a difference.

viewtopic.php?f=3t=27601p=154059hilit=caption#p154059

Hth

Richard

&&&

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Checkbox text disappears Harbour/MSVC
Posted: Mon Feb 23, 2015 09:39 AM
Rao,

nageswaragunupudi wrote:Off-topic.
I am using bcc582.
Are there any advantages in using bcc690 and where can I get it from?


At least it's an updated version. You can try it from here:

http://www.whosaway.com

EMG
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Checkbox text disappears Harbour/MSVC
Posted: Tue Feb 24, 2015 02:15 AM

The issue becomes more complex. I began to wonder if perhaps the control should be True for TRANSPARENT ( the autocheckbox ) so I tried clicking on that property. Visual Studio wants to rebuild the .rc, and does a nice job of it, but then when trying to build it can't find the definitions for WS_POPUP which is a standard windows style.

So ... to use the windows controls, there must be a library I am missing, or an include file, for compiling the .rc within Visual Studio. More likely there is a configuration property that I am missing which would automatically bring in the include files.

If I use Windows.h ( which the builder eliminates ), it has a parameter RC_INVOKED which is evidently set by NOWINRES but I can't see where to set this.

Antonio, thoughts on this ? I know one other thread said we couldn't use the Resource Editor in VS 2013, but we should be able to get past this. It's a good tool.

Tim

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Checkbox text disappears Harbour/MSVC
Posted: Tue Feb 24, 2015 11:44 AM
Tim,

I just tested this example using FWH 15.02 and FWH\samples\buildh32.bat:

test.prg
Code (fw): Select all Collapse
#include "FiveWin.ch"

function Main()

   local oDlg, lValue := .T.

   DEFINE DIALOG oDlg RESOURCE "test"

   REDEFINE CHECKBOX lValue ID 100 OF oDlg

   ACTIVATE DIALOG oDlg CENTERED

return nil


test.rc
Code (fw): Select all Collapse
#include <windows.h>

LANGUAGE 0, SUBLANG_NEUTRAL
test DIALOG 0, 0, 255, 138
STYLE DS_3DLOOK | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_CAPTION | WS_VISIBLE | WS_POPUP | WS_SYSMENU
CAPTION "Dialog"
FONT 8, "Ms Shell Dlg"
{
    AUTOCHECKBOX    "Checkbox", 100, 94, 50, 48, 8, 0, WS_EX_LEFT
    DEFPUSHBUTTON   "OK", 1, 67, 112, 50, 14, 0, WS_EX_LEFT
    PUSHBUTTON      "Cancel", 2, 128, 112, 50, 14, 0, WS_EX_LEFT
}


And it is working fine. Could you try this example there ? thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Checkbox text disappears Harbour/MSVC
Posted: Tue Feb 24, 2015 05:47 PM

Antonio,

1) Please remember that I am trying to get this working with Visual Studio 2013 itself ( the IDE ). Using a make file is different. Especially for the future, we want ALL settings correct in VS 2013 ( and soon 2015 ).

2) With that said, I looked at your build file and noticed that I have several additional libraries linked in:

hbssl.lib, hbtipssl.lib, and ws2_32.lib are needed for email
libeay32.lib and ssleay32.lib are necessary for additional functionality

gtwin.ib, libcmt.lib, libcpmt.lib and oldnames32.lib are ones you recommended previously. I'm wondering if they are still needed, and perhaps one of them is conflicting here.

Tim

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Checkbox text disappears Harbour/MSVC
Posted: Wed Feb 25, 2015 02:43 AM

Antonio,

I've spent the day researching this and testing.

1) If I build the project inside UE Studio, using their .mak system, the controls work properly.
2) If I build the project inside MSFT Visual Studio 2013 with it's IDE, the controls behave as noted
3) The .prg, .rc, and .lib files used are exactly the same in both cases.

Thus, the problem has to be in the Properties of the VS 2013 build. Some option is different, but I have been unable to determine what it is.

I will look at it further tomorrow. If you have any ideas please let me know. Perhaps you can try building it within VS in the same way using one of your samples and see what you get. If it works properly, you could send me the settings you are using. I think what I have now is pretty much what you shared when you built the initial projects using it.

Tim

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Checkbox text disappears Harbour/MSVC
Posted: Wed Feb 25, 2015 07:46 AM
Tim,

Solved. All you have to do is add

1 24 WindowsXP.Manifest to your resource file

regards, saludos

Antonio Linares
www.fivetechsoft.com