VC DLL 申明
DllExport void WINAPI InstallLaunchEv();
class CLaunchDLLApp : public CWinApp
{
public:
CLaunchDLLApp();// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CLaunchDLLApp)
//}}AFX_VIRTUAL //{{AFX_MSG(CLaunchDLLApp)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
///////////////////////////////////////////////////////////////////////////////{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.#endif // !defined(AFX_LAUNCHDLL_H__D6D90601_7B2C_4B7A_9CC3_E9A376A2EF88__INCLUDED_)VB引用 :
Private Declare Function InstallLaunchEv Lib "E:\VBPro\LaunchDLL.dll" ()为什么它说找不到入口点?
DllExport void WINAPI InstallLaunchEv();
class CLaunchDLLApp : public CWinApp
{
public:
CLaunchDLLApp();// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CLaunchDLLApp)
//}}AFX_VIRTUAL //{{AFX_MSG(CLaunchDLLApp)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
///////////////////////////////////////////////////////////////////////////////{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.#endif // !defined(AFX_LAUNCHDLL_H__D6D90601_7B2C_4B7A_9CC3_E9A376A2EF88__INCLUDED_)VB引用 :
Private Declare Function InstallLaunchEv Lib "E:\VBPro\LaunchDLL.dll" ()为什么它说找不到入口点?
解决方案 »
- 我用VB做了一个系统临时文件清理工具,在朋友WIN7上运行出错,大家帮看看!
- VB“大牛”
- 很急,请教!为什么我连接SQLSERVER时,有些机器能成功,有些要先访问服务器输入登陆密码后才行!
- 谢谢大哥们~再来耐心的看看!:)
- 使用MSComm控件,发送完数据,读取时为空,这该如何处理呢?
- CNN:微软总裁比尔·盖茨在洛山矶被暗杀死亡?? 不会吧。。163.com都报了??
- 有人有做潜艇大战之类VB游戏的详细教程吗?
- 请问,如何修改显示器的刷新率呢?
- 如何学好VB,学好API函数重要吗?
- shell函数调用dos命令时,怎么样才能知道这个dos命令正确执行
- 请问这是什么问题呀!!急,在线等候!!!各位仁兄慈姐亲弟好妹up一把!!
- 2K里面写的程序在98中不兼容,怎么解决呀?急!急!
__declspec(dllexport) void __stdcall myfun()
在头文件中不用定义..
只要在 .def 文件中
exports
myfun
就可以了.
#ifdef __cplusplus
extern"C"
{
#endifint __stdcall IdeaTest(unsigned char c);int __stdcall IdeaTest1(unsigned char *s,unsigned char *d);
#ifdef __cplusplus
}
#endif.cpp文件:
#ifdef __cplusplus
extern"C"
{
#endifint __stdcall IdeaTest(unsigned char c)
{
...
}int __stdcall IdeaTest1(unsigned char *s,unsigned char *d)
{
...
}#ifdef __cplusplus
}
#endif.def文件:
EXPORTS
IdeaTest
IdeaTest1