Link to home
Start Free TrialLog in
Avatar of armg
armg

asked on

Using Win16 commdlg.dll API in VB4

I have determined from a previously asked question that under VB4 16-bit enviroment using the CommonDialog control there is no way to determine which file type/extension filter has been selected.  What I'm trying top do is directly access the Win16 commdlg.dll API to give me the ability to determine which file type has been selected so that I can then save a file in that format.  I've been able to successfully display the File Save dialog by writting a  C DLL function that is simply wrapper for the actual API function that I call from my VB program.  My problem is that I have formatted the lpstrFilter member of the OPENFILENAME struct to how it is described in the Win16 SDK but the "List files of type" listbox only shows the first filter name I specfied and it doesn't apply the filter to the file listings.  What am I missing here and is there an better alternative to may approah?
Avatar of MikeP090797
MikeP090797

I think the string must be loaded from a resource file
Avatar of armg

ASKER

What effect would loading a string from a resource file have that couldn't be achieved otherwise?
Just try it, I remember that I had a simular problem and it solved it.
ASKER CERTIFIED SOLUTION
Avatar of mrmick
mrmick

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial