News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Any Help with CATSTR || @CatStr

Started by Nonameo, May 25, 2005, 05:08:37 PM

Previous topic - Next topic

Nonameo

Hey guys

I'm trying to figure out how to use CATSTR or @Catstr, i've never needed to use this before as i always use Invoke lstrcat but now i want to try and use it.

Can anyone post a simple example of using these ? The examples in MASM help files dont seem to work for me (maybe i'm missing somthing out).

Thanks

-Nonameo-

Vortex

Hi Nonameo,

Welcome to the forum.

From MASM Programmer's Guide , Chapter Nine: Using Macros:

http://webster.cs.ucr.edu/Page_TechDocs/MASMDoc/ProgrammersGuide/Chap_09.htm

Quote
CATSTR

Concatenates one or more strings to a single string.

num     =       7
newstr  CATSTR  <3 + >, %num, < = > , %3 + num      ; "3 + 7 = 10"

assign the string "3 + 7 = 10" to newstr.


MichaelW

Hi Nonameo,

You can find multiple examples using CATSTR in \masm32\macros\macros.asm.
eschew obfuscation