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
Hi RedLion,
I'm no expert, but I took a quick look at the ISA webpage and noticed that there is a (free) client that you can install which evidently handles FTP through the proxy and allows applications to work as if the proxy was not there. Another thought is to try passive FTP, which I read...
Hi HyperEngineer,
I'm not an expert on thread synchronization, but an interested amateur. Instead of using the global member variableg_TelnetPipe->m_bStartSession = true;
and the loop// Can't go anywhere until the main thread is ready.
while(!(g_TelnetPipe->m_bStartSession)) // This...
Lorey,
The PostMessage() function is documented in the MDSN Library, at http://msdn.microsoft.com, also in the Platform SDK documentation. What arguments are you supplying to PostMessage()?
Good Luck,
Greg Hansen
As Salem's post suggests, the argument s, in the definition of rev1, is a pointer. As such, the compiler evaluates sizeof(s) to be the size of a pointer, 32 bits or 4 octets. If you really need to know the length of the array of char's that s points to, you could use e.g.
int length = (int)...
From the Platform SDK documentation:
ES_READONLY
Prevents the user from typing or editing text in the edit control.
Could this be the problem?
Good luck,
Greg Hansen
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.