flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Another problem with 64bit invoke macro.

Author
Thread Post new topic Reply to topic
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 16 Jan 2012, 14:13
The invoke macro doesn't handle strings defined using 'equ'.
Example:
Code:
TESTCONTROL equ "Testing" ;WC_TABCONTROLA
invoke  CreateWindowEx, NULL, TESTCONTROL, NULL, WS_CHILD or WS_VISIBLE, 4, 4, WINDOWWIDTH-12, WINDOWHEIGHT-30, [hwnd], NULL, NULL, NULL
    


[Edit] forgot to mention the error fasm gives me:

invalid operand
Code:
inc 'Testing'    

_________________
Gimme a sledge hammer! I'LL FIX IT!
Post 16 Jan 2012, 14:13
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.