DLL中能不能导出重载函数,怎么做?
解决方案 »
- VC++ TCP/IP通信线程的问题?
- 记录所有的http请求
- 安装vc++6.0时出现的关于虚拟内存的问题
- 求<Programming Microsoft DirectShow for Digital Video and Television>源代码
- 如何限制某个SOCKET发送文件的速度---顶者有分
- 怎么得到一张位图的分辨率信息,比如,我想判断它是否是640*480的?
- help,,,,,help,,,,,,,,,,,,,,,,,,,,,,
- gdi的问题
- 注册表函数问题
- 重新发明轮子?转换非静态成员函数为标准WIN API函数的一种通用方法(II)
- 关于应用程序内部使用键盘钩子
- 请问如何做使在SDK下SEND()发送一个结构体,revc()能够接收结构体?
__declspec(dllexport) void f(int a)
{
//some stuff here
}
__declspec(dllexport) void f(double a )
{
//some stuff here
}
If you export a class it should be more convenient.class __declspec(dllexport) DllExportExample
{
...
void f(int a);
void f(double a);
...
};Once the class is exported properly,you can use
its member functions at ease,good luck :)!
{
//some stuff here
}
__declspec(dllexport) void f(double a )//如果这里是long呢?
{
//some stuff here
}f(123);天知道到底掉用谁呀
我不想用扩展MFC DLL
You can only export one version of the overloaded functions.