View Full Version : Communicating with serial ports in xp.
dovaka
11-29-2007, 03:17 AM
I've googled my life away the past month. I'm putting this out here because I think if anyone will know, KC will or someone here would. Can someone point me in the right direction as far as communicating with the serial port on XP? I'll learn another language if you don't know a library for c++. Just a couple of dropped, "google 'xyz'" would do me a world of good. Just gotta get my nose pointed north. Thank ya'll. SOOO MUCH. I know it's terribly off topic but ya'll really are some of the smartest people I could think of to ask.
I've googled my life away the past month. I'm putting this out here because I think if anyone will know, KC will or someone here would. Can someone point me in the right direction as far as communicating with the serial port on XP? I'll learn another language if you don't know a library for c++. Just a couple of dropped, "google 'xyz'" would do me a world of good. Just gotta get my nose pointed north. Thank ya'll. SOOO MUCH. I know it's terribly off topic but ya'll really are some of the smartest people I could think of to ask.
Direct port access is forbiden in XP due to the Hardware Abstraction Layer (HAL). There are 3rd party software vendors that provide software to do this, but it can be pricey. I've done some parallel port programming in XP, and actually got it to work, using a FREE 3rd party program (My point is, you'll need third party software in a format as follows):
================================================== ======================
WIN32 APPLICATION : parport Project Overview
================================================== ======================
AppWizard has created this parport application for you.
This file contains a summary of what you will find in each of the files that
make up your parport application.
parport.vcproj
This is the main project file for VC++ projects generated using an Application Wizard.
It contains information about the version of Visual C++ that generated the file, and
information about the platforms, configurations, and project features selected with the
Application Wizard.
parport.cpp
This is the main application source file.
/////////////////////////////////////////////////////////////////////////////
AppWizard has created the following resources:
parport.rc
This is a listing of all of the Microsoft Windows resources that the
program uses. It includes the icons, bitmaps, and cursors that are stored
in the RES subdirectory. This file can be directly edited in Microsoft
Visual C++.
Resource.h
This is the standard header file, which defines new resource IDs.
Microsoft Visual C++ reads and updates this file.
parport.ico
This is an icon file, which is used as the application's icon (32x32).
This icon is included by the main resource file parport.rc.
small.ico
This is an icon file, which contains a smaller version (16x16)
of the application's icon. This icon is included by the main resource
file parport.rc.
/////////////////////////////////////////////////////////////////////////////
Other standard files:
StdAfx.h, StdAfx.cpp
These files are used to build a precompiled header (PCH) file
named parport.pch and a precompiled types file named StdAfx.obj.
/////////////////////////////////////////////////////////////////////////////
Other notes:
AppWizard uses "TODO:" comments to indicate parts of the source code you
should add to or customize.
/////////////////////////////////////////////////////////////////////////////
dovaka
11-29-2007, 04:14 PM
Thank you a whole bunch. I got this tvicport thing now and I'm going to look around it now. Seriously, thanks. This may be the answer I was looking for.
Rob
dovaka
11-30-2007, 02:56 AM
I'm not quite sure yet, but I think what I found is only to work on LPT. Is there anyway you could tell me the name of the free third party soft you're using??
http://www.beyondlogic.org/porttalk/porttalk.htm
dovaka
11-30-2007, 11:59 AM
awesomeness. I'll let you guys know. Thank you so much.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.