473,800 Members | 2,418 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Wizard upgrade of VB 6 MSComm control to VB.net

I used the wizard to upgrade an application from VB 6 to VB.net, the
following warnings appear around the .Input method of the MSCOmm
control
'UPGRADE_WARNIN G: Couldn't resolve default property of object
MSComm1.Input. Click for more:
'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?ke yword="vbup1037 "'

When running the application, the following dialog comes up when a
character is written to the .Output method
"An unhandled exception of type
'System.Runtime .InteropService s.COMException' occurred in
axinterop.mscom mlib.dll

Additional information: Exception from HRESULT: 0x800A017C
(CTL_E_INVALIDP ROPERTYVALUE).
Can anyone help? I've looked at the documentation and can't make sense
of what is causing this problem. Everything I've read indicates that
if VB6 and .Net are both present (which they are) I should be able to
use the old control.

One thing that may be important is the changes made to the VB code:
Output:
VB6 code: BootStrap.MSCom m1.Output = Chr(128)
VB.Net code: BootStrap.DefIn stance.MSComm1. Output = Chr(128)

Input:
VB6 code: Dim Rx() as Byte
Rx = BootStrap.MSCom m1.Input
VB.net code: Dim Rx() as Byte
Rx = BootStrap.DefIn stance.MSComm1. Input

Nov 22 '05 #1
0 1255

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1999
by: Matt | last post by:
Hello All I have SQL Server versions 6.5 and 2000 installed on a Windows 2000 server. I installed 6.5 first, coppied a backup of a database to the server and restored it. I then installed 2000. I am trying to use the upgrade wizzard. On the first screen I keep the default settings, export and import
0
398
by: stacy | last post by:
I used the wizard to upgrade an application from VB 6 to VB.net, the following warnings appear around the .Input method of the MSCOmm control 'UPGRADE_WARNING: Couldn't resolve default property of object MSComm1.Input. Click for more: 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup1037"' When running the application, the following dialog comes up when a character is written to the .Output method "An unhandled...
1
3532
by: Peter Krikelis | last post by:
Hi, I am trying to develope a User Control Library that features MScomm control. I test my user control in a test application. When I run the application I receive the following: An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in axinterop.mscommlib.dll
0
2156
by: morgal | last post by:
That is one reason I quit using MS custom controls, you have to buy the license. In VB 6 they give you a try it license and then you develop a huge application or small one and find out you don't have rights to use the control. You have to contact the manufacturer of the control--MS may not be the manufacturer, in the original VB 6 docs it told you who to contact. Then you must pay them what they are asking, some are a one time fee and...
4
3458
by: AA | last post by:
Hi I am developing an app in which I have used a MSComm object. I have opened the port, performed the transactions, and then closed the port. But when I check in the task mamager, the memory being held by the MSComm is not being released. I am using the SetPortOpen method. Is there any way of releasing this memory explicitly. Regards.
6
6622
by: Barry Martin | last post by:
I am using an activex control mscomm to control a serial port in VB.NET. I place the control on the main form and set its port, baud rate, etc. properties. After creating a code module that needs to access the serial port, I cannot seem to be able to access the mscomm control from within a code module. In VB6 you could use the statement frmMain.Mscomm1.output = "some data string" in the code module but this won't work in VB.NET. Does...
1
2604
by: Barry | last post by:
I am using the mscomm activex control in vb.net. I can add the control to the toolbar which will allow me to drop it onto a form. As long as I am in the code space for that form it works fine. When I try to output some text to the serial port via AxMscomm1.output = "some text" within a code module, the compiler says that AxMscomm1 is not defined. Can anyone tell me how I pass a reference to the mscomm control located on one form from...
0
1729
by: stacy | last post by:
I used the wizard to upgrade an application from VB 6 to VB.net, the following warnings appear around the .Input property of the MSCOmm control 'UPGRADE_WARNING: Couldn't resolve default property of object MSComm1.Input. Click for more: 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup1037"' When running the application, the following dialog comes up when a
1
1767
by: musosdev | last post by:
Hi I've got a project I've just run through the conversion wizard, and it's giving me a few headaches. I've got a user control which has controls referrenced from its calling page (usercontrol1.textbox1.text etc). All worked fine in V2003, but 2005 is giving me a "usercontro1.textbox1 is inaccessible due to it's protection level" error. Obviously, with it now
1
2545
by: bob.ward | last post by:
I attempted to upgrade to SQL Server 2000 from SQL Server 6.5 using the SQL Server Upgrade Wizard and I immediately received the following error message: An unknown error occurred while trying to restart your SQL Server 2000. Please check the server errorlog and try again. I've checked the SQL Server log and all of the logs available in the Event Viewer and I don't see anything remarkable in any of them. Does anyone have any...
0
9551
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10505
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10275
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10033
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7576
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6811
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5606
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.