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

C#未能正确运行,不知道是不是bug #14

Open
ZTOA10 opened this issue Aug 20, 2024 · 5 comments
Open

C#未能正确运行,不知道是不是bug #14

ZTOA10 opened this issue Aug 20, 2024 · 5 comments

Comments

@ZTOA10
Copy link

ZTOA10 commented Aug 20, 2024

首先感谢大佬的付出,让小白因此而受益。只是我运行了这个c#编译的版本,发现未能正确运行,情况如下:
我将run_charp.bat中的路径修改成本地的微信的路径然后双击运行,运行后提示:Unhandled exception. System.DllNotFoundException: Unable to load DLL 'wcocr.dll' or one of its dependencies: 找不到指定 的模块。我检查了一遍文件,明明'wcocr.dll'还是在的不知道为啥不能正确运行,求大佬解惑。
image

@swigger
Copy link
Owner

swigger commented Aug 21, 2024

你没装python,我编译的dll要求有python。你可以自己编一个不用python的。
注意必须是安装版python,如果你用了绿色版的需要自己设置PATH变量使python3.dll能被找到。

@ZTOA10
Copy link
Author

ZTOA10 commented Aug 21, 2024

好的,非常感谢大佬释疑,安装了python也有勾选环境变量,可还是没能运行成功。不知道大佬有没有继续优化这个项目的意向,让摆脱对python环境的依赖
image

@swigger
Copy link
Owner

swigger commented Aug 22, 2024

你也要学会自己分析错误信息,很明显,你装完python后发生的错误不一样了。意味着之前的那个错误解决了。这一次结果为空,很明显原因是你的图片链接是 ..\test呀哈哟.jpg 而这个图片在你的本文件夹里。初次尝试建议你改成绝对路径。不然你就去掉..\再cd到正确路径再运行。

@ZTOA10
Copy link
Author

ZTOA10 commented Aug 23, 2024

再次感谢大佬耐心回复,按照你的说法我测试成功了!
这也证明了大佬所说的:项目C# 能够使用 dll的。
还是提一句:大佬有没有继续优化这个项目的意向,让摆脱对python环境的依赖,造福更多的小白!
最后祝大佬工作顺心,生活如意,就像那田里的庄稼,一年比一年长得更旺!

@ZTOA10
Copy link
Author

ZTOA10 commented Nov 17, 2024

大佬真的出了个摆脱Python环境的dll,牛逼!

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

2 participants