flat assembler
Message board for the users of flat assembler.

Index > Windows > Window items not showing up in 64-bits OS

Author
Thread Post new topic Reply to topic
randomdude



Joined: 01 Jun 2012
Posts: 83
randomdude 03 Jun 2012, 20:08
this code works fine for me

however, it seems that users using 64-bits OS cant see any item in the window

Image

do i need to build a specific version for 64 bits or is there something wrong in my code?


Description:
Download
Filename: test123.ASM
Filesize: 9.5 KB
Downloaded: 205 Time(s)

Post 03 Jun 2012, 20:08
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20451
Location: In your JS exploiting you and your system
revolution 04 Jun 2012, 07:08
AFAICT there is nothing special that needs to be done for 64-bit OSes. Generally, if it runs in a 32-bit OS then the 64-bit OS will be able to run it also.

BTW: We can't assemble your example because there is a file missing.
Post 04 Jun 2012, 07:08
View user's profile Send private message Visit poster's website Reply with quote
randomdude



Joined: 01 Jun 2012
Posts: 83
randomdude 04 Jun 2012, 12:09
its just missing the icon Razz i have removed few things from the code

i have got my hands in a 64 bits computer it seems that the items only show up when i check the option 'Run in 256 colors' in the compatibility tab. very weird :S
Post 04 Jun 2012, 12:09
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20451
Location: In your JS exploiting you and your system
revolution 04 Jun 2012, 12:17
randomdude wrote:
its just missing the icon Razz i have removed few things from the code
Perhaps it is the icon that is causing the trouble.
Post 04 Jun 2012, 12:17
View user's profile Send private message Visit poster's website Reply with quote
randomdude



Joined: 01 Jun 2012
Posts: 83
randomdude 04 Jun 2012, 12:54
i have removed the icon resources from the code and still no luck, same problem occurs Sad

Code:
invoke        LoadIcon,0,IDC_ICON    


Code:
directory     RT_VERSION,versions

resource versions,\
             1,LANG_NEUTRAL,version_info

versioninfo version_info,VOS__WINDOWS32,VFT_APP,VFT2_UNKNOWN,LANG_ENGLISH+SUBLANG_DEFAULT,0,\
           'FileDescription','hello world',\
              'LegalCopyright','No rights reserved.',\
               'FileVersion','1.0.0.0',\
              'ProductName','blabla',\
               'ProductVersion','1.00',\
              'OriginalFilename','TEST123.EXE'
    


EDIT;

i have solved it Very Happy

just copied everything from .wmcreate into the start function

however the only problem now is the text font that is too big in 64 bits systems


Last edited by randomdude on 04 Jun 2012, 13:35; edited 1 time in total
Post 04 Jun 2012, 12:54
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20451
Location: In your JS exploiting you and your system
revolution 04 Jun 2012, 13:34
I suspect it is because you have no lpszFace parameter in your CreateFont call.
Post 04 Jun 2012, 13:34
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20451
Location: In your JS exploiting you and your system
revolution 04 Jun 2012, 14:21
randomdude wrote:
however the only problem now is the text font that is too big in 64 bits systems
That is because you are selecting a random font.

But you really should fix-up your CreateFont call to ensure your stack remains properly balanced and that your font selection is predictable.
Post 04 Jun 2012, 14:21
View user's profile Send private message Visit poster's website Reply with quote
randomdude



Joined: 01 Jun 2012
Posts: 83
randomdude 04 Jun 2012, 15:49
everything is fixed now

thanks you again for all your help, revolution Smile
Post 04 Jun 2012, 15:49
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.