The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: Nonameo on May 25, 2005, 05:08:37 PM

Title: Any Help with CATSTR || @CatStr
Post by: Nonameo on May 25, 2005, 05:08:37 PM
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-
Title: Re: Any Help with CATSTR || @CatStr
Post by: Vortex on May 25, 2005, 05:53:10 PM
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.

Title: Re: Any Help with CATSTR || @CatStr
Post by: MichaelW on May 25, 2005, 07:35:55 PM
Hi Nonameo,

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