flat assembler
Message board for the users of flat assembler.

Index > Windows > Resource generation bug?

Author
Thread Post new topic Reply to topic
omega_red



Joined: 13 Mar 2004
Posts: 19
Location: Poland
omega_red 08 Sep 2004, 01:22
Unaltered fasm 1.55.

I've compiled DIALOG example provided with fasmw. DialogBoxParam returns 0x715: ERROR_RESOURCE_TYPE_NOT_FOUND.
All resource viewers I have say: corrupt resource.

My OS: win2k pro, sp4.


Description:
Download
Filename: DIALOG.ZIP
Filesize: 1015 Bytes
Downloaded: 322 Time(s)


_________________
Vulnerant omnes, ultima necat
Post 08 Sep 2004, 01:22
View user's profile Send private message Visit poster's website Reply with quote
vbVeryBeginner



Joined: 15 Aug 2004
Posts: 884
Location: \\world\asia\malaysia
vbVeryBeginner 08 Sep 2004, 05:18
em, i guess, you should really post your code, instead of ur .exe file

here is what i abstract from ur .exe

Code:
37 DIALOG 70, 70, 190, 175
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "?"
MENU "MS Sans Serif"
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
FONT 0, "

F???&Caption:"
{
   CONTROL "", 201, EDIT, ES_LEFT | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 10, 20, 170, 13 
   CONTROL "&Message:", -1, STATIC, SS_LEFT | WS_CHILD | WS_VISIBLE, 10, 40, 70, 8 
   CONTROL "", 202, EDIT, ES_LEFT | ES_AUTOHSCROLL | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 10, 50, 170, 13 
   CONTROL "&Icon", -1, BUTTON, BS_GROUPBOX | WS_CHILD | WS_VISIBLE, 10, 70, 80, 70 
   CONTROL "&Error", 301, BUTTON, BS_AUTORADIOBUTTON | WS_CHILD | WS_VISIBLE | WS_GROUP | WS_TABSTOP, 20, 82, 60, 13 
   CONTROL "I&nformation", 302, BUTTON, BS_AUTORADIOBUTTON | WS_CHILD | WS_VISIBLE, 20, 95, 60, 13 
   CONTROL "&Question", 303, BUTTON, BS_AUTORADIOBUTTON | WS_CHILD | WS_VISIBLE, 20, 108, 60, 13 
   CONTROL "&Warning", 304, BUTTON, BS_AUTORADIOBUTTON | WS_CHILD | WS_VISIBLE, 20, 121, 60, 13 
   CONTROL "&Style", -1, BUTTON, BS_GROUPBOX | WS_CHILD | WS_VISIBLE, 100, 70, 80, 70 
   CONTROL "&Top most", 401, BUTTON, BS_AUTOCHECKBOX | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 110, 82, 60, 13 
   CONTROL "OK", 101, BUTTON, BS_DEFPUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 85, 150, 45, 15 
   CONTROL "C&ancel", 102, BUTTON, BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 135, 150, 45, 15 
   CONTROL "", 0, "", 0x0, 0, 0, 0, 0 
}
    
Post 08 Sep 2004, 05:18
View user's profile Send private message Visit poster's website Reply with quote
vbVeryBeginner



Joined: 15 Aug 2004
Posts: 884
Location: \\world\asia\malaysia
vbVeryBeginner 08 Sep 2004, 05:19
please show your code, so that i or we could help,
by the way, are u using FASM internal resource compiler?
or third-party RC?

Code:
CAPTION "?" 
MENU "MS Sans Serif" 
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 
FONT 0, " 
    

this part look kinda WEIRD!
Post 08 Sep 2004, 05:19
View user's profile Send private message Visit poster's website Reply with quote
omega_red



Joined: 13 Mar 2004
Posts: 19
Location: Poland
omega_red 08 Sep 2004, 08:16
As I said, it's standard example provided with FASM - the dialog one. So it's even not my code Smile
I'm using unaltered fasm 1.55 only.


Description:
Download
Filename: DIALOG.ZIP
Filesize: 2.36 KB
Downloaded: 327 Time(s)


_________________
Vulnerant omnes, ultima necat
Post 08 Sep 2004, 08:16
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8357
Location: Kraków, Poland
Tomasz Grysztar 08 Sep 2004, 08:23
Have you got the latest includes update? It's in fasmw package marked with 02 September date.
Post 08 Sep 2004, 08:23
View user's profile Send private message Visit poster's website Reply with quote
omega_red



Joined: 13 Mar 2004
Posts: 19
Location: Poland
omega_red 08 Sep 2004, 10:46
This update solved the problem, thanks.

_________________
Vulnerant omnes, ultima necat
Post 08 Sep 2004, 10:46
View user's profile Send private message Visit poster's website Reply with quote
vbVeryBeginner



Joined: 15 Aug 2004
Posts: 884
Location: \\world\asia\malaysia
vbVeryBeginner 08 Sep 2004, 12:02
sorry, i guess i am in the lucid MODE :p
Post 08 Sep 2004, 12:02
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.