VB中的语句
Public Declare Function DlPortReadPortUlong Lib "dlportio.dll" (ByVal Port As Long) As LongPublic Declare Sub DlPortReadPortBufferUchar Lib "dlportio.dll" (ByVal Port As Long, Buffer As Any, ByVal Count As Long)在VC中应该是怎么样的呢?
Public Declare Function DlPortReadPortUlong Lib "dlportio.dll" (ByVal Port As Long) As LongPublic Declare Sub DlPortReadPortBufferUchar Lib "dlportio.dll" (ByVal Port As Long, Buffer As Any, ByVal Count As Long)在VC中应该是怎么样的呢?
没这么复杂的.
typedef long (*PFNDlPortReadPortUlong)(long);