Thread overview | ||||||
---|---|---|---|---|---|---|
|
November 06, 2015 Working Windows GUI library - no console Window | ||||
---|---|---|---|---|
| ||||
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 |
November 06, 2015 Re: Working Windows GUI library - no console Window | ||||
---|---|---|---|---|
| ||||
Posted in reply to johann | 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 |
November 06, 2015 Re: Working Windows GUI library - no console Window | ||||
---|---|---|---|---|
| ||||
Posted in reply to johann | 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.
|
November 06, 2015 Re: Working Windows GUI library - no console Window | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Chapman | 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.
|
Copyright © 1999-2021 by the D Language Foundation