Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenResZip 使用内存压缩包资源报错 #519

Open
lfpei opened this issue Feb 12, 2025 · 0 comments
Open

OpenResZip 使用内存压缩包资源报错 #519

lfpei opened this issue Feb 12, 2025 · 0 comments

Comments

@lfpei
Copy link

lfpei commented Feb 12, 2025

问题现象

创建的32位应用程序添加资源文件,然后使用OpenResZip打开资源可以正常打开访问,但是在开发的动态链接库中使用同样的方式就会报错。
我已确认过zip包是正常的,因为我是用本地资源zip包的方式是正常的,只有使用内存资源是才会有问题。
报错信息:
0xC0000005: 读取位置 0xFFFFFFFF 时发生访问冲突。

预期结果

动态链接库中使用内存资源文件能正常加载打开

重现步骤

创建动态链接库 -> 资源文件 -> 添加资源 -> 导入资源
bool open = ui::GlobalManager::OpenResZip(MAKEINTRESOURCE(IDR_THEME1), L"THEME", "");
ui::GlobalManager::Startup(L"resources\\", ui::CreateControlCallback(), false);
进行访问资源

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant