flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
goranv 17 Apr 2016, 17:29
When create FreshLib GUI, compile is ok, but window is no visible.
I use Fresh IDE 2.2.5. Windows 10 x64 |
|||
![]() |
|
JohnFound 17 Apr 2016, 23:15
Hm. Can you explain more detailed? What are you trying to compile? Some of the examples? New project from template? Your own code?
|
|||
![]() |
|
goranv 17 Apr 2016, 23:47
Compile default code when is project created without change.
|
|||
![]() |
|
goranv 18 Apr 2016, 00:34
Compile and run project is ok, in TaskManager i find main project, but window of project is not visible.
This is default code created by Fresh IDE: FILE: main.asm ; _______________________________________________________________________________________ ;| | ;| ..:: Fresh IDE ::.. template project. | ;|_______________________________________________________________________________________| ; ; Description: FreshLib portable GUI application. ; ; Target OS: Any, supported by FreshLib ; ; Dependencies: FreshLib ; ; Notes: ;_________________________________________________________________________________________ include "%lib%/freshlib.inc" @BinaryType GUI, compact include "%lib%/freshlib.asm" ; include your includes here. include "MainForm.asm" start: InitializeAll create [pApplication], TApplication stdcall CreateFromTemplate, frmMainForm, 0 set [pApplication], TApplication:MainWindow, frmMain stdcall Run FinalizeAll stdcall TerminateAll, 0 ------------------------------------------------------------------- FILE: MainForm.asm ; _______________________________________________________________________________________ ;| | ;| ..:: Fresh IDE ::.. template project. | ;|_______________________________________________________________________________________| ; ; Description: FreshLib portable GUI application; Main form source file; ; ; Target OS: Any, supported by FreshLib ; ; Dependencies: FreshLib ; ; Notes: ;_________________________________________________________________________________________ iglobal frmMainForm: ObjTemplate tfEnd, TForm, frmMain, \ x, 100, \ y, 50, \ width, 320, \ height, 240, \ Visible, TRUE, \ Caption, 'FreshLib portable application.' endg |
|||
![]() |
|
JohnFound 18 Apr 2016, 04:44
I understand now. It is a new project created from the template "FreshLib portable GUI application".
The problem is probably some bug in the library, that manifests itself only on Windows 10. I will try to test it here and fix as soon as possible, but first I have to install Windows 10 somewhere. ![]() P.S. Please, when posting source code on the forum, enclose it in "[code]" tags. This will make it look much better. ![]() |
|||
![]() |
|
goranv 20 Apr 2016, 20:01
This same problem now i have in Visual Studio 2015 if use linker flag YES(/NODEFAULTLIB). This problem i saved with replace code 'ShowWindow(hWnd, nCmdShow);' with ShowWindow(hWnd, SW_SHOW);. I dont know how this solution import here in fasm.
|
|||
![]() |
|
JohnFound 21 Apr 2016, 05:08
I still can't find working Windows 10, but please, test the following quick hack. Include in "main.asm", just before the line "stdcall Run" (line 33) the following code:
Code: set [frmMain], TWindow:Visible, FALSE set [frmMain], TWindow:Visible, TRUE |
|||
![]() |
|
goranv 21 Apr 2016, 13:18
No working.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.