Search:
Type: Posts; User: hmc
Search:
Search took 0.11 seconds.
-
August 21st, 2007, 04:27 AM
I found a bug article in the MSDN. http://support.microsoft.com/kb/224610
The following change prevents errors to occur
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers...
-
August 21st, 2007, 03:32 AM
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...
-
char szBuf[BUFLEN];
CString sFilename;
if( FileDlg.DoModal() == IDOK )
{
sFilename = FileDlg.GetFileName();
CFile file;
if(file.Open(sFileName, CFile::modeRead))
{
-
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).
The problem with the printer...
-
Hi guru's,
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...
-
April 27th, 2007, 02:03 AM
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....
-
April 11th, 2007, 01:32 AM
CPUWizard, do you have a suggestion how i can allocate/deallocate the BYTE buffer in this case because PostThreadMessage() does not wait for completion.
Now i allocate memory in main thread, pass...
-
April 10th, 2007, 09:09 AM
Wow, you are sharp! Thanx man!
-
April 10th, 2007, 09:03 AM
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...
-
April 2nd, 2007, 01:47 AM
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...
-
March 30th, 2007, 09:36 AM
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...
-
March 28th, 2007, 06:56 AM
This is the OnInitialUpdate() in which i open the serial port and create/start the threads.....
void CMyserialportView::OnInitialUpdate()
{
CView::OnInitialUpdate();
m_hCom =...
-
March 28th, 2007, 06:37 AM
No i pass in FALSE as one of the parameters which means if one of the parameters is signalled the WaitForMultipleObjects() returns.
bWaitAll
[in] If this parameter is TRUE, the function...
-
March 28th, 2007, 06:03 AM
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...
-
March 28th, 2007, 04:54 AM
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...
-
March 28th, 2007, 02:24 AM
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...
-
March 27th, 2007, 09:44 AM
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...
-
March 14th, 2007, 03:30 AM
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...
-
March 12th, 2007, 02:44 AM
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...
-
March 9th, 2007, 07:49 AM
Please post parts of your code containing the problem. Use code tags when posting code.
-
March 9th, 2007, 07:47 AM
One possibility is to put all ID's of buttons in an array:
UINT aButtons[10] = { IDC_BUTTON1, IDC_BUTTON2, ....};
or create a struct/class
-
March 8th, 2007, 03:45 AM
Please specify the exact error you encounter en give us the specific code piece the error occurs in.
-
March 7th, 2007, 08:11 AM
No discard my previous post, i see you declare it as void*. Try casting the argument to void* ?
-
March 7th, 2007, 08:09 AM
You are passing some argument to the function pointer while you declare it as being void (having no parameters).
res=(*Func1)(&vm_args); // ERROR SHOWING IN THIS LINE
|
Click Here to Expand Forum to Full Width
|