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" ()为什么它说找不到入口点?

解决方案 »

  1.   

    用 __stdcall转换 
    __declspec(dllexport) void __stdcall myfun()
    在头文件中不用定义..
    只要在 .def 文件中 
    exports 
      myfun
    就可以了.
      

  2.   

    .h文件:
    #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