Reputation: 101
How can I open .docx files in MFC? Because when I open a .docx file it puts "PK" to the editor. (This is at every .docx file I have opened)
Upvotes: 2
Views: 398
Reputation: 2450
.docx files are .zip files with a different extension. The content of the zip is essentially a directory structure containing various XML files.
To open a .docx in a text editor would basically require unzipping the file to a directory then opening each XML file in your editor.
The actual format of .docx files can be found online.
Upvotes: 2