What I'm basically looking for is a wireless TCP/IP connection for a Palm device (or other handheld). Something that would allow me to connect to a wireless hub on a LAN, not to a internet service provider. Kind of a stretch, but this is an unusual application. :) Does anyone have a...
What I have had to do is handle the ON_HSCROLL or ON_VSCROLL messages for the scrollbar. From what I can tell all scrollbars, either dialog controlls you place, or the ones that automatically appear as a part of the view, trigger these messages. When you override the handler the function is...
This is a neat "feature" I, and another co-worker, have also encountered with Visual C++ 6.0. What seems to be happening is that when adding a function to the files, VC gets a bit confused and drops the file from the Class Wizard reference. If you look in the file view tab, you...
A safer method than GOTO, but with a simiar feel is the try/catch blocks. It would look something like this.
try
{
if (s.getType() != NODE::INT )
throw 1;
i = s.pop();
if (s.empty())
throw 2;
// Output good stuff here
}
catch (int nError)
{
// Output error message...
Hi Robertus,
This is what I use
// Used in all calls to reference the channel after it is created
HANDLE hConnection;
// Open the port
hConnection = CreateFile("COM2",
GENERIC_READ|GENERIC_WRITE,
0,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL,
NULL)...
One thing I would consider, if you are at all familiar with threads, is put the frequence generator code in a seperate thread, set to time critical priority. Something like this.
AfxBeginThread(FreqThreadProc, NULL, THREAD_PRIORITY_TIME_CRITICAL);
I have used the QueryPerformanceFrequency and...
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.