The MASM Forum Archive 2004 to 2012

Project Support Forums => MASM32 => Topic started by: Rainstorm on April 30, 2007, 12:53:08 PM

Title: Question about 'Func' fn etc
Post by: Rainstorm on April 30, 2007, 12:53:08 PM
hi.

Can a  ;  or  , be used in the quoted txt part of macros like func, fn etc ?

For exampleOpenFileDialog,NULL,hInstance,"Select File","text files,0,*.txt,0" that doesn't work proper

thanks.

Rainstorm
Title: Re: Question about 'Func' fn etc
Post by: hutch-- on April 30, 2007, 05:27:50 PM
Have a look at the High level Help file under the setion "Calling Procedures" as it deals with the various way that procedures are called inclusing the macros that you have mentioned.

Title: Re: Question about 'Func' fn etc
Post by: Rainstorm on April 30, 2007, 07:46:31 PM
hutch,

from the documentation it seems that this is not possible with rev & fn & that i have to use fnc or rvc for the quoted text...with which it assembles proper.

..but I still can't get it to display the right pttern in the 'file type box' of the file open dialogue,..it displays the the zeroes & the escape sequences

thanks..
Title: Re: Question about 'Func' fn etc
Post by: Ehtyar on April 30, 2007, 10:09:02 PM
Try replacing the last parameter with something like this: chr$("Text Files",0,"*.txt",0). The macro will add the second terminating NULL for you. Also, it is good programming practice to allow the user the option of selecting any file type, in case the extension of the file they wish to process is nonstandard, in this case you would try: chr$("Text Files",0,"*.txt",0,"All Files", 0, "*.*", 0)

Hope this helps, Ehtyar.
Title: Re: Question about 'Func' fn etc
Post by: Rainstorm on April 30, 2007, 10:55:20 PM
Ehtyar,
       That worked fine..

thanks..

Rainstorm