Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dll problem - help needed
Message
De
05/12/2000 11:09:37
John Baird
Coatesville, Pennsylvanie, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Dll problem - help needed
Divers
Thread ID:
00449385
Message ID:
00449385
Vues:
62
Hi guys:

I hope someone can help me figure this out. I have a sample VB form that uses the following declaration and works flawlessly:

from modDeclare
Public Declare Function OpenClient Lib "imdsi.dll" Alias "Open_Client" (ByVal ServerName As String, ByVal System As Integer) As Long

from frmConnection
If frmConnection.optTestRegion Then
gClientHdl = OpenClient("www.whatever.com", Asc("T"))
End If


The foxpro equivalent:

form.init()
DECLARE LONG OpenClient IN imdsi.dll ALIAS Open_Client STRING lcServerName, INTEGER lnSystem

form.connect()
LPARAMETERS tcAddress, tnMode
LOCAL llRetVal

WITH this
lnServerHandle = OpenClient(tcAddress, tnMode)
IF .nServerHandle > 0
llRetVal = .T.
ENDIF
ENDWITH
RETURN llRetVal

I get an error "Cannot find Entry point OpenClient in the dll". Any ideas would be greatly appreciated.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform