flat assembler
Message board for the users of flat assembler.

Index > Windows > Problem with common controls & fasm (win9x)

Author
Thread Post new topic Reply to topic
deus



Joined: 12 Aug 2004
Posts: 5
Location: Poland
deus
Hi.
i have small problem with common controls. When I create ex. toolbar ,comctl32.dll generates General Protection Fault. But only on win9x, on XP works fine. What can I say - help!


Description:
Download
Filename: symedit.zip
Filesize: 1.67 KB
Downloaded: 86 Time(s)

Post 12 Oct 2004, 22:57
View user's profile Send private message Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1137
Location: Russian Federation
comrade
i am not able to compile your file because of ever-changing FASM includes, but I can see the following:


  • LV_COLUMN and LV_ITEM have been renamed to LVCOLUMN and LVITEM and are already declared in standard FASM includes
  • the exit from MainWNDProc is possibly erroneous. you would rather use:
    Code:
    _mwndproc_end:
    pop ebx esi edi
    return
    endp
        

    the "return" macro takes care of fixing up the stackframe
    I had weird cases such that with a faulty procedure working fine on NT, but crashing on 9x. maybe NT has some kind of stack-correction, fail-safe code

_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 13 Oct 2004, 00:00
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
deus



Joined: 12 Aug 2004
Posts: 5
Location: Poland
deus
Still GPF. Exception is generated in comctl32.dll when I call CreateWindowExA with common controls classes, CreatateStatusWindowA etc.
Post 13 Oct 2004, 05:06
View user's profile Send private message Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv
This looks wrong

Code:
_mwndproc_end:
             mov     esp, ebp
            sub     esp, 0Ch
            pop     ebx
         pop     esi
         pop     edi
         pop     ebp
         ret
    
Post 13 Oct 2004, 07:58
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
deus



Joined: 12 Aug 2004
Posts: 5
Location: Poland
deus
i know, I know, I'm blind...
1st:
-should be:
Code:
         pop     ebx
         pop     esi
         pop     edi
         mov     esp, ebp
            pop     ebp
         ret     10h

or
                pop ebx esi edi
                return    


Second:
my comcll32.dll was broken, after reinstall all works fine Smile
Thx!
Post 13 Oct 2004, 16:38
View user's profile Send private message Reply with quote
shoorick



Joined: 25 Feb 2005
Posts: 1607
Location: Ukraine
shoorick
comrade wrote:
LV_COLUMN and LV_ITEM have been renamed to LVCOLUMN and LVITEM and are already declared in standard FASM includes

just had downloaded fasmw.167.12 and found these structures renamed backward to LV_COLUMN and LV_ITEM - it is interesting why? in MSDN they are presented as LVCOLUMN and LVITEM (or i had miss something Confused )
===
i think i got it - it is because LVCOLUMN and LVITEM are more extended against their "_" analogs Smile

_________________
UNICODE forever!
Post 12 Oct 2006, 09:12
View user's profile Send private message Visit poster's website 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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.