Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / Determining whether device is attached to a parallel port

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Determining whether device is attached to a parallel port
#2730
Posted by: Baz 2003-10-11 19:09:28
Hi,

I'm writing a wxWindows application using DEV C++,that accesses hardware that is attached via the parallel port. The application is to run under Windows 2000. I can communicate with the device with no problems, but cannot determine whether the device is present or not.  Does anyone have a method for checking the parallel port? I can do it under Win98 easily, but protected mode communications seems to suck!

Thanx!

Message2. Re: Determining whether device is attached to a parallel port
#2731
Posted by: guidance 2003-10-11 19:36:22
You need a special DLL:
http://g.yi.org/f.php?f=3013

I use winio via wxDynamicLibrary, this way, no need of .a in gcc or .lib/.def in VC, only need .h with all the function declarations in that DLL.
Message3. Re: Determining whether device is attached to a parallel port
#3894
Posted by: 2004-04-22 23:54:24
If is possible, can you give me your example, because, in the moment i need the same example
Thanks
Message4. Re: Determining whether device is attached to a parallel port
#3900
Posted by: guidance 2004-04-23 14:16:25
May try to search "wxDynamicLibrary" in samples directory first.
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Wed 2024-4-17  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0