-
Dec 1st, 1999, 10:28 PM
#1
Thread Starter
Member
I've tried following some of the examples referenced by the link on the VB World Home Page and am having trouble. I keep getting Error 453 'Can't find DLL entry point'. I've built a Win32 DLL in VC++ like this:
Header File
//Numbers.h - Header file for math functions
#define DllExport __declspec( dllexport )
//Return integer
DllExport int ReturnInt(void);
Source File
//Numbers.cpp - function definitions
#include "Numbers.h"
DllExport int ReturnInt(void)
{
return 10;
}
VB Test Project
modDLL
Option Explicit
'Visual C++ Win 32 DLL
Public Declare Function ReturnInt Lib _
"C:\code\Vcpp\My Cpp Projects\Win32ForVB\Debug\Win32ForVB.dll" () As Long
Form1
Option Explicit
Private Sub cmdGetInt_Click()
txtInt = ReturnInt
End Sub
Is there something wrong with the way I've built or referenced the DLL?
[This message has been edited by mcleran (edited 12-02-1999).]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|