473,387 Members | 1,700 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,387 software developers and data experts.

Porting from DOS to W32 - COM port

I need to port an application from DOS to W32.

The application wrote and read the hardware directly.

I know I need to use W32 SDK to access COM ports (USB Devices),
obviously the Windows way.

Several questions:

What should I download (of course I have the compiler - C++ Builder 6)?
I suppose I don't have to download the comllete SDK.

What is the relation of these matters with Net Framework?

Thanks
H. Martins

Jun 19 '06 #1
3 2779
"Martins" <HJ********@gmail.com> wrote in message
news:11**********************@g10g2000cwb.googlegr oups.com...
I need to port an application from DOS to W32.

The application wrote and read the hardware directly.

I know I need to use W32 SDK to access COM ports (USB Devices),
obviously the Windows way.

Several questions:

What should I download (of course I have the compiler - C++ Builder 6)?
I suppose I don't have to download the comllete SDK.

What is the relation of these matters with Net Framework?

Thanks
H. Martins


Definately a windows question. Try in one of the microsoft groups. I
normally suggest microsoft.public.vc.language
Jun 19 '06 #2
Martins wrote:
I need to port an application from DOS to W32.

Then ask on a windows group, this is OT here

--
Ian Collins.
Jun 19 '06 #3

"Martins" <HJ********@gmail.com> wrote in message
news:11**********************@g10g2000cwb.googlegr oups.com...
What should I download (of course I have the compiler - C++ Builder 6)?
I suppose I don't have to download the comllete SDK.
If you have Borland C++ Builder 6, you do also have the platform SDK.
Of course not a updated SDK but it dont matter when its only COM port
communications.

HANDLE ComPort = CreateFile("COM4", GENERIC_READ | GENERIC_WRITE, 0, 0,
OPEN_EXISTING, 0, 0); // Open COM port 4

You can then use ReadFile() and WriteFile() to send data on the port.
There are also GetCommState(), SetCommState(), GetCommTimeouts(),
SetCommTimeouts(), possible more cant remember them all. You can look them
up at msdn, and msdn has sample code as well.
What is the relation of these matters with Net Framework?


Borland C++ Builder has absolutely nothing to do with .NET framework.
However, you can use .NET from unmanaged C++, or from VB6 for that matter.
If you're working in .NET im sure there is a wrapper/class that makes it
very easy to use a serial port/usb/whatever.

You can get more help in comp.os.ms-windows.programmer.win32 and i guess you
can finde some groups that are more related to .NET programming as well.

//eric
Jun 19 '06 #4

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

Similar topics

1
by: Gordan | last post by:
Hi, I have a site written in PHP with MS SQL Server 2000 as the db backend. When the site was made there was no need for advanced banner rotation so a 10 line script was written and it served...
5
by: Edward | last post by:
Years ago I wrote an app in VB 4.0 16 bit. The program is still selling, but the clients want to upgrade to 32 bit. Should I go for VB 4.0 32 bit, or version 5, or version 6? There is only a...
5
by: David | last post by:
Hi everyone, I have a ActiveX EXE component written in VB6. This ActiveX EXE exposes various public methods that can be called by several other independent Windows EXE applications (also written...
5
by: Ryan Liu | last post by:
Hi All, Now I am porting CC to GCC and I have some problems. Would you mind tell me some document which have some description how to port CC to GCC ?? Thank you very much. Ryan
4
by: golu | last post by:
Has any body done the porting from oracle to sql server, what were the issues in porting the data bases? Also suggest some resources which can be helpful in the porting project TIA Golu
1
by: Robin Charisse | last post by:
Hi, I have a VC++6 project that uses msxml to parse XML documents. I have been asked to port this to a .NET project but from the research I've done so far it looks as though the only way to do...
1
by: Sunanda | last post by:
Hi, I am a newbie to .Net. I have an application in running in linux, a set of .c and .h files. I also have a makefile in linux to create the executable. I want to port this to windows...
5
by: rockstar | last post by:
Hi all, I'm one of those wiz kids who knows a bit about all the main programming languages (C, C++, Java, PHP, Python, etc...) but none of them super good. I'm actually working as a software...
4
by: Ian | last post by:
I would like to hear from others who have considered and/or ported code from traditional C++ to C++/CLI. The class library I am considering porting to C++/CLI was written in traditional C++ with...
34
by: subramanian100in | last post by:
Is there any difference between porting and migrating. Kindly explain
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: 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?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.