Hi, I have two question.
First is how I can set bigger font to my list control, i get the font using CFont* myFont = my_List.GetFont();, can I use this font to enlarge it and than set it back?
And the second question is how to set background color to an a dialog?
Currently in free time i was just checking the C#.Net. and when I try to make the sample porject in C# in Visual Studio 2005 I amazed by the IntelliSense.It works so fast and nicely in C# but it doesnt working in the same manner when I am working on Win32 programming. Is there any way i can change the IntelliSense to work better.
1) two: one copy for each object. Do you want one common object for every class? Then you have to use a static variable.
2) it returns the address of the variable 'a'...it is not important what it contains (10 , 20 or 0). You can look at the contents of (&a) with *( &a )
I reckon you can multiply 1 by 2 so on to the second part. The a varaible is a local varibale in the function you have written. This along with the way it's declared mean that it ends up on the stack. If you think what happens to the stack for this function when execution leaves the function then you'll understand what returning &a will give you. If the stack means nothing to you then you've discovered the point of the exercise. If you're into full on low level code and just not familiar with C++ then I'd recommend debugging through the example you posted in the disassembly window.
Nothing is exactly what it seems but everything with seems can be unpicked.