API Call

  • Thread starter Thread starter DS
  • Start date Start date
D

DS

I want to delclare this API to use the dll file. How would I do this?
Thanks
DS

Public Declare Function clcInit Lib "CLCAPIW2.dll" (ByVal ClientName As
String, ByVal ServerName As String As Integer)
 
Your declaration looks as though it's got the closing parenthesis in the
wrong place.

It should probably be

Public Declare Function clcInit Lib "CLCAPIW2.dll"
(ByVal ClientName As String,
ByVal ServerName As String) As Integer
 
You do realize, I hope, that the declaration was intended to be a single
line of text.

With line continuation characters, it would be

Public Declare Function clcInit Lib "CLCAPIW2.dll" _
(ByVal ClientName As String, _
ByVal ServerName As String) As Integer

Where have you placed the dll?
 
Back
Top