|
-
Jul 9th, 2001, 09:07 AM
#1
Thread Starter
New Member
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
-
Jul 9th, 2001, 09:18 AM
#2
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:
Private Declare Function MyFunc Lib "C:\MyLib.dll" Alias "MyFuncA" (ByVal param As Integer) As Long
-
Jul 9th, 2001, 09:54 AM
#3
Thread Starter
New Member
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
-
Jul 10th, 2001, 03:39 AM
#4
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|