Results 1 to 2 of 2

Thread: build and work with a dll

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2005
    Posts
    93

    build and work with a dll

    build and work with a dll
    hi,
    i want creat and use a dll in vb6

    so i created this in vb6 in a Activex Dll Project

    Public Function DLLMain(ByVal A As Long, ByVal B As Long, ByVal c As Long) As Long
    DLLMain = 1
    End Function

    and in a standard exe i have this:

    Private Declare Function teste Lib "testDLL.DLL" (ByVal A As Double, ByVal B As Double) As Double

    but when i run the project they result this error:

    can´t find dll entry point teste in testedll.dll
    why this dont work?

    thanks for the help

  2. #2
    Fanatic Member
    Join Date
    Oct 2004
    Posts
    751

    Re: build and work with a dll

    Well, you would need a...(in the DLL)
    VB Code:
    1. Public Function teste(ByVal A As Long, ByVal B As Long, ByVal c As Long) As Long
    2. 'your code here
    3. End Function
    4.  
    5. 'In your program...
    6. Private Declare Function teste Lib "testDLL.DLL" (ByVal A As Long, ByVal B As Long, ByVal c As Long) As Long

    DLLMain is a C/C++ thing no?....Yup.

    Anyways check out this thread: http://www.vbforums.com/showthread.php?t=408511
    My Projects: [ Instant Messagener Client/Server ] [ VBPictochat ]

    My Sites:
    [ Datanethost ]
    [ Helpdesk ]

    Remember if my post was helpful then Rate This Post.

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