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.Ge tName.Name, m_numLines,
m_HiAPI, lip) 6 3976
Hi, http://msdn.microsoft.com/library/de...l/vbup1048.asp
Ken
---------------------
"Michael Turner" <fi*****@m-turner.co.uk> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
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.Ge tName.Name, m_numLines,
m_HiAPI, lip)
Hi, http://msdn.microsoft.com/library/de...l/vbup1048.asp
Ken
---------------------
"Michael Turner" <fi*****@m-turner.co.uk> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
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.Ge tName.Name, m_numLines,
m_HiAPI, lip)
Hi Ken
Thanks I have already looked at this article and it has confused me even
more is there any more advice that I can be given?
Thanks,
Mike.
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:OQ**************@TK2MSFTNGP12.phx.gbl... Hi,
http://msdn.microsoft.com/library/de...l/vbup1048.asp Ken --------------------- "Michael Turner" <fi*****@m-turner.co.uk> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... 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.Ge tName.Name, m_numLines, m_HiAPI, lip)
Hi Ken
Thanks I have already looked at this article and it has confused me even
more is there any more advice that I can be given?
Thanks,
Mike.
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:OQ**************@TK2MSFTNGP12.phx.gbl... Hi,
http://msdn.microsoft.com/library/de...l/vbup1048.asp Ken --------------------- "Michael Turner" <fi*****@m-turner.co.uk> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... 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.Ge tName.Name, m_numLines, m_HiAPI, lip)
You need to define a delegate for the Callback procedure lineCallbackProc.
Here's how your declaration would look like:
Public Delegate Function lineCallbackProc( _
ByVal dwDevice As Integer,
ByVal dwMsg As Integer, _
ByVal dwCallbackInst As Integer, _
ByVal dwParam1 As Integer,
ByVal dwParam2 As Integer, _
ByVal dwParam3 As Integer) As Integer
Declare Function lineInitializeEx Lib "tapi32.dll" _
Alias "lineInitializeExA" (ByRef lphLineApp As Integer, _
ByVal hInstance As Integer, _
ByVal lpfnCallback As lineCallbackProc, _
ByVal lpszFriendlyAppName As String, _
ByRef lpdwNumDevs As Integer, _
ByRef lpdwAPIVersion As Integer, _
ByRef lpLineInitializeExParams As LINEINITIALIZEEXPARAMS) _
As Integer
hope that helps..
Imran.
"Michael Turner" <fi*****@m-turner.co.uk> wrote in message
news:eA**************@TK2MSFTNGP09.phx.gbl... Hi Ken
Thanks I have already looked at this article and it has confused me even more is there any more advice that I can be given?
Thanks, Mike.
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message news:OQ**************@TK2MSFTNGP12.phx.gbl... Hi,
http://msdn.microsoft.com/library/de...l/vbup1048.asp Ken --------------------- "Michael Turner" <fi*****@m-turner.co.uk> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... 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.Ge tName.Name,
m_numLines, m_HiAPI, lip)
You need to define a delegate for the Callback procedure lineCallbackProc.
Here's how your declaration would look like:
Public Delegate Function lineCallbackProc( _
ByVal dwDevice As Integer,
ByVal dwMsg As Integer, _
ByVal dwCallbackInst As Integer, _
ByVal dwParam1 As Integer,
ByVal dwParam2 As Integer, _
ByVal dwParam3 As Integer) As Integer
Declare Function lineInitializeEx Lib "tapi32.dll" _
Alias "lineInitializeExA" (ByRef lphLineApp As Integer, _
ByVal hInstance As Integer, _
ByVal lpfnCallback As lineCallbackProc, _
ByVal lpszFriendlyAppName As String, _
ByRef lpdwNumDevs As Integer, _
ByRef lpdwAPIVersion As Integer, _
ByRef lpLineInitializeExParams As LINEINITIALIZEEXPARAMS) _
As Integer
hope that helps..
Imran.
"Michael Turner" <fi*****@m-turner.co.uk> wrote in message
news:eA**************@TK2MSFTNGP09.phx.gbl... Hi Ken
Thanks I have already looked at this article and it has confused me even more is there any more advice that I can be given?
Thanks, Mike.
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message news:OQ**************@TK2MSFTNGP12.phx.gbl... Hi,
http://msdn.microsoft.com/library/de...l/vbup1048.asp Ken --------------------- "Michael Turner" <fi*****@m-turner.co.uk> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... 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.Ge tName.Name,
m_numLines, m_HiAPI, lip)
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: frank brown |
last post by:
When I run the vstudio.net upgrade wizard on a VB6 project, it bombs with
the following error:
"Upgrade failed: Exception occurred: The referenced component ListView is
missing a design time...
|
by: Ryan Cowan |
last post by:
I would like to upgrade from XP Home to Professional. However, I get the
following error message: "Setup cannot continue because the version of
Windows on your computer is newer than the version...
|
by: Abdul-Wahid Paterson |
last post by:
Hi,
I have had a site working for the last 2 years and have had no problems
until at the weekend I replace my database server with a newer one. The
database migration went like a dream and I had...
|
by: Joseph Geretz |
last post by:
I recently upgraded my server to Windows 2003. The first thing I noticed is
that my sample WebService pages no longer worked. The Invoke test button is
missing. This is addresed by the following KB...
|
by: George Durzi |
last post by:
We recently upgraded to Exchange2K3/W2K3 from Exchange2K/W2K, and some of my
c# code that I used to access users' contacts using WebDAV has stopped
working. I'm getting a 401 unauthorized error....
|
by: Linda |
last post by:
I create program with VB programming and now i want that
program run at VB.NET. So i open the vb project from
VB.Net, while i upgrade the program ,i found Error :
VB Upgrade wizard error...
|
by: Ajith Menon |
last post by:
I am working on a project "ABC" which needs to be upgraded from .NET
framework 1.1.
We are thinking about upgrading it to .NET framework 2.0. The reason
for this is that we have some unmanaged...
|
by: KR |
last post by:
Hi,
We are running a test upgrade form sql 2000 standard edition to sql
2005 developer edition. Followed through all the steps and specified
the account(SA priveleges and currently used by the...
|
by: DKn |
last post by:
Hi all,
I am trying to do Software upgradation using Win32_Product -Upgrade method in C#.Net.
Here is the code.
using System;
using System.Management;
using System.Windows.Forms;
|
by: Mark D Powell |
last post by:
I attempted to upgrade my SQL Server 2000 Enterprise Edition (32 bit)
to SQL Severer 2005 EE 32 bit and while the prereqs passed the
installer will not let me select the version 8.00.x (2000 SP4)...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |