flat assembler
Message board for the users of flat assembler.

Index > Main > operand size not specified.

Author
Thread Post new topic Reply to topic
Kenny80



Joined: 08 May 2005
Posts: 22
Kenny80
I got this piece of line that i can't find why it gets a error:

Code:
invoke EnableDlgItem, [hWnd], IDC_NAME, TRUE    


proc32.inc [20] invoke [6]:
call [proc] }
error: operand size not specified.
Post 12 Aug 2008, 09:29
View user's profile Send private message Reply with quote
ManOfSteel



Joined: 02 Feb 2005
Posts: 1154
ManOfSteel
It's not defined as an API (in the import tables). Call it with stdcall instead.
Post 12 Aug 2008, 09:51
View user's profile Send private message Reply with quote
asmcoder



Joined: 02 Jun 2008
Posts: 784
asmcoder
[content deleted]


Last edited by asmcoder on 14 Aug 2009, 14:56; edited 1 time in total
Post 12 Aug 2008, 11:15
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
Code:
stdcall EnableDlgItem, [hWnd], IDC_NAME, TRUE    
Should work as ManOfSteel says provided you have a proc (or at least a label) with "EnableDlgItem" name.

The macro will do this:
Code:
push TRUE
push IDC_NAME
push [hWnd]
call EnableDlgItem ; Here invoke does call [EnableDlgItem]    


[edit]Removed "dword" from "call dword [EnableDlgItem]" since the invoke macro uses "call [EnableDlgItem]" (so type is determined from the label)[/edit]


Last edited by LocoDelAssembly on 12 Aug 2008, 14:27; edited 1 time in total
Post 12 Aug 2008, 13:52
View user's profile Send private message Reply with quote
Kenny80



Joined: 08 May 2005
Posts: 22
Kenny80
ah ok, thx alot Smile
Post 12 Aug 2008, 14:24
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 YouTube, Twitter.

Website powered by rwasa.