mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
Fixed bugs in reading hwp format and added test example
This commit is contained in:
20
HwpFile/test/main.cpp
Normal file
20
HwpFile/test/main.cpp
Normal file
@ -0,0 +1,20 @@
|
||||
#include "../HWPFile.h"
|
||||
#include <iostream>
|
||||
|
||||
int main()
|
||||
{
|
||||
CHWPFile oFile(L"C:/ONLYOFFICE/Files/hwp/example.hwp");
|
||||
|
||||
if (oFile.Open())
|
||||
{
|
||||
std::cout << "Successful" << std::endl;
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cout << "Unsuccessful" << std::endl;
|
||||
return -1;
|
||||
}
|
||||
|
||||
oFile.Close();
|
||||
}
|
||||
Reference in New Issue
Block a user