Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > it.comp.lang.visual-basic > #19356
| From | Vipers <VipersNOSPAM@libero.it> |
|---|---|
| Newsgroups | it.comp.lang.visual-basic |
| Subject | Importare DLL com |
| Date | 2018-05-03 10:48 +0200 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <pceide$1cm0$1@gioia.aioe.org> (permalink) |
Ciao a tutti,
in un progetto VB.NET avrei bisogno di utilizzare una DLL com.
Per far questo ho cercato di importarla in questo modo
<DllImport("dgilib.dll", EntryPoint:="get_device_serial")>
Public Function Atmel_GetDeviceSerial(ByVal index As Integer, ByRef sn()
As Char) As Integer
End Function
partendo da quello che ho trovato nel file.H allegato alla dll
DECLDIR int get_device_serial(int index, char* sn);
La mia chiamata
Dim sn(20) As Char
Dim result As Integer = Atmel_GetDeviceSerial(0, sn)
Naturalmante mi da eccezione.
Dove sbaglio?
Grazie per eventuali chiarimenti
Sandro
Back to it.comp.lang.visual-basic | Previous | Next | Find similar
Importare DLL com Vipers <VipersNOSPAM@libero.it> - 2018-05-03 10:48 +0200
csiph-web