flat assembler
Message board for the users of flat assembler.

Index > Windows > Sending strings as macro arguments

Author
Thread Post new topic Reply to topic
NanoBytes



Joined: 02 Jun 2011
Posts: 57
Location: Iowa, United States
NanoBytes 07 Feb 2012, 02:28
Hey, i am trying to send a string to a macro, but I cant get it to pass correctly. FASM keeps thinking that I am trying to pass another argument rather than just extend the string
Code:
LoadStringToMemory "Hello",10,"World"
    

rather than sending 3 separate parameters, I want to conacate the parameters so that the string would hold
Code:
Hello
World
    

_________________
He is no fool who gives what he cannot
keep to gain what he cannot loose.
Post 07 Feb 2012, 02:28
View user's profile Send private message Send e-mail Visit poster's website Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 07 Feb 2012, 07:27
What is the macro definition?
Post 07 Feb 2012, 07:27
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20628
Location: In your JS exploiting you and your system
revolution 07 Feb 2012, 07:57
Try this:
Code:
LoadStringToMemory <"Hello",10,"World">    
Post 07 Feb 2012, 07:57
View user's profile Send private message Visit poster's website Reply with quote
NanoBytes



Joined: 02 Jun 2011
Posts: 57
Location: Iowa, United States
NanoBytes 07 Feb 2012, 21:44
Yes, perfect, thank you
Post 07 Feb 2012, 21:44
View user's profile Send private message Send e-mail 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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.