From 5dc6402006df27f54bc269434e0baa8431299ea2 Mon Sep 17 00:00:00 2001 From: Green Date: Thu, 30 Jan 2025 13:12:27 +0300 Subject: [PATCH] Fix test file --- HwpFile/test/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/HwpFile/test/main.cpp b/HwpFile/test/main.cpp index d3c5c89cd2..ed8e0d03e0 100644 --- a/HwpFile/test/main.cpp +++ b/HwpFile/test/main.cpp @@ -6,8 +6,8 @@ int main() { CHWPFile oFile; - if (oFile.OpenHWPX(L"C:/ONLYOFFICE/Files/hwpx/test_multiple_elements.hwpx")) - // if (oFile.OpenHWP(L"C:/ONLYOFFICE/Files/hwp/Examples/test_rect.hwp")) + // if (oFile.OpenHWPX(L"YOUR_PATH")) + if (oFile.OpenHWP(L"YOUR_PATH")) { std::cout << "Successful" << std::endl; } @@ -23,4 +23,5 @@ int main() NSDirectory::CreateDirectory(wsTempDir); oFile.SetTempDirectory(wsTempDir); oFile.ConvertToOOXML(L"result.docx"); + oFile.Close(); }