Hi all

Can you help me with nFileExtension member in OPENFILE structure? I don't know how to use it in my program. I want to check the extension of file, and then decide what next if extension is good or not. Example: if the file is test.asm then go, and open it, else show msg box with extension error msg, and return. I simply can't make this in my program. Is this possible with this member or not?


Posted on 2002-05-17 12:37:57 by stanks
This member contains the zero based offset into the lpstrFile member of the same structure. If nFileExtension is 0 then either the file has no extention or the string ends with the dot (.) character.

if nFileExtension is 0 skip processing...
else read next 3 bytes from and compair them to what you want.

Hope that helps.
Posted on 2002-05-17 12:48:57 by Graebel