P
peter
Probably you might help me regarding this.. I'm new to these Vb.net
language. My question is Does AddressOf is accepted in Vb.net?
in this VbCode: I have this API
===================================
Public Declare Function SetCallbacks Lib "tfm.dll" ( _
ByVal hConn As Long, ByVal pfnGuiCallback As Long, ByVal
pGuiCallbackCtx As Long, ByVal pfnGuiStateCallback As Long, ByVal
pGuiStateCallbackCtx As Long) As Long
===Callback.bas - Module===
Result = SetCallbacks(Connection, 0&, 0&, AddressOf STATE_CALLBACK, 0&
- i have this module Callback.bas a procedure function called
STATE_CALLBACK
=======================================
Function STATE_CALLBACK(ByVal pGuiStateCallbackCtx As Long, ByVal
dwGuiState As Long, ByRef pbyRes As Byte, ByVal dwMsg As Long, ByVal
byProg As Byte, ByVal pSamBuf As Long, ByVal Data As Long) As Long
How will i convert this to vb.net???! I have a module for the
Callback..
what i did was with the same format
======================================
Result = SetCallbacks(Connection, 0, 0, AddressOf
Callback.STATE_CALLBACK, 0)
and the error appeared was "AddressOf expression cannot convertes to
integer because integer is not delegate type" Im getting stucked in
here... I need it badly..
I'll appreciate for helping me
tnx..
language. My question is Does AddressOf is accepted in Vb.net?
in this VbCode: I have this API
===================================
Public Declare Function SetCallbacks Lib "tfm.dll" ( _
ByVal hConn As Long, ByVal pfnGuiCallback As Long, ByVal
pGuiCallbackCtx As Long, ByVal pfnGuiStateCallback As Long, ByVal
pGuiStateCallbackCtx As Long) As Long
===Callback.bas - Module===
Result = SetCallbacks(Connection, 0&, 0&, AddressOf STATE_CALLBACK, 0&
- i have this module Callback.bas a procedure function called
STATE_CALLBACK
=======================================
Function STATE_CALLBACK(ByVal pGuiStateCallbackCtx As Long, ByVal
dwGuiState As Long, ByRef pbyRes As Byte, ByVal dwMsg As Long, ByVal
byProg As Byte, ByVal pSamBuf As Long, ByVal Data As Long) As Long
How will i convert this to vb.net???! I have a module for the
Callback..
what i did was with the same format
======================================
Result = SetCallbacks(Connection, 0, 0, AddressOf
Callback.STATE_CALLBACK, 0)
and the error appeared was "AddressOf expression cannot convertes to
integer because integer is not delegate type" Im getting stucked in
here... I need it badly..
I'll appreciate for helping me
tnx..