Results 1 to 4 of 4

Thread: Help!!!!!

Threaded View

  1. #1

    Thread Starter
    Lively Member markmyb's Avatar
    Join Date
    Nov 2001
    Location
    Alberton - South Africa
    Posts
    108

    Exclamation 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
  •  



Click Here to Expand Forum to Full Width