Re: VS 2015 display issue
Quote:
Originally Posted by
jcfuller
...
I did a few preliminary tests compiling on Win10 and running on Win7 and Compiling on Win7 and running on Win7. I also tested on different computers with different monitor resolutions just to be sure. All results were the same. The Visual Studio 2015 created app did not display correctly. Any insights?
Well, which one of the two images is correct and how was it built?
Re: VS 2015 display issue
[moved from Visual C++ Programming forum...]
Re: VS 2015 display issue
Quote:
Originally Posted by
VictorN
Well, which one of the two images is correct and how was it built?
The image on the left is the correct display created with TDM-GCC.
The image on the right is not correct created with visual studio 2015 community.
The visual studio version was created using the visual studio 2015 batch file from a normal command prompt.
The TDM-GCC version was created using the TDM-GCC batch file from a normal command prompt.
James
Re: VS 2015 display issue
The display produced from the code in post #1 and the attached zip doesn't produce the expected image - even the window caption is different :confused:
Re: VS 2015 display issue
Thank you 2kaud.
Updated first post.
James
Re: VS 2015 display issue
On my Windows 7 system using VS2015, to get a display like the required left image, fHeight is 335 rather than 312 and fWidth is 345 rather than 330. I don't have access to the other compilers so can't comment upon what these numbers will show with them. However, how the created windows are displayed surely seems more inclined to be based upon the version of user32.dll used than the compilers - as all the compilers are doing is creating code that calls the functions in the windows dll files? :confused:
Re: VS 2015 display issue
I tried it with vs2013 Express on Win7 with the same results as VS 2015 community.
All other languages I tried create what I believe is the correctly displayed window.
PellesC
TDM-GCC
NUWEN
FreeBasic
PowerBASIC
James
Re: VS 2015 display issue
I received an email report that VC15 (from Visual Studio 2008 - 64 bit) produced a correct display.
James
Re: VS 2015 display issue
I don't know if this is a clue but:
On Win10 with the exe built on Win10, if I change compatibility in File Explorer->propterties of the exe to Windows 7 it displays correctly.
On Win7 with the exe built on Win7 no difference on any compatibility changes.
James