The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: georgek01 on September 01, 2005, 01:42:05 PM

Title: LIB/INC for StrTrim?
Post by: georgek01 on September 01, 2005, 01:42:05 PM
Which lib and/or inc file(s) must I include in my project to use the string function/macro StrTrim?
Title: Re: LIB/INC for StrTrim?
Post by: Tedd on September 01, 2005, 03:00:35 PM
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
Title: Re: LIB/INC for StrTrim?
Post by: georgek01 on September 01, 2005, 03:10:52 PM
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.
Title: Re: LIB/INC for StrTrim?
Post by: Mark Jones on September 01, 2005, 03:33:36 PM
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.
Title: Re: LIB/INC for StrTrim?
Post by: MichaelW on September 01, 2005, 03:38:15 PM
For StrTrim you need to include shlwapi.inc and shlwapi.lib.
Title: Re: LIB/INC for StrTrim?
Post by: georgek01 on September 01, 2005, 03:38:31 PM
Thanks all!  :U That works just fine.