www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Working Windows GUI library - no console Window

reply johann <johann aol.com> writes:
hi,
i like to use a window gui library and i think i found a working 
one.

https://github.com/FrankLIKE/dfl2  - works with x64

the problem is, that with DMD 2.069.0, VS2015 and visualD the 
trick of using "-L/SUBSYSTEM:windows,6.00 
-L/ENTRY:mainCRTStartup" does not suppress the console window 
anymore.

does anybody have a solution for that problem?
is anybody still working on that library?

johann
Nov 06 2015
next sibling parent Spacen Jasset <spacen razemail.com> writes:
On Friday, 6 November 2015 at 15:52:10 UTC, johann wrote:
 hi,
 i like to use a window gui library and i think i found a 
 working one.

 https://github.com/FrankLIKE/dfl2  - works with x64

 the problem is, that with DMD 2.069.0, VS2015 and visualD the 
 trick of using "-L/SUBSYSTEM:windows,6.00 
 -L/ENTRY:mainCRTStartup" does not suppress the console window 
 anymore.

 does anybody have a solution for that problem?
 is anybody still working on that library?

 johann
Have a look at the resultant executable header with a tool like objdump / pebrowse. In the header somewhere there is a field that specifies the subsystem type. It should be set to gui, rather than console. IMAGE_SUBSYSTEM_WINDOWS_GUI 2 https://msdn.microsoft.com/en-us/library/windows/desktop/ms680339%28v=vs.85%29.aspx
Nov 06 2015
prev sibling parent reply John Chapman <johnch_atms hotmail.com> writes:
On Friday, 6 November 2015 at 15:52:10 UTC, johann wrote:
 hi,
 i like to use a window gui library and i think i found a 
 working one.

 https://github.com/FrankLIKE/dfl2  - works with x64

 the problem is, that with DMD 2.069.0, VS2015 and visualD the 
 trick of using "-L/SUBSYSTEM:windows,6.00 
 -L/ENTRY:mainCRTStartup" does not suppress the console window 
 anymore.

 does anybody have a solution for that problem?
 is anybody still working on that library?

 johann
Same problem here. I had to remove the mainCRTStartup flag and use WinMain as my entry point.
Nov 06 2015
parent johann <johann aol.com> writes:
On Friday, 6 November 2015 at 21:02:59 UTC, John Chapman wrote:
 On Friday, 6 November 2015 at 15:52:10 UTC, johann wrote:
 hi,
 i like to use a window gui library and i think i found a 
 working one.

 https://github.com/FrankLIKE/dfl2  - works with x64

 the problem is, that with DMD 2.069.0, VS2015 and visualD the 
 trick of using "-L/SUBSYSTEM:windows,6.00 
 -L/ENTRY:mainCRTStartup" does not suppress the console window 
 anymore.

 does anybody have a solution for that problem?
 is anybody still working on that library?

 johann
Same problem here. I had to remove the mainCRTStartup flag and use WinMain as my entry point.
me too. i need to start a main(), since the lib will not work with a starting WinMain.
Nov 06 2015