Home Page
Articoli
Tips & Tricks
News
Forum
Archivio Forum
Blogs
Sondaggi
Rss
Video
Utenti
Chi Siamo
Contattaci
Username:
Password:
Login
Registrati ora!
Recupera Password
Home Page
Stanze Forum
App. WinForms / WPF .NET
Dll vb6 e vb.net
mercoledì 19 novembre 2008 - 17.07
Elenco Threads
Stanze Forum
Aggiungi ai Preferiti
Cerca nel forum
albez79
Profilo
| Newbie
21
messaggi | Data Invio:
mer 19 nov 2008 - 17:07
questo è il codice che ho scritto di errori non ce ne sono e non me ne da ma non riesco a leggere il valore
di inpval di ritorno dalla funzione della dll MBTreadcoils!
perchè ?
......
Declare Function MBTReadCoils Lib "MBT.dll" (ByRef hSocket As Integer, ByVal tableType As Byte, ByVal dataStartAddress As Short, ByVal numBits As Short, ByRef pReadBuffer As Integer, ByVal fpReadCompletedCallback As Integer, ByVal callbackContext As Integer) As Integers Long
......
Private Function btnReadCoil(ByVal ADR As Integer, ByVal Bits As Integer) As Byte
Dim inpVal As Byte
inpVal = 0
ret = MBTReadCoils(g_hSocket, _
MODBUSTCP_TABLE_OUTPUT_COIL, _
ADR, _
Bits, _
inpVal, _
0, _
0)
btnReadCoil = inpVal
End Function
Torna su
Stanze Forum
Elenco Threads
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?
Dopo esserti registrato potrai chiedere
aiuto sul nostro
Forum
oppure aiutare gli altri
Consulta le
Stanze
disponibili.
Registrati ora !