[英]helink dll to executable
How can I link the .dll file to an executable? 如何将.dll文件链接到可执行文件?
I do not have the source for the dll nor executable. 我没有dll或可执行文件的源代码。 The two files operate on a 64-bit system.
这两个文件在64位系统上运行。
When the executable is ported from another system, I get "The application failed to initialize properly (0xc0150002). Click OK to Terminate the program. 从另一个系统移植可执行文件时,出现“应用程序无法正确初始化(0xc0150002)。单击“确定”以终止程序。
Here's a list of the files 这是文件列表
L2Server requires l2serverx64-dll.dll to execute. L2Server需要l2serverx64-dll.dll才能执行。 What i'm trying to do is to link Sabotage64.dll with L2Server.exe I used CFF Explorer as a rebuilder to no luck :(
我想做的是将Sabotage64.dll与L2Server.exe链接起来,而我使用CFF Explorer作为重建器则没有运气:(
You can't. 你不能
To link a .dll to an executable, you need to have a list of functions that .dll provides (that can be reverse-engineered, but is very difficult to do) and you need to have executable that will call those functions. 要将.dll链接到可执行文件,您需要具有.dll提供的功能列表(可以进行反向工程,但是很难做到),并且需要具有可调用这些功能的可执行文件。 You call them by making them external (you didn't specify language you use, so can't help you there).
您可以通过将它们设置为外部名称来调用它们(您未指定使用的语言,因此无法为您提供帮助)。 After that, you place the .dll in same directory as executable or somewhere where executable will look for it.
之后,将.dll放置在与可执行文件相同的目录中,或将在可执行文件寻找它的位置。
If you have some specific problem, tell us, there might be a way to help but at the moment we have too little information. 如果您有特定的问题,请告诉我们,也许有一种方法可以帮助您,但目前我们掌握的信息太少。
Not sure what you're trying to do, but the error code you're getting usually implies that the computer you're trying to run l2server on doesn't have the appropriate version of the Visual C++ runtime installed. 不确定要执行的操作,但是通常会收到错误代码,这意味着您尝试在其上运行l2server的计算机没有安装适当版本的Visual C ++运行时。
Google "Visual C++ xxxx redist x64", where xxxx is the version of Visual Studio that was used to compile the code, and install that on the machine you're trying to run l2server on. Google“ Visual C ++ xxxx redist x64”,其中xxxx是用于编译代码的Visual Studio版本,并将其安装在您要在其上运行l2server的计算机上。
Does that fix your problem? 这样可以解决您的问题吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.