News:

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

Question about 'Func' fn etc

Started by Rainstorm, April 30, 2007, 12:53:08 PM

Previous topic - Next topic

Rainstorm

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

hutch--

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.

Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Rainstorm

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..

Ehtyar

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.

Rainstorm

Ehtyar,
       That worked fine..

thanks..

Rainstorm