how to fix 0xc000007b error while using wimlib

Never Gonna Give You UP 0 Reputation points
2024-02-09T06:55:26.1766667+00:00

#include<iostream> #include<stdio.h> #include<comdef.h> #include<windows.h> #include<string> #include<tchar.h> #include<regex> #include"wimlib.h" #pragma comment(lib,"libwim.lib") using namespace std; TCHAR* StringToTCHAR(const std::string& str) { int length = MultiByteToWideChar(CP_UTF8, 0, str.c_str(), -1, NULL, 0); TCHAR* tstr = new TCHAR[length]; MultiByteToWideChar(CP_UTF8, 0, str.c_str(), -1, tstr, length); return tstr; } string file_addr; int main() { FILE* wim_addr; string tmp_wa; wim_addr=freopen("temp.txt", "r",stdin); cin >> tmp_wa; cout << tmp_wa; WIMStruct* WIMFILE; int result = wimlib_open_wim(StringToTCHAR(tmp_wa), NULL, &WIMFILE); cout << result; wimlib_free(WIMFILE); system("pause"); fclose(wim_addr); return 0; } I'm chinese :-) 我用wimlib时,dll文件都没漏,却发现程序运行错误 错误信息: “SySPre Installer.exe”(Win32): 已加载“C:\Users\Administrator\source\repos\SySPre Installer\x64\Release\SySPre Installer.exe”。已加载符号。 “SySPre Installer.exe”(Win32): 已加载“C:\Windows\System32\ntdll.dll”。 “SySPre Installer.exe”(Win32): 已加载“C:\Windows\System32\kernel32.dll”。 “SySPre Installer.exe”(Win32): 已加载“C:\Windows\System32\KernelBase.dll”。 “SySPre Installer.exe”(Win32): 已加载“C:\Users\Administrator\source\repos\SySPre Installer\x64\Release\libwim-15.dll”。模块已生成,不包含符号。 “SySPre Installer.exe”(Win32): 已卸载“C:\Users\Administrator\source\repos\SySPre Installer\x64\Release\libwim-15.dll” “SySPre Installer.exe”(Win32): 已加载“C:\Users\Administrator\source\repos\SySPre Installer\SySPre Installer\libwim-15.dll”。模块已生成,不包含符号。 “SySPre Installer.exe”(Win32): 已卸载“C:\Users\Administrator\source\repos\SySPre Installer\SySPre Installer\libwim-15.dll” 线程 0x4bc8 已退出,返回值为 3221225595 (0xc000007b)。 线程 0x5cb4 已退出,返回值为 3221225595 (0xc000007b)。 程序“[20088] SySPre Installer.exe”已退出,返回值为 3221225595 (0xc000007b)。 用了all in one工具,sfc,都不行 到底怎么解决?

Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
1,002 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.