有誰知道如何在Visual Basic中創建結構?如何在vb 2008中創建sturucture
例如:
Public SCARD_READERSTATE()
Dim szReader As String 'reader name
Dim pvUserData As Long 'user defined data
Dim dwCurrentState As Long 'current state of reader at time of call
Dim dwEventState As Long 'state of reader after state change
Dim cbAtr As Long 'Number of bytes in the returned ATR
Dim rgbAtr(0 To 35) As Byte 'Atr of inserted card, (extra alignment bytes)
Public Declare Function SCardGetStatusChange Lib "winscard.dll" Alias "SCardGetStatusChangeA" (_
ByVal hContext As Long, _
ByVal dwTimeout As Long, _
ByRef rgReaderStates() As SCARD_READERSTATE, _
ByVal cReaders As Long _
) As Long
我使用Microsoft Visual Basic 2008