如何创建C ++ DLL API? [英] How to create a C++ DLL API ?

查看:58
本文介绍了如何创建C ++ DLL API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我对此有点紧张..

umm

i想知道如何创建DLL( vcPlayers.dll )包含一些函数,例如

这个函数在dll上:



void register_user(char * name)

{

printf(姓名);

INDEX_NAME = len(姓名);

}




我还有一个在游戏中注入的DLL( vcOnline.dll )( WildShark.exe



i想从DLL中使用该函数( register_user )( vcOnline.dll ),怎么能我这样做?

Hello I''m a little bit nervous about this..
umm
i want to know how i can create a DLL(vcPlayers.dll) that contains some functions for example
this function is on the dll :

void register_user(char *name)
{
printf(name);
INDEX_NAME = len(name);
}


and i have another DLL(vcOnline.dll) that is injected in a game (WildShark.exe)

i want to use that function(register_user) from the DLL(vcOnline.dll), how can i do that?

推荐答案

从DLL导出 [ ^ ]



希望这会有所帮助,

Pablo。
Exporting from a DLL[^]

Hope this helps,
Pablo.

这篇关于如何创建C ++ DLL API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆