|
|||||||
| Cerca | Messaggi odierni | Segna come letti |
| Forum microsoft.public.it.dotnet.vc++ Newsgroup microsoft.public.it.dotnet.vc++ |
![]() |
|
|
Strumenti della discussione | Modalità di visualizzazione |
|
#1
|
|||
|
|||
|
Buongiorno a tutti, avrei bisogno di chiamare una funzione che mi
restituisce valori di una memoria esterna. La funzione da richiamare è la seguente: // read from a connected socket LONG WINAPI MBTReadRegisters( IN HANDLE hSocket, // handle of the connected socket IN BYTE tableType, // Modbus/TCP Tabellen Typ (MODBUSTCP_TABLE_xxx) // (here: input register or output register IN WORD dataStartAddress, // start address of the registers to be read IN WORD numWords, // number of the registers to be read OUT LPBYTE pReadBuffer, // memory section from which the data are read // (NULL at asynchronous call) OPTIONAL IN MBTReadCompleted fpReadCompletedCallback = NULL, // C-callback function, called after termination // of asynchronous reading (NULL at synchronous // call) OPTIONAL IN DWORD callbackContext = 0 // context, handed over to the asynchronous // (callback function (0 at synchronous call) ); Il problema che ho è quello di passare il primo parametro "IN HANDLE hSocket" dato che non conosco bene cosa sia "HANDLE". Nel progetto ho dichiarato una variabile "SOCKET ConnectSocket" ma non essendo di tipo HANDLE, non riesco a chiamare la funzione. Potete consigliarmi la soluzione a questo problema? Grazie |
|
|
||||
|
||||
|
|
![]() |
| Tags: |
| Strumenti della discussione | |
| Modalità di visualizzazione | |
|
|
Discussioni simili
|
||||
| Discussione | Ha iniziato questa discussione | Forum | Repliche | Ultimo messaggio |
| Can't handle... | Bart | Forum microsoft.public.it.dotnet.csharp | 0 | 03-27-2006 09:13 AM |
| Handle applicazione | =?Utf-8?B?Q3Jlc2Nlbnpv?= | Forum microsoft.public.it.dotnet.csharp | 1 | 12-23-2005 01:05 PM |
| Socket.Send e Socket.Receive | Max | Forum microsoft.public.it.dotnet.vb | 6 | 06-23-2005 02:30 PM |
| Handle | Centauro | Forum microsoft.public.it.dotnet.vb | 2 | 04-05-2005 02:31 PM |
| Handle non valido | UGI 308 | Forum microsoft.public.it.exchange | 3 | 02-16-2004 12:36 PM |