S
stacy
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
character is written to the .Output method
"An unhandled exception of type
'System.Runtime.InteropServices.COMException' occurred in
axinterop.mscommlib.dll
Additional information: Exception from HRESULT: 0x800A017C
(CTL_E_INVALIDPROPERTYVALUE).
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.MSComm1.Output = Chr(128)
VB.Net code: BootStrap.DefInstance.MSComm1.Output = Chr(128)
For the Input property code:
VB6 code: Dim Rx() as Byte
Rx = BootStrap.MSComm1.Input
VB.net code: Dim Rx() as Byte
Rx = BootStrap.DefInstance.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.InteropServices.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.
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
character is written to the .Output method
"An unhandled exception of type
'System.Runtime.InteropServices.COMException' occurred in
axinterop.mscommlib.dll
Additional information: Exception from HRESULT: 0x800A017C
(CTL_E_INVALIDPROPERTYVALUE).
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.MSComm1.Output = Chr(128)
VB.Net code: BootStrap.DefInstance.MSComm1.Output = Chr(128)
For the Input property code:
VB6 code: Dim Rx() as Byte
Rx = BootStrap.MSComm1.Input
VB.net code: Dim Rx() as Byte
Rx = BootStrap.DefInstance.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.InteropServices.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.