|
|
Filter for open/save dialog as resource string |
|
Author |
Message |
kesavan

|
Posted: Wed Jul 28 11:23:09 CDT 2004 |
Top |
MFC >> Filter for open/save dialog as resource string
Hi all!
How can I put a filter for open/save dialog (you know, like "Text Files
(*.txt)\0*.txt\0All Files (*.*)\0*.*\0\0") in the *.rc file? I can't seem to
get my zeroes to go through...
Thanks, Goran.
Visual Studio11
|
|
|
|
 |
Joseph

|
Posted: Wed Jul 28 11:23:09 CDT 2004 |
Top |
MFC >> Filter for open/save dialog as resource string
Use |. If you are using CFileDialog, it automatically converts the | characters to NUL
bytes.
joe
>Hi all!
>
>How can I put a filter for open/save dialog (you know, like "Text Files
>(*.txt)\0*.txt\0All Files (*.*)\0*.*\0\0") in the *.rc file? I can't seem to
>get my zeroes to go through...
>
>Thanks, Goran.
>
Joseph M. Newcomer [MVP]
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
|
|
|
|
 |
Goran

|
Posted: Thu Jul 29 02:26:27 CDT 2004 |
Top |
MFC >> Filter for open/save dialog as resource string
Thanks!
Yes, it works! I tried what you said before, but I assigned my filter
directly to m_ofn, after CFileDialog ctor. This does not work ('|'
characters remain), because '|' to '\0' replacement is done in the
constructor. Good one!
Goran.
> Use |. If you are using CFileDialog, it automatically converts the |
characters to NUL
> bytes.
> joe
>
y a h o o . c o
>
> >Hi all!
> >
> >How can I put a filter for open/save dialog (you know, like "Text Files
> >(*.txt)\0*.txt\0All Files (*.*)\0*.*\0\0") in the *.rc file? I can't seem
to
> >get my zeroes to go through...
> >
> >Thanks, Goran.
> >
>
> Joseph M. Newcomer [MVP]
> Web: http://www.flounder.com
> MVP Tips: http://www.flounder.com/mvp_tips.htm
|
|
|
|
 |
|
|