473,385 Members | 1,402 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

MSCom32.ocx

Hi,

I am trying to use the MSComm32.ocx control in my .NET class library for
serial communcation to a cash register.

After adding the reference to the control, I am able to add the namespace to
my project, define the MSCommClass variable and initialisation code.
Everything compiles fines, with no errors.

However, I get a "System.IO.FileNotFoundException" at runtime when the
initialisation code is executed.
============
using MSCommLib;

public class RS232
{
private MSCommClass commsLib = null;

private void Initialise()
{
commsLib = new MSCommClass();
}
}
============

I have no idea why or what it's not finding.
Any ideas would be much appreciated.

Tazz
-------------------------------------
Nov 2 '05 #1
2 5043
Hi,
Did you check out the POS library released by MS?

"Tazz" wrote:
Hi,

I am trying to use the MSComm32.ocx control in my .NET class library for
serial communcation to a cash register.

After adding the reference to the control, I am able to add the namespace to
my project, define the MSCommClass variable and initialisation code.
Everything compiles fines, with no errors.

However, I get a "System.IO.FileNotFoundException" at runtime when the
initialisation code is executed.
============
using MSCommLib;

public class RS232
{
private MSCommClass commsLib = null;

private void Initialise()
{
commsLib = new MSCommClass();
}
}
============

I have no idea why or what it's not finding.
Any ideas would be much appreciated.

Tazz
-------------------------------------

Nov 2 '05 #2
Hhhmmn, they do POS now?

Cool, thanks for letting me know, gonna steal of a couple of minutes quickly
to check it out!
(Damn, I need to make more TIME for staying up to date with what's out
there...)

Chou
Tazz
--------
"Chris" wrote:
Hi,
Did you check out the POS library released by MS?

"Tazz" wrote:
Hi,

I am trying to use the MSComm32.ocx control in my .NET class library for
serial communcation to a cash register.

After adding the reference to the control, I am able to add the namespace to
my project, define the MSCommClass variable and initialisation code.
Everything compiles fines, with no errors.

However, I get a "System.IO.FileNotFoundException" at runtime when the
initialisation code is executed.
============
using MSCommLib;

public class RS232
{
private MSCommClass commsLib = null;

private void Initialise()
{
commsLib = new MSCommClass();
}
}
============

I have no idea why or what it's not finding.
Any ideas would be much appreciated.

Tazz
-------------------------------------

Nov 3 '05 #3

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

Similar topics

2
by: Tazz | last post by:
Hi, I am trying to use the MSComm32.ocx control in my .NET class library for serial communcation to a cash register. After adding the reference to the control, I am able to add the namespace...
12
by: =?iso-8859-1?q?R=E9my_Sanchez?= | last post by:
Hello, I'm trying to use MSCOMM32.OCX, but I got an error "Fatal error: Uncaught exception 'com_exception' wih message 'Failed to create COM object 'MSComm32.OCX' : Incorrect syntax' The OCX...
5
by: Tym | last post by:
Not sure this is the right group - but here goes. I kinda expect Dick Grier to jump in on this one ;-) I've got a windows app in VB.Net 2005 which sends and receives text messages via a USM...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
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,...
0
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$) { } ...
0
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.