Parse command line and some utility functions
I was assigned to write a dictionary module for a huge MFC project. The library as well as the executable has to be fully compliance with standard c++.
Now, I have to write a parser. I know I don’t really have to write one, as there is already many out in the net. Why to make [...]
Parse command line and some utility functions
I was assigned to write a dictionary module for a huge MFC project. The library as well as the executable has to be fully compliance with standard c++.
Now, I have to write a parser. I know I don’t really have to write one, as there is already many out in the net. Why to make [...]
Why message maps, How message maps
( The article is taken from Kanitkar’s book)
//comserver visitors … )
Instead of using message maps we can think of using virtual functions to convert a message into a call to an appropriate handler. To understand how virtual functions can be used, look at the following code segment:
Class CFrameWnd
{
[...]
Why message maps, How message maps
( The article is taken from Kanitkar’s book)
//comserver visitors … )
Instead of using message maps we can think of using virtual functions to convert a message into a call to an appropriate handler. To understand how virtual functions can be used, look at the following code segment:
Class CFrameWnd
{
[...]
বিকালে বিপদ
(পুরানো কাগজের মাঝে খুজে পেলাম। সাত বছর আগে লিখা )
রিক্সার ওপর বসে আছি। রিক্সা রাস্তার ওপর বসে আছে। আর রিক্সাচালক বসে আছে রিক্সার পেছনে। বসে বসে অসহায় চেইনটাকে ক্লান্তিহীন ভাবে নাড়াচ্ছে। যশোর এয়ারপোর্ট থেকে ক্যান্টনমেন্ট গেট পর্যন্ত এই নিয়ে তৃতীয়বার। ভেবে দেখলাম, আমি যতবারই কোন ‘মহৎ’ উদ্দেশ্যে বের হই, ততবারই কোন না কোনভাবে ধরা খাই। [...]
Why calling SetWindowText in PreSubclassWindow does not work for a Dialog
The OnInitDialog() follows the PreSubClassWindow(). So any initialization done in PreSubClassWindow() will be overwritten by the initializations that take place in OnInitDialog().
For this, say we called SetWindowText(L” My Dialog”) in PreSubClassWindow(). After a while when OnInitDialog() is being processed, a call to SetWindowText is called with the Caption which can be set using [...]
বিকালে বিপদ
(পুরানো কাগজের মাঝে খুজে পেলাম। সাত বছর আগে লিখা )
রিক্সার ওপর বসে আছি। রিক্সা রাস্তার ওপর বসে আছে। আর রিক্সাচালক বসে আছে রিক্সার পেছনে। বসে বসে অসহায় চেইনটাকে ক্লান্তিহীন ভাবে নাড়াচ্ছে। যশোর এয়ারপোর্ট থেকে ক্যান্টনমেন্ট গেট পর্যন্ত এই নিয়ে তৃতীয়বার। ভেবে দেখলাম, আমি যতবারই কোন ‘মহৎ’ উদ্দেশ্যে বের হই, ততবারই কোন না কোনভাবে ধরা খাই। [...]
Why calling SetWindowText in PreSubclassWindow does not work for a Dialog
The OnInitDialog() follows the PreSubClassWindow(). So any initialization done in PreSubClassWindow() will be overwritten by the initializations that take place in OnInitDialog().
For this, say we called SetWindowText(L” My Dialog”) in PreSubClassWindow(). After a while when OnInitDialog() is being processed, a call to SetWindowText is called with the Caption which can be set using [...]