Checkbox text disappears Harbour/MSVC

Re: Checkbox text disappears Harbour/MSVC

Postby Enrico Maria Giordano » Sun Feb 22, 2015 10:34 am

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8356
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Checkbox text disappears Harbour/MSVC

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 41365
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Checkbox text disappears Harbour/MSVC

Postby Enrico Maria Giordano » 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
User avatar
Enrico Maria Giordano
 
Posts: 8356
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Checkbox text disappears Harbour/MSVC

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 41365
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Checkbox text disappears Harbour/MSVC

Postby Enrico Maria Giordano » Sun Feb 22, 2015 12:00 pm

Antonio,

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

Anyway, what is the solution?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8356
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Checkbox text disappears Harbour/MSVC

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 41365
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Checkbox text disappears Harbour/MSVC

Postby TimStone » 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
User avatar
TimStone
 
Posts: 2905
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Checkbox text disappears Harbour/MSVC

Postby nageswaragunupudi » Mon Feb 23, 2015 4: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
User avatar
nageswaragunupudi
 
Posts: 10295
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Checkbox text disappears Harbour/MSVC

Postby Richard Chidiak » Mon Feb 23, 2015 6: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=3&t=27601&p=154059&hilit=caption#p154059

Hth

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Re: Checkbox text disappears Harbour/MSVC

Postby Enrico Maria Giordano » Mon Feb 23, 2015 9: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
User avatar
Enrico Maria Giordano
 
Posts: 8356
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Checkbox text disappears Harbour/MSVC

Postby TimStone » Tue Feb 24, 2015 2: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
User avatar
TimStone
 
Posts: 2905
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Checkbox text disappears Harbour/MSVC

Postby Antonio Linares » 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: Select all  Expand view
#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: Select all  Expand view
#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
User avatar
Antonio Linares
Site Admin
 
Posts: 41365
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Checkbox text disappears Harbour/MSVC

Postby TimStone » Tue Feb 24, 2015 5: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
User avatar
TimStone
 
Posts: 2905
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Checkbox text disappears Harbour/MSVC

Postby TimStone » Wed Feb 25, 2015 2: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
User avatar
TimStone
 
Posts: 2905
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Checkbox text disappears Harbour/MSVC

Postby Antonio Linares » Wed Feb 25, 2015 7:46 am

Tim,

Solved. All you have to do is add

1 24 WindowsXP.Manifest to your resource file

Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41365
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

PreviousNext

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], richard-service and 25 guests