August 14th, 2005 12:45 PM
class C {
public:
C(int i) { m_i = i; }
C& operator=(const C& rhs) { m_i = rhs.m_i; return *this;}
C& operator/(const C& rhs) { m_i /= rhs.m_i; return *this; }
friend C operator/(const C&...
August 14th, 2005 06:17 AM
Hint: you need two loops, one inside the other.
August 14th, 2005 05:24 AM
I think the problem is getting your first job. You may have the necessary expertise to program in C++ but you have to get to the interview in order to demonstrate that. It depends greatly on the type...
August 12th, 2005 06:42 PM
Try installing the "generic / text only" printer that ships with windows. That may be sufficent for your needs.
August 12th, 2005 04:29 PM
There used to be a printer called "generic (text only)" included with windows. If its still there, give it a try.
August 12th, 2005 04:23 PM
Check the type of the field in the table definition in the dabase. Is it of type "Text" and of a suitable size?
if thats not it then
Check the return value from the call to Open (it should be...
August 12th, 2005 03:58 PM
Can you post the code for CQuestionsRecordset.
What is the definition of m_Question in the recordset and the database?
Also why do you query for all the records in the table before adding the new...
August 12th, 2005 03:14 PM
First, I dont want to appear patronising, but I dont know how much you know. So forgive some simple questions...
When you say you can realise that the "processing" is sequential, how do you know...
August 11th, 2005 03:53 PM
If you dont send the WM_SETTEXT do you still have the leak?
August 11th, 2005 03:18 PM
Try removing the
CloseHandle(phThread[0]);
and
phThread[0] = NULL;
from the thread functions themselves, you will need the handles in the main thread to get the return code and for the...
August 11th, 2005 03:34 AM
Are you using GDI objects yourself to draw something?
Its possible that the problem you are seeing with the static control are a symptom of the problem of consuming the available GDI objects and the...
August 10th, 2005 06:27 PM
What function are you calling SendMessage from.
It may be a reentrancy problem.
What is the type of the radius object (CStatic?)
August 10th, 2005 06:11 PM
typedef union {
float FloatVal;
struct {
unsigned int SignBit:1; // 1 bit for the sign
unsigned int Exponent:7; // 7 bits for the exponent
unsigned int...
August 10th, 2005 05:00 PM
Try passing a pointer to the printers DC as the last parameter to the CreatePointFont funtion. It needs the DC so that it can determine the printer resolution andd scale the font appropriately. The...
August 10th, 2005 04:46 PM
Can you post the code (maybe with the non sockets bits stripped if its big)?
(This is a silly question, but.... you are using SOCK_STREAM and not SOCK_DGRAM?)
August 10th, 2005 04:06 PM
What value does WaitForMultipleObjects return?
What values do the GetExitCodeThread calls return?
Also you should pass TRUE, not true for the third parameter.
The type is BOOL not bool (BOOL is...
August 6th, 2005 02:55 PM
You cannot take the address of a register variable, because a register does not have an address. A register is inside the processor chip, not in memory.
I dont know about a static or global...
August 6th, 2005 02:08 PM
your copy constructor has an error.
you are copying the data from the array being copied but using the "size" field from the array receiving the copy. Put the size = a.size before the loop.
The...
August 6th, 2005 03:51 AM
You will probably learn much from both (I did). If you can get them both, and the "More Effective..." follow up books. Some of the areas covered are the same, but many are not. Also herb sutters...
August 6th, 2005 03:38 AM
Use the EndDialog method to return a value from DoModal.
November 21st, 2003 03:45 AM
Also changing the type from BYTE to BYTE* moves the actual data out of the struct.
November 20th, 2003 04:58 AM
Because 1 is the smallest dimension for the array that allocates space for it. The way these things work is that the struct is declared with an array of size 1 (as the last member). When the memory...