|
|
CodeProject is awesome. I'd say the best part about this site is the forum for programmers to answer other programmer's questions. The articles are great, too, but at times too specialized for what I'm looking for. I mean, beyond the basic listing of member functions that MSDN gives me, a site that really teaches all the basics of MFC. I have some great sources here in the office, but I don't like to bug them for help when I'm trying to learn a new control or feature. (new = I haven't used it yet)
Danny
|
|
|
|
|
where were u toxxct? i haven't seen u for couple of days or so.. or u OK?
V
|
|
|
|
|
yes yes, i'm there, every day, but as there are not always good posts, and as i have to work hard...
but if you search a bit more (my posts are here[^]), you'll see that i am still active...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
ohh.. ok .. i felt i missed the bright organge colored text on few pages..
V
|
|
|
|
|
It would be nice to be able to find aritcles by beginner/tutorial classification.
The tigress is here
|
|
|
|
|
|
Codeproject ?
|
|
|
|
|
Have you seen the Scribble tutorial on MSDN? It starts from scratch and builds up to a very detailed application.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
codeproject? no no.. let him go to Google first . its the best for all kind of needs.. for MFC google will take him to the best place on earth.
[edit]we'll meet him back here in five minutes[/edit]
regards,
V
|
|
|
|
|
Thanks, I'll take a look.
Danny
|
|
|
|
|
I know you didn't ask for a book, but I really think you should treat yourself with "MFC Internals" by George Shepherd and Scot Wingo. It's very old (1996), covers MFC 4.0 (many versions back) but it is still the bible of MFC programming. It covers all the fundamental functionalities of MFC and gives you an in-depth understanding of the framework. And MFC really haven't changed that much since 4.0. I regularly read it although I've been programming MFC for 10 years. You can get some used copies for about $7 at Amazon.
Another must-have book is "Programming Visual C++" by Kruglinski, Wingo and Shepherd, also available used at Amazon (<$5)
Cheers
Steen.
"To claim that computer games influence children is ridiculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"
|
|
|
|
|
Thanks, I like to use books better actually. I've spent all my money for this month (literally), so I'll have to wait 'till next month to see if I have money, but I'll look into it.
Danny
|
|
|
|
|
Hi all,
I have a dialog box which has rich-edit as child control inside it.
When i click inside the rich-edit box, focus is in the rich-edit.
Now when i press 'Tab' key from here, then text in rich-edit is highlighted.
But focus does not move outside rich-edit. Instead i want the focus to move to other controls in the main dialog, when i press 'Tab' key inside rich-edit.
Please suggest on how should i handle Tab key notification for rich-edit in this dialog.
Thanks in Advance
Abhijeet Jadhav
|
|
|
|
|
use LayOut-->TabOrder (ctrl+D) menu.
set ordering.
|
|
|
|
|
Hi prasad,
i have set tab-order appropriately.
But since rich-edit is a child control inside the dialog, on pressing tab control does not go outside rich-edit.
Please see if you find the solution.
Tell me if the problem is clear.
Thanks
Abhijeet Jadhav
|
|
|
|
|
The behavior you describe is not the default. You are doing something else in your code that is causing this behavior. To verify this, create a temporary dialog-based application, add a rich edit control to the dialog template, call AfxInitRichEdit() in InitInstance() , and run the application. Notice anything different?
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
How do i use functions that have been defined in a dll?
For example:
I built a ATL/Dll that has a class definition. This class has some methods and atributtes. How can i use that methods and atributtes in a other project?
I'm using Visual c++ 6.0;
I wait for reply!
Greatful!
Hélio
-- modified at 9:00 Tuesday 20th September, 2005
|
|
|
|
|
|
unhappyly this article was not util for me
|
|
|
|
|
I forgot to say that my dll is a ATL DLL
|
|
|
|
|
You can either export the member functions with __declspec( dllexport ), or you convert the class to a COM interface which has get/set functions.
Don't try it, just do it!
|
|
|
|
|
/*
** This is an interesting C++ bug, well I think it is a bug
*/
class CTest1
{
public:
BYTE* pbData;
public:
CTest1()
{
pbData = new BYTE[GetDataSize()];
}
virtual int GetDataSize()
{
return 16;
}
};
class CTest2 : public CTest1
{
CTest2() : CTest1()
{
}
virtual int GetDataSize()
{
return 32;
}
};
/*
** when CTest2 is created you would expect a buffer of 32 bytes to be allocated
** but lo and behold, you get 16, try it
**
** in c# they got it right, try the same experiment and you will get 32 allocated in CTest2
*/
public class CTest1
{
public byte[] abyData = null;
public CTest1()
{
abyData = new byte[DataSize];
}
virtual int DataSize
{
get{return 16;}
}
}
public class CTest2 : CTest1
{
override int DataSize
{
get{return 32;}
}
}
|
|
|
|
|
Vtable initiazation takes place in constructor of base class,its obvious that base class function will get called
|
|
|
|
|
Simply, C++ has a different order of construction than C# or Java. It was a design decision, not a bug.
Take a look at this article[^] for more details.
My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.
|
|
|
|