Admittedly I have only limited experience programming with the COM port, so I hope I'm not wasting your time. That being said, would using the SetCommTimeouts() function have any impact? Setting the ReadTotalTimeoutConstant and ReadTotalTimeoutMultiplier may cause the overlapped event to become...
In your call to CreateEvent(), the second parameter is "true" which creates a manual reset event. I think you have to explicitly call ResetEvent( hEvent ) right after CreateEvent() to set the event to non-signaled, otherwise WaitForSingleObject() just returns immediately. At least, I am quite...
I'm not a database programming expert, but if you have full-blown Visual Studio with MFC, you can use CDatabase and CRecordset classes to create objects to read and write to an ODBC data source based on an Excel spreadsheet. At least, I recall doing this once upon a time. As for examples, I have...
Why not just write an Excel macro in Visual Basic for Applications (VBA)? Does the application have to exist external from Excel? As xwb points out, you'll have to have Excel anyway.
I think all the statement
ptrRecord = (struct Records *) malloc(2 * sizeof(struct Records));
does is allocate storage for the elements of the structure. It doesn't allocate any storage for the char array that comment is supposed to point to. You need to subsequently initialize comment...
Hi Dandy1903,
In addition to the references suggested by monkhandle, you may want to review the Communications reference section on MSDN at
http://msdn2.microsoft.com/en-us/library/aa363194(VS.85).aspx
You might need to use some of the fuctions described there, such as SetCommState(), if you...
Hi Dandy1903,
Sorry, don't know anything about Code::Blocks, but you could use Win32 API calls to talk to the serial ports. The CreateFile(), ReadFile() and WriteFile() functions would be the primary ones. Is the program intended to be GUI or console?
Good Luck,
Greg
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.