Checkbox text disappears Harbour/MSVC
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: Checkbox text disappears Harbour/MSVC
I tried with and without manifest and found no problem.
EMG
EMG
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Checkbox text disappears Harbour/MSVC
Enrico,
Are you using Borland ?
According to Tim this may be only related with MSVC
Are you using Borland ?
According to Tim this may be only related with MSVC
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: Checkbox text disappears Harbour/MSVC
Antonio,
Yes, I'm using BCC690 but how the C compiler could make any difference? I don't understand...
EMG
Yes, I'm using BCC690 but how the C compiler could make any difference? I don't understand...
EMG
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Checkbox text disappears Harbour/MSVC
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- ... peinfo.exe
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- ... peinfo.exe
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: Checkbox text disappears Harbour/MSVC
Antonio,
I still don't understand...
Anyway, what is the solution?
EMG
I still don't understand...
Anyway, what is the solution?
EMG
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Checkbox text disappears Harbour/MSVC
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
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
Re: Checkbox text disappears Harbour/MSVC
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
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
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: Checkbox text disappears Harbour/MSVC
Off-topic.Enrico Maria Giordano wrote:Antonio,
Yes, I'm using BCC690 but how the C compiler could make any difference? I don't understand...
EMG
I am using bcc582.
Are there any advantages in using bcc690 and where can I get it from?
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
- Richard Chidiak
- Posts: 946
- Joined: Thu Oct 06, 2005 7:05 pm
- Location: France
- Contact:
Re: Checkbox text disappears Harbour/MSVC
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.
http://forums.fivetechsupport.com/viewt ... on#p154059
Hth
Richard
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.
http://forums.fivetechsupport.com/viewt ... on#p154059
Hth
Richard
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: Checkbox text disappears Harbour/MSVC
Rao,
http://www.whosaway.com
EMG
At least it's an updated version. You can try it from here:nageswaragunupudi wrote:Off-topic.
I am using bcc582.
Are there any advantages in using bcc690 and where can I get it from?
http://www.whosaway.com
EMG
Re: Checkbox text disappears Harbour/MSVC
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
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
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Checkbox text disappears Harbour/MSVC
Tim,
I just tested this example using FWH 15.02 and FWH\samples\buildh32.bat:
test.prg
test.rc
And it is working fine. Could you try this example there ? thanks
I just tested this example using FWH 15.02 and FWH\samples\buildh32.bat:
test.prg
Code: Select all
#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
Code: Select all
#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
}
Re: Checkbox text disappears Harbour/MSVC
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
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
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
Re: Checkbox text disappears Harbour/MSVC
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
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
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Checkbox text disappears Harbour/MSVC
Tim,
Solved. All you have to do is add
1 24 WindowsXP.Manifest to your resource file
Solved. All you have to do is add
1 24 WindowsXP.Manifest to your resource file