News:

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

LIB/INC for StrTrim?

Started by georgek01, September 01, 2005, 01:42:05 PM

Previous topic - Next topic

georgek01

Which lib and/or inc file(s) must I include in my project to use the string function/macro StrTrim?
What we have to learn to do, we learn by doing.

- ARISTOTLE (384-322 BC)

Tedd

Those are VB functions(?) So they're not really part of windows or masm.
However, there are a number of 'useful' functions in the file "macros.asm" which you can include and get such wonders as "ltrim$" and "rtrim$" and even "trim$" (amongst others) :bg
No snowflake in an avalanche feels responsible.

georgek01

Thanks Tedd for the reply.

I'm using WinASM. In the IDE, the context menu "says" there is a macro like [invoke StrTrim, psz,pszTrimChars]. But when I compile I get: error A2006: undefined symbol : StrTrim. I'm therefore assuming I'm missing a required lib/inc file.
What we have to learn to do, we learn by doing.

- ARISTOTLE (384-322 BC)

Mark Jones

Hi George, easiest way to see if you have that lib file is to open a file search to C:\MASM32\include. Then search the contents of all files there for StrTrim. If you get a file result, then that's your library.
"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08

MichaelW

For StrTrim you need to include shlwapi.inc and shlwapi.lib.
eschew obfuscation

georgek01

Thanks all!  :U That works just fine.
What we have to learn to do, we learn by doing.

- ARISTOTLE (384-322 BC)