Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / December 2006

Tip: Looking for answers? Try searching our database.

Writing raw data to a USB printer

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
AM - 10 Dec 2006 22:27 GMT
What I am trying to do is write raw data to a USB to parallel adapter
to control an external device (as I dont have a parallel port) using
VC++.net or C#
The adapter is not a true parallel port and is hence treated as a USB
device. How would I be able to write raw data or ASCII data to this
adapter? Can I use the WritePort
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/Print_r/hh/Prin
t_r/spoolfnc_b4300d7a-1424-40e0-931f-08c727eb4174.xml.asp
)
function and if so how ? an example would help a lot.

Thanks,
AM
Bruno van Dooren [MVP VC++] - 12 Dec 2006 07:51 GMT
> What I am trying to do is write raw data to a USB to parallel adapter
> to control an external device (as I dont have a parallel port) using
[quoted text clipped - 4 lines]
> (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/Print_r/hh/Prin
t_r/spoolfnc_b4300d7a-1424-40e0-931f-08c727eb4174.xml.asp
)
> function and if so how ? an example would help a lot.

Hi,

Those adapters are not meant to be parallel port compatible. You can do all
sorts of things with a true parallel port, but those USB devices are only
meant to support the printer protocol. You cannot use them to toggle lines to
control external devices.

As for writing raw data to a USB device, read my blog post on this:
http://msmvps.com/blogs/vandooren/archive/2006/06/15/Is-it-possible-to-create-_2
800_USB_2900_-device-drivers-with-Visual-C_2B002B003F00_.aspx


Signature

Kind regards,
   Bruno.
   bruno_nos_pam_van_dooren@hotmail.com
   Remove only "_nos_pam"


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.