M
Michael Turner
Hi guys I am having the following problem upgrading a vb6 application, I
have click the link as it suggested and I have search the net only to become
even more confussed! HELP!!!
Error: - 'AddressOf' expression cannot be converted to 'Integer' because
'Integer' is not a delegate type.
Code
Declare Function lineInitializeEx Lib "tapi32.dll" Alias "lineInitializeExA"
(ByRef lphLineApp As Integer, ByVal hInstance As Integer, ByVal lpfnCallback
As Integer, ByVal lpszFriendlyAppName As String, ByRef lpdwNumDevs As
Integer, ByRef lpdwAPIVersion As Integer, ByRef lpLineInitializeExParams As
LINEINITIALIZEEXPARAMS) As Integer
'UPGRADE_WARNING: Add a delegate for AddressOf mTAPIvb.LineCallbackProc
Click for more:
'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup1048"'
rc = lineInitializeEx(m_hLineApp, VB6.GetHInstance.ToInt32, AddressOf
mTAPIvb.LineCallbackProc,
System.Reflection.Assembly.GetExecutingAssembly.GetName.Name, m_numLines,
m_HiAPI, lip)
have click the link as it suggested and I have search the net only to become
even more confussed! HELP!!!
Error: - 'AddressOf' expression cannot be converted to 'Integer' because
'Integer' is not a delegate type.
Code
Declare Function lineInitializeEx Lib "tapi32.dll" Alias "lineInitializeExA"
(ByRef lphLineApp As Integer, ByVal hInstance As Integer, ByVal lpfnCallback
As Integer, ByVal lpszFriendlyAppName As String, ByRef lpdwNumDevs As
Integer, ByRef lpdwAPIVersion As Integer, ByRef lpLineInitializeExParams As
LINEINITIALIZEEXPARAMS) As Integer
'UPGRADE_WARNING: Add a delegate for AddressOf mTAPIvb.LineCallbackProc
Click for more:
'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup1048"'
rc = lineInitializeEx(m_hLineApp, VB6.GetHInstance.ToInt32, AddressOf
mTAPIvb.LineCallbackProc,
System.Reflection.Assembly.GetExecutingAssembly.GetName.Name, m_numLines,
m_HiAPI, lip)