flat assembler
Message board for the users of flat assembler.

Index > Windows > Adding resources

Author
Thread Post new topic Reply to topic
WhiteDwarf



Joined: 25 Dec 2003
Posts: 17
WhiteDwarf
I need to add the ability to use dialogs in my program so i tried and added this to my already large .rsrc section but i come up with an error saying....
"Undefined Symbol"

Original Code that worked
Code:
 directory  RT_MENU,menus,\
            RT_ICON,icons,\
            RT_GROUP_ICON,group_icons,\
            RT_VERSION,versions

                                        
    

What i tried.
Code:
directory  RT_MENU,menus,\
            RT_ICON,icons,\
            RT_GROUP_ICON,group_icons,\
            RT_VERSION,versions,\
            RT_DIALOG,dialogs
    



I also tried adding this to the import user section
original code
Code:
  import user,\
         RegisterClass,'RegisterClassA',\
         CreateWindowEx,'CreateWindowExA',\
         DefWindowProc,'DefWindowProcA',\
         SetWindowLong,'SetWindowLongA',\
         RedrawWindow,'RedrawWindow',\
         GetMessage,'GetMessageA',\
         TranslateMessage,'TranslateMessage',\
         DispatchMessage,'DispatchMessageA',\
         SendMessage,'SendMessageA',\
         LoadCursor,'LoadCursorA',\
         LoadIcon,'LoadIconA',\
         LoadMenu,'LoadMenuA',\
         GetClientRect,'GetClientRect',\
         MoveWindow,'MoveWindow',\
         SetFocus,'SetFocus',\
         MessageBox,'MessageBoxA',\
         PostQuitMessage,'PostQuitMessage'   
    

What i tried.
Code:
  import user,\
         RegisterClass,'RegisterClassA',\
         CreateWindowEx,'CreateWindowExA',\
         DefWindowProc,'DefWindowProcA',\
         SetWindowLong,'SetWindowLongA',\
         RedrawWindow,'RedrawWindow',\
         GetMessage,'GetMessageA',\
         TranslateMessage,'TranslateMessage',\
         DispatchMessage,'DispatchMessageA',\
         SendMessage,'SendMessageA',\
         LoadCursor,'LoadCursorA',\
         LoadIcon,'LoadIconA',\
         LoadMenu,'LoadMenuA',\
         GetClientRect,'GetClientRect',\
         MoveWindow,'MoveWindow',\
         SetFocus,'SetFocus',\
         MessageBox,'MessageBoxA',\
         PostQuitMessage,'PostQuitMessage' ,\

 DialogBoxParam,'DialogBoxParamA',\
   CheckRadioButton,'CheckRadioButton',\
    GetDlgItemText,'GetDlgItemTextA',\
       IsDlgButtonChecked,'IsDlgButtonChecked',\
        MessageBox,'MessageBoxA',\
       EndDialog,'EndDialog'
    

Thanks alot guys Very Happy
Post 18 Jan 2004, 03:46
View user's profile Send private message Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1137
Location: Russian Federation
comrade
Did you define actual dialog?

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



Joined: 25 Dec 2003
Posts: 17
WhiteDwarf
Is this what you mean by defining dialog
Quote:
resource dialogs,\
37,LANG_ENGLISH+SUBLANG_DEFAULT,demonstration
?
Post 18 Jan 2004, 04:00
View user's profile Send private message Reply with quote
Vortex



Joined: 17 Jun 2003
Posts: 318
Vortex
WhiteDwarf,

Sorry me,but why don't you try to use compiled resource files (.res) with Fasm?

_________________
Code it... That's all...
Post 18 Jan 2004, 15:17
View user's profile Send private message Visit poster's website Reply with quote
WhiteDwarf



Joined: 25 Dec 2003
Posts: 17
WhiteDwarf
I am actually currently trying this with not much luck cause i'm using RadAsm doing this.....should i just us RC from masm32?
Post 18 Jan 2004, 17:21
View user's profile Send private message Reply with quote
silkodyssey



Joined: 02 Oct 2003
Posts: 198
Location: St.Vincent & the Grenadines
silkodyssey
You can try Ewayne's stand alone resource editor.
http://asmedit.massmind.org/files/ResEdit.zip

_________________
silkodyssey
Post 18 Jan 2004, 20:45
View user's profile Send private message MSN Messenger Reply with quote
Vortex



Joined: 17 Jun 2003
Posts: 318
Vortex
Symantec Resource editor from Hutch's homepage:

http://movsd.com/download/nre.exe

_________________
Code it... That's all...
Post 19 Jan 2004, 10:53
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.