Click here to Skip to main content
16,009,407 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: TCP/IP Printer Port... Help me! Pin
jung hun yoon15-Jun-09 20:04
jung hun yoon15-Jun-09 20:04 
Questionhow to transfer wav file using parallel port in visual c++ Pin
sysrye31-Aug-04 15:51
sysrye31-Aug-04 15:51 
GeneralGenerate GUID from code Pin
AssemblySoft31-Aug-04 14:12
AssemblySoft31-Aug-04 14:12 
GeneralRe: Generate GUID from code Pin
Lim Bio Liong31-Aug-04 17:18
Lim Bio Liong31-Aug-04 17:18 
GeneralRe: Generate GUID from code Pin
AssemblySoft1-Sep-04 5:38
AssemblySoft1-Sep-04 5:38 
GeneralMessageBox Help Pin
Paul Belikian31-Aug-04 14:06
Paul Belikian31-Aug-04 14:06 
Generalhelp file Pin
Marcus Spitzmiller31-Aug-04 13:50
Marcus Spitzmiller31-Aug-04 13:50 
QuestionHow to Write an RS422 Interface in C++ Pin
Norman Hines31-Aug-04 12:17
Norman Hines31-Aug-04 12:17 
My assignment is to write an interface sending 16-byte command messages and receiving 54-byte response messages at 230.4 Kbaud down two RS422 buses. At one time I considered bit-banging the interface on an 8-bit 8051-family microprocessor. Now I'm trying to do it in Visual C++ .NET. It will run on a laptop running Windows XP, using the Quatech DPS-200/300 Dual Channel RS-422/485 PCMCIA Asynchronous Adaptor, connected to a external device manufactured by another company.

I've been reading MSDN documentation for days. Searching for RS-422 leads me to documentation about CIM, WMI, MOF, file and directory I/O, and other things that have no direct bearing on my assignment. Trying to mine small nuggets of useful information out of these reams of documentation is worse than trying to learn multithreading from just the MSDN documentation (which I just did).

I need a simple (perhaps over-simplified, or even simplistic) instruction on how to create/establish/connect to the communication resource, transmit messages at specific times, receive messages, and terminate everything before shut down. I don't need to know how to use Windows Management Instrumentation to establish an enterprise environment--this is low-level I/O to an ad-hoc device. My software will me installed on two, maybe three systems throughout it's entire lifecycle.

At one time I thought I would need Windows CE or XP Embedded (along with something like TenAsys's or VentureCom's RTX real-time extensions), because my system has about 900 microseconds from receipt of a response message to begin transmitting the next command message. I may need these things anyway, since the worst-case scenario has that time down to 36.1 microseconds.

Norman Hines
Jacobs Sverdrup Naval Systems Group
AnswerRe: How to Write an RS422 Interface in C++ Pin
Ryan Binns31-Aug-04 18:31
Ryan Binns31-Aug-04 18:31 
GeneralRe: How to Write an RS422 Interface in C++ Pin
Norman Hines2-Sep-04 14:22
Norman Hines2-Sep-04 14:22 
GeneralRe: How to Write an RS422 Interface in C++ Pin
Ryan Binns2-Sep-04 15:16
Ryan Binns2-Sep-04 15:16 
GeneralRe: How to Write an RS422 Interface in C++ Pin
Norman Hines2-Sep-04 15:29
Norman Hines2-Sep-04 15:29 
GeneralRe: How to Write an RS422 Interface in C++ Pin
Ryan Binns2-Sep-04 16:46
Ryan Binns2-Sep-04 16:46 
QuestionHow to find Memory Over Flow ? Pin
Amarelia31-Aug-04 11:50
Amarelia31-Aug-04 11:50 
AnswerRe: How to find Memory Over Flow ? Pin
mahade131-Aug-04 18:36
mahade131-Aug-04 18:36 
Generalconst char * Pin
rtb33331-Aug-04 11:47
rtb33331-Aug-04 11:47 
GeneralRe: const char * Pin
Ryan Binns31-Aug-04 18:36
Ryan Binns31-Aug-04 18:36 
Generalopening a command prompt inside a cdialog Pin
mickelliot31-Aug-04 11:13
mickelliot31-Aug-04 11:13 
GeneralRe: opening a command prompt inside a cdialog Pin
vcplusplus31-Aug-04 11:38
vcplusplus31-Aug-04 11:38 
GeneralCFormView and ActiveX Controls... Pin
herbert_chow31-Aug-04 10:57
herbert_chow31-Aug-04 10:57 
GeneralRe: CFormView and ActiveX Controls... Pin
herbert_chow31-Aug-04 14:12
herbert_chow31-Aug-04 14:12 
QuestionOverlay mode? Pin
Vilo99931-Aug-04 9:18
Vilo99931-Aug-04 9:18 
AnswerRe: Folder path for any Win OS? Pin
vcplusplus31-Aug-04 7:52
vcplusplus31-Aug-04 7:52 
GeneralGDI+ VC++ Access Violation Pin
Nicholas Cardi31-Aug-04 7:22
Nicholas Cardi31-Aug-04 7:22 
GeneralRe: GDI+ VC++ Access Violation Pin
Anonymous31-Aug-04 7:29
Anonymous31-Aug-04 7:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.