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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top