473,659 Members | 2,872 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB.net code generated by Wizard from VB 6 causing MSComm problems

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_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 by the Wizard to
the VB code:
For the Output property code:
VB6 code: BootStrap.MSCom m1.Output = Chr(128)
VB.Net code: BootStrap.DefIn stance.MSComm1. Output = Chr(128)
For the Input property code:
VB6 code: Dim Rx() as Byte
Rx = BootStrap.MSCom m1.Input
VB.net code: Dim Rx() as Byte
Rx = BootStrap.DefIn stance.MSComm1. Input

I have tried assigning the value to be output to a variable, but
nothing changed.

I also should note that the Output Value in the Watch window is
"<error: an exception of type:
{System.Runtime .InteropService s.COMException} occurred>" even before
the runtime exception is displayed as I step through the code.

AND... The .input property does not generate a runtime error, but of
course the input buffer is empty.

Nov 21 '05 #1
0 1721

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

Similar topics

1
4924
by: jinoy | last post by:
how can i detect an incoming caller's telephone keystroke using modem, using mscomm or other? how can i detect an outgoing call using mscomm? how can i get a caller id using mscomm?
1
2854
by: John Gill | last post by:
We are trying to import data from a sql 7 machine into sql 2000 using import wizard in DTS. One of the tables has in excess of 80 million rows. The first time we did this it worked fine no problems. However we had to recreate the database, and it has not worked since. The error message is reported as ' the log file for 'dbname' is full'. This happens regardless of the fact that there is 100GB free on disk, and that the database data...
2
11550
by: db2group88 | last post by:
i would like to know when i create a table with identity column, should i used generated by default or generated as always. since when i create this table, i might copy some data from another table with identity column also, (so if i use generated as always, i can't do insert into new_tables select * from old_table), then i might also insert new data into this new table (if i do generated by default, then the new table could have the same...
9
1979
by: jimfortune | last post by:
I'm starting to program an Access database to interact with a hardware RNG (Random Number Generator) made by Orion connected to a COM port. I plan to do a quickie version using the MSComm OCX control and then a version using the CreateFile and ReadFile API functions. Has anyone already done something like this so that I don't have to start from scratch? Merci à l'avance, James A. Fortune
0
2148
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...
1
1509
by: David | last post by:
Hi, I am trying to a field in a Access database, and I have used the code generated by the Web Matrix UPDATE code wizard. When the update function is called, no errors are generated, but no update to the database happens. (rows affected is 0) I have copied the SQL code into an Access query, and it works fine.
2
278
by: Larry Woods | last post by:
Has anyone noticed that the VS Dataform wizard doesn't gen correctly DISPLAYED results if you have an IDENTITY key defined for your table (normal stuff, IMHO)? If your dataset is empty the first "Add" will display TWO records on the resulting form. This is because they are creating a 'temporary' dataset with the changes; i.e., new record in this case, and then they MERGE it into the existing dataset, which has a new row defined by the...
6
3669
by: Bob Alston | last post by:
I am looking for Access reporting add-in that would be easy to use by end users. My key focus is on selection criteria. I am very happy with the Access report writer capabilities. As far as development of reports, it is certainly fine in my book. But for end-users, with little experience or training, it would be nice to have an easy way to handle various selection criteria, perhaps with relatively stock reports. I see easy to use by...
0
1573
by: swati2106 | last post by:
HI, I have develop a apllication , To store the GPS data in database, for that , to read GPS data I have used the Mscomm port, In which I create the object of class RS232 n open that port, n store the data in to one string type variable , msStr but some time it store the Mscomminput, n some times it stores nothing, but in mscomm.input will have a GPS data, why it is So?
0
8427
marktang
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8746
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...
1
8525
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8627
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...
0
7356
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6179
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
4335
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1975
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1737
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.