L1-Cache
L1-Cache

Reputation: 101

C++ How to open .docx files in MFC

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

Answers (1)

jkb
jkb

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

Related Questions