Hi, i am trying to use a third party ActiveX control in my C++ code. I do not know if the control can also be used from C++ since there was only a Visual Basic example with it.
In the stdafx.h i...
If you want to add a function to an interface you have to create a new interface which is derived from the current interface. You can not add a function to an existing interface.
This way older...
Thanks for your reaction ProgramArtist. The OS version my program is compiled with is Windows 95 using Visual C++ 1.52 (really old, i know but it is still out there).
By connecting a certain kind of printer my program crashes and gives a General Application error message with 0007:BC22.
Normally a crash address looks like this: 'The instruction at...
The location where you have your bitmap drawing code is very important. You should have this code in the OnDraw(), not in OnSize(). To speed things up you can use the memory device context trick....
CPUWizard, do you have a suggestion how i can allocate/deallocate the BYTE buffer in this case because PostThreadMessage() does not wait for completion.
I am trying to pass a BYTE array to a thread. This is done using the PostThreadMessage() function and passing the BYTE array as the WPARAM parameter and the number of bytes in the array as LPARAM...
Thanx for the comments guys. Radius i think i am going for your solution. One question however. Should the threads use a semaphore for using the serial port, i can imagine two write threads wanting...
My assignment is to do serial port communications with the Modbus protocol.
I already wrote a Read thread and a Write thread. The readthread is a threadfunction in the main process and the write...
The call to WaitForMultipleObjects() does not return, it seems the event for the serial port does not get signalled. I was under the impression that sending data to the port will cause the event to...
Thanks for the link Victor, i am studying it. I am running into a little problem here. How is a shutdown event created? It is passed as one of the parameters to the thread and i cannot figure out...
Thanks for the link Victor, i am studying it. I am running into a little problem here. How is a shutdown event created? It is passed as one of the parameters to the thread and i cannot figure out...
Hi guys, i have a problem with the serial port communication. I am trying to read from the serial port, but it appears that only 14 bytes can be read at once. This is probably the size of the serial...
One way is to draw the listbox yourself. Create a member variable which holds the color for your listbox. Depending on the condition you can set your membervariable with a certain color and call...
I think you have to add some includes to your sourcefiles. You have to find out if _ComPtr is declared in one of the following headerfiles: atlbase.h, atlcom.h. Otherwise try a google or msdn search...