Click here to Skip to main content
15,901,205 members
Home / Discussions / COM
   

COM

 
AnswerRe: how to use tlbinf32.dll Pin
User 21559726-Jan-07 6:12
User 21559726-Jan-07 6:12 
GeneralRe: how to use tlbinf32.dll Pin
huangdingjun30-Jan-07 16:17
huangdingjun30-Jan-07 16:17 
QuestionCOM objects all unregistered Pin
Marcus J. Smith24-Jan-07 0:29
professionalMarcus J. Smith24-Jan-07 0:29 
AnswerRe: COM objects all unregistered Pin
Roger Stoltz24-Jan-07 1:14
Roger Stoltz24-Jan-07 1:14 
JokeRe: COM objects all unregistered Pin
User 21559724-Jan-07 5:37
User 21559724-Jan-07 5:37 
GeneralRe: COM objects all unregistered Pin
Marcus J. Smith27-Jan-07 2:54
professionalMarcus J. Smith27-Jan-07 2:54 
GeneralRe: COM objects all unregistered Pin
prasad_som25-Jan-07 17:05
prasad_som25-Jan-07 17:05 
QuestionSending command through serial port - error Overlapped I/O operation in process Pin
Matt_deveau23-Jan-07 11:30
Matt_deveau23-Jan-07 11:30 
Hi all,

Working on sending commands to a device, I have been using the code provided by Ashish Dhar, here : www.codeproject.com/system/serial_com.asp
(I know I should post there, but there are many post without any reply there, so...)

Everything was going fine using this simple code:

char receive_write[] = {0x02, 0x00, 0x02, 0x00, 0x30, 0x01, 0x31, 0x18};
m_theCommPort.Write(receive_write, sizeof(receive_write) );

Now, I need to send a longer string of unsigned char :

unsigned char receive_write[] = {0x02, 0x00, 0x07, 0x00, 0x75, 0x01, 0x00, 0x01, 0x00, 0x91, 0x01, 0x7D, 0xB6};
m_theCommPort.Write(receive_write, sizeof(receive_write) );

Now the device returns a "unknown command" telegram. But the command is the right one.

Write uses WriteFile,
WriteFile returns FALSE and GetLastError returns error 997 : Overlapped I/O operation in process

Is it related to timeout, or to the string length, or either?

Thanks for helping,

Matthieu Deveau
AnswerRe: Sending command through serial port - error Overlapped I/O operation in process Pin
Tim Paaschen23-Jan-07 19:21
Tim Paaschen23-Jan-07 19:21 
QuestionRetrieve Com-Object which implements interface Pin
rncwnd22-Jan-07 5:57
rncwnd22-Jan-07 5:57 
Question.Net Com Pin
Ron.S22-Jan-07 0:20
Ron.S22-Jan-07 0:20 
Questionhow to add mat files from matlab to the com builder of matlab Pin
ranjeet_randy19-Jan-07 22:23
ranjeet_randy19-Jan-07 22:23 
QuestionInterop question VB.NET 2.0 Pin
Marcus J. Smith19-Jan-07 2:41
professionalMarcus J. Smith19-Jan-07 2:41 
QuestionCOM libraries and .NET Pin
jesarg18-Jan-07 12:56
jesarg18-Jan-07 12:56 
AnswerRe: COM libraries and .NET Pin
lafleon19-Jan-07 13:09
lafleon19-Jan-07 13:09 
QuestionNewbie - Memory sharing in COM Pin
jayart17-Jan-07 5:42
jayart17-Jan-07 5:42 
AnswerRe: Newbie - Memory sharing in COM Pin
User 21559717-Jan-07 6:40
User 21559717-Jan-07 6:40 
GeneralRe: Newbie - Memory sharing in COM Pin
jayart17-Jan-07 7:05
jayart17-Jan-07 7:05 
GeneralRe: Newbie - Memory sharing in COM Pin
User 21559717-Jan-07 12:33
User 21559717-Jan-07 12:33 
GeneralRe: Newbie - Memory sharing in COM Pin
Tim Paaschen17-Jan-07 20:15
Tim Paaschen17-Jan-07 20:15 
GeneralRe: Newbie - Memory sharing in COM Pin
guestcat29-Jan-07 14:10
guestcat29-Jan-07 14:10 
Questionsimple c program using INES GPIB_PCI XL card Pin
Member 373364017-Jan-07 3:21
Member 373364017-Jan-07 3:21 
AnswerRe: simple c program using INES GPIB_PCI XL card Pin
User 21559717-Jan-07 4:53
User 21559717-Jan-07 4:53 
QuestionAdding a button to the Windows Explorer toolbar. Pin
yvz17-Jan-07 2:05
yvz17-Jan-07 2:05 
AnswerRe: Adding a button to the Windows Explorer toolbar. Pin
prasad_som17-Jan-07 4:24
prasad_som17-Jan-07 4:24 

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.