Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Using VB in VStudio.NET Pro.

 

The app needs to talk through the serial port (COM1).

 

I have added Interop.MSCommlib as a reference (derived from mscomm32.ocx) and have written a class which inherits from MSComm. It works just fine on my XP machine, both in the development environment, and installed.

 

For deployment, I have selected these properties for the mscomm32.ocx file on the target machine: selfReg, application folder, non-permanent. Install and uninstall both work, but the program won't run.

 

I get:

 

System.Runtime.InteropServices.COM Exception 80040112

 

I'm pretty sure it has to do with licensing ActiveX controls, a subject I know nothing about. The Help isn't helpful, since it seems to focus on licensing custom controls, not Microsoft controls.

 

I know I should be using the mscomm32.ocx file registered on the target machine, rather than deploying another copy to the application folder, but I don't know how to do this, and I am especially worried about losing it during an uninstall.

 

Has anyone else run into this problem? Any help would be appreciated. Thanks.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...