Hi, many thanks for fixing it
But could you explain what you did to make it work, so comment some lines?
And why do you use "CreateFile", you can leave it because the file already exist as a txt file right?
And in my code, there is a line which i don't know what it does. It's popping hInstance from stack, but why it that needed? >> pop OFNstruc.hInstance ; ???