flat assembler
Message board for the users of flat assembler.

Index > Windows > Can not invoke InitCommonControls

Author
Thread Post new topic Reply to topic
Aux



Joined: 27 Aug 2007
Posts: 10
Aux
Hello! I need to make a progress bar, so I need to initialize Common Controls for my app. I put include "include/api/comctl32.inc" and make invoke InitCommonControls (or call InitCommonControls, both don't work), but compiler throws:

Code:
.FASM.EXE test.ASM
flat assembler  version 1.67.22  (694115 kilobytes memory)
test.ASM [69]:
        invoke  InitCommonControls
include/macro/proc32.inc [20] invoke [6]:
    call [proc] }
error: undefined symbol.    


I can't understand what is wrong...
Post 27 Aug 2007, 10:53
View user's profile Send private message Reply with quote
Yardman



Joined: 12 Apr 2005
Posts: 245
Location: US
Yardman
[ Post removed by author. ]


Last edited by Yardman on 17 Jan 2012, 18:07; edited 1 time in total
Post 27 Aug 2007, 11:05
View user's profile Send private message Reply with quote
ManOfSteel



Joined: 02 Feb 2005
Posts: 1155
ManOfSteel
@Yardman:
Quote:

Did you add the dll to the library statement?

library kernel32,'kernel32.dll',\
user32,'user32.dll',\
gdi32,'gdi32.dll',\
comctl32,'comctl32.dll'

No, this would give another type of error.


@Aux:
Try not using 'comctl32.inc' and importing 'InitCommonControls' manually:
Code:
format PE GUI 4.0
entry start

include '%fasminc%\win32ax.inc'

section '.code' code readable executable
start:
...
       invoke  InitCommonControls
...

section        '.idata' import data readable writeable
library    kernel,'KERNEL32.DLL',user,'USER32.DLL',gdi,'GDI32.DLL',comctl,'COMCTL32.DLL'
...
import  comctl,\
        InitCommonControls,'InitCommonControls'
    
Post 28 Aug 2007, 10:48
View user's profile Send private message Reply with quote
Yardman



Joined: 12 Apr 2005
Posts: 245
Location: US
Yardman
[ Post removed by author. ]


Last edited by Yardman on 17 Jan 2012, 18:06; edited 2 times in total
Post 28 Aug 2007, 14:23
View user's profile Send private message Reply with quote
asmfan



Joined: 11 Aug 2006
Posts: 392
Location: Russian
asmfan
Code:
library  kernel32,'kernel32.dll',\
          comctl32,'comctl32.dll'

  include 'api\kernel32.inc'
  include 'api\comctl32.inc'
    

_________________
Any offers?
Post 28 Aug 2007, 14:38
View user's profile Send private message Reply with quote
ManOfSteel



Joined: 02 Feb 2005
Posts: 1155
ManOfSteel
Yardman, you're right. Sorry for the confusion.
Post 29 Aug 2007, 07:48
View user's profile Send private message Reply with quote
Aux



Joined: 27 Aug 2007
Posts: 10
Aux
I used suggestion from first comment - it worked.
Post 17 Sep 2007, 07:51
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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.