473,396 Members | 1,894 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,396 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 5044
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...

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.