Results 1 to 4 of 4

Thread: how to call a dll?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Location
    Anywhere
    Posts
    8

    how to call a dll?

    Hi,

    I tried to call a dll named dialer32.dll to send a phone number to our lucent tk-center.

    Code:
    declare "o:\\wine2\\lucent\\dialer32\\dialer32.dll" "AutoDial: _AutoDial@8" "i=ss";
    call "AutoDial" "MyOwnNumber" "NumberToCall";
    
    Returncode
    negativ: connection error
    positiv:TSAPI-Error z.b. 33=used, =0: ok
    this is some help, i found.
    But VB sez somethiing like: dll entrypoint not found.

    can anybody help me?!

    thx

  2. #2
    Megatron
    Guest
    It looks like you're using the wrong method to call the DLL (also note that unlike C, VB only requires 1 backslash in strings)
    VB Code:
    1. Private Declare Function MyFunc Lib "C:\MyLib.dll" Alias "MyFuncA" (ByVal param As Integer) As Long

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Location
    Anywhere
    Posts
    8
    I know that it is the wrong way, to call the dll... i copied it out of the sourcecode of another programming language... but these are the corrects aliases etc.

    I only wanna know how to write this correctly...

    thx

  4. #4

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Location
    Anywhere
    Posts
    8
    Code:
    Private Declare Function AutoDial Lib "o:\wine2\lucent\dialer32\dialer32.dll" Alias "AutoDial:_AutoDial@8, i=ss" (PIN, Nummer) As Long
    what is wrong at this code????

    thx

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