dcsimg
Results 1 to 2 of 2

Thread: CDECL Calling Conventions in VB6

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2020
    Posts
    405

    CDECL Calling Conventions in VB6

    i'm forget:
    write a new function like dll api(sum)
    Code:
    'Public Declare Function sqlite_open Lib "SQLite" (ByVal pwsFileName As String, ByRef Hdb As Long) As Long ' PtrDb
    function  sqlite_open(ByVal pwsFileName As String, ByRef Hdb As Long) As Long
    function sum(byval a as lnog,byval b as long) as long
    msgbox "aaaa"
    end function
    
    sub BindCdeclToFunction(cdeclDLL,FunName,NewAdd as long)
    'put asm or api to do this
    end sub
    
    test:
    call BindCdeclToFunction("sqlite3.dll","sqlite_open",addressof sqlite_open)

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2020
    Posts
    405

    Re: CDECL calling convention in VB 6.0

    I found new way,but my code is lost.
    change cdecl api to vb6 function with asm code.
    Last edited by xiaoyao; May 19th, 2020 at 08:55 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width