|
-
Apr 9th, 2002, 05:19 AM
#1
Thread Starter
Lively Member
Help!!!!!
I need to compile a dll for a vb app. what project type and complie options must I use!!!
Using Visual C++
the following header has being included:
#define CEEPROGS
extern "C" // need for 'C' & VB progs
{
#ifdef CEEPROGS
__declspec(dllexport) int CVDDLL_Main(char *Src,int Srclen,char *DestName,char *ErrorLog);
#define OURCALLING __declspec(dllexport)
#else
int APIENTRY CVDDLL_Main(char *Src,int Srclen,char *DestName,char *ErrorLog);
#define OURCALLING APIENTRY
#endif
}
the vb programmer has defined it as:
Public Declare Function CVDDLL_Main Lib "cvddllmain.dll" (ByVal sFile As String, _
ByVal iLen As Integer, _
ByVal sFileDesc As String, _
ByVal sErrorLog As String) As Integer
but it keeps give bad dll calling convention error.
Last edited by markmyb; Apr 9th, 2002 at 05:24 AM.
Confusios say "Man who run in front of car get tired."
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
|