Author Topic: A prototype that needs testing on different OS versions  (Read 855 times)

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 6749
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
A prototype that needs testing on different OS versions
« on: August 19, 2019, 04:08:27 AM »
Could I impose on a few folks to test this simple app for me, its a prototype for a splash screen that shows the screen fading in to a full image then it disappears before the main window appears. The main window is just a can to test the splash screen but the help menu will also run the same splash screen. Its working OK here but there are many other variables from different human language OS versions and OS versions.

The splash screen window runs in a separate thread from the main app so it can be handled in a modular manner and it uses a normal timer for its duration. The idea is to have a simple function call that specifies a resource ID for a JPG image and a duration in milliseconds for it to be displayed.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

LiaoMi

  • Member
  • ****
  • Posts: 593
Re: A prototype that needs testing on different OS versions
« Reply #1 on: August 19, 2019, 04:48:42 AM »
Hi hutch,

Win 10 - OK
Win 7   - OK
WinXP  - nothing is displayed, but then the program works (Perhaps due to the fact that the visual styles of Windows are disabled.)

felipe

  • Member
  • *****
  • Posts: 1249
  • Eagles are just great!
Re: A prototype that needs testing on different OS versions
« Reply #2 on: August 19, 2019, 05:03:07 AM »
I like it! works fine in windows 8.1  :thumbsup:
Felipe.

caballero

  • Member
  • *****
  • Posts: 1211
  • Matrix - Noah
    • abre ojos ensamblador
Re: A prototype that needs testing on different OS versions
« Reply #3 on: August 19, 2019, 06:06:20 AM »
W10 works fine
The logic of the error is hidden among the most unexpected lines of the program

HSE

  • Member
  • *****
  • Posts: 1146
  • <AMD>< 7-32>
Re: A prototype that needs testing on different OS versions
« Reply #4 on: August 19, 2019, 06:48:59 AM »
Is intended behaviour to see the splash when selecting "about"?

Biterider

  • Member
  • ***
  • Posts: 391
  • ObjAsm32 + ObjAsm64 = ObjAsm
    • ObjAsm
Re: A prototype that needs testing on different OS versions
« Reply #5 on: August 19, 2019, 06:50:45 AM »
Works OK with Win10/64
Biterider

sinsi

  • Member
  • *****
  • Posts: 1185
Re: A prototype that needs testing on different OS versions
« Reply #6 on: August 19, 2019, 09:51:45 AM »
2000(after installing gdiplus.dll)/XP/XP64/Vista64 - main window shows, splash shows in the taskbar but not on screen
7/8.1/10 - works OK
I can walk on water but stagger on beer bourbon.

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 6749
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: A prototype that needs testing on different OS versions
« Reply #7 on: August 19, 2019, 11:35:57 AM »
Thanks guys, its pointed at win7 upwards and uses GDI+ to handle a JPG stored in the resource section. I think it will be a reasonably easy port to Win64 and it should be useful for UI apps.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

daydreamer

  • Member
  • ****
  • Posts: 939
  • watch Chebyshev on the backside of the Moon
Re: A prototype that needs testing on different OS versions
« Reply #8 on: August 19, 2019, 07:10:05 PM »
works ok on this build of W10,wonder if reporting build number for W10 ,should make it more helpful for all kinds of future tests?
separate thread for GDI+ drawing ,example would be nice  and useful for smoother and better drawing on newer computer than make messagepump laggy
Quote from Flashdance
Nick  :  When you give up your dream, you die
*wears a flameproof asbestos suit*
Gone serverside programming p:  :D

FORTRANS

  • Member
  • *****
  • Posts: 1057
Re: A prototype that needs testing on different OS versions
« Reply #9 on: August 19, 2019, 10:50:04 PM »
Hi,

Code: [Select]
Win 2000 Grayed window, but runs and exits.

Win 98 Complained of missing gdi+ dll.
When supplied DLL, aborted with an illegal instruction.

Win XP Grayed window, but runs and exits.

Win 8.1 Shows splash screen then grayed window.
Clicking Help => About shows a splash screen somewhat
wider and shorter than the window.

Cheers,

Steve N.

AW

  • Member
  • *****
  • Posts: 2431
  • Let's Make ASM Great Again!
Re: A prototype that needs testing on different OS versions
« Reply #10 on: August 19, 2019, 11:16:27 PM »
Just tested in Windows Server 2019 and it works fine too.

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 6749
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: A prototype that needs testing on different OS versions
« Reply #11 on: August 20, 2019, 07:13:45 PM »
I have done the 64 bit MASM version and it seems to work OK here. It has been a pain to get the start splash screen going as Win64 instantly displays the window without needing to use ShowWindow() so I have used an old technique of starting the window off screen, displaying the splash screen then using MoveWindow() to display the main window. No such problem once the main window is displayed, the Help/About menu displays a different image with a single call. This one has the full 64 bit MASM code and a directory that builds the test library for the splash module. Once I am happy with it, the module goes into the 64 bit library.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

jj2007

  • Member
  • *****
  • Posts: 9782
  • Assembler is fun ;-)
    • MasmBasic
Re: A prototype that needs testing on different OS versions
« Reply #12 on: August 20, 2019, 08:43:56 PM »
as Win64 instantly displays the window without needing to use ShowWindow()

Did you try without WS_VISIBLE?

    invoke CreateWindowEx,WS_EX_LEFT or WS_EX_ACCEPTFILES, \
                          ADDR classname,ADDR caption, \
                          WS_OVERLAPPEDWINDOW or WS_VISIBLE,\
                          -1000,-1000,wid,hgt,0,0,hInstance,0   ; start off screen

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 6749
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: A prototype that needs testing on different OS versions
« Reply #13 on: August 20, 2019, 09:26:19 PM »
It works but at the price that the main window no longer has the focus after the splash screen is finished.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

jj2007

  • Member
  • *****
  • Posts: 9782
  • Assembler is fun ;-)
    • MasmBasic
Re: A prototype that needs testing on different OS versions
« Reply #14 on: August 20, 2019, 09:45:39 PM »
Do you main focus (->SetFocus) or z-order (->SetWindowPos)?