Click here to Skip to main content
15,886,137 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Exception Error. Pin
FISH78629-Jul-09 9:36
FISH78629-Jul-09 9:36 
GeneralRe: Exception Error. Pin
Code-o-mat29-Jul-09 9:41
Code-o-mat29-Jul-09 9:41 
QuestionHow to put something in status bar at first launch ? Pin
mesajflaviu23-Jul-09 3:52
mesajflaviu23-Jul-09 3:52 
Questionconst in class as a member variable? Pin
sam_psycho23-Jul-09 3:43
sam_psycho23-Jul-09 3:43 
AnswerRe: const in class as a member variable? Pin
Cedric Moonen23-Jul-09 3:47
Cedric Moonen23-Jul-09 3:47 
GeneralRe: const in class as a member variable? Pin
sam_psycho23-Jul-09 3:56
sam_psycho23-Jul-09 3:56 
GeneralRe: const in class as a member variable? Pin
Cedric Moonen23-Jul-09 3:58
Cedric Moonen23-Jul-09 3:58 
AnswerRe: const in class as a member variable? Pin
CPallini23-Jul-09 3:53
mveCPallini23-Jul-09 3:53 
sam_psycho wrote:
Is it possible to declare member variable of class as a const,

Yes.

sam_psycho wrote:
if yes,please give me 1 example how to initialize it


class A
{
  static const int  c = 299792458;	
  const int a;

  A():a(5){}
};


Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

GeneralRe: const in class as a member variable? Pin
sam_psycho23-Jul-09 4:20
sam_psycho23-Jul-09 4:20 
GeneralRe: const in class as a member variable? Pin
CPallini23-Jul-09 6:06
mveCPallini23-Jul-09 6:06 
GeneralRe: const in class as a member variable? Pin
sam_psycho23-Jul-09 6:22
sam_psycho23-Jul-09 6:22 
GeneralRe: const in class as a member variable? Pin
CPallini23-Jul-09 6:50
mveCPallini23-Jul-09 6:50 
QuestionTitleBar Pin
kumar sanghvi23-Jul-09 3:36
kumar sanghvi23-Jul-09 3:36 
QuestionRe: TitleBar Pin
Mahesh Kulkarni23-Jul-09 20:59
Mahesh Kulkarni23-Jul-09 20:59 
QuestionWhich low-level I/O API is better? MFC or POSIX Pin
Dimitris Vikeloudas23-Jul-09 3:13
Dimitris Vikeloudas23-Jul-09 3:13 
AnswerRe: Which low-level I/O API is better? MFC or POSIX Pin
CPallini23-Jul-09 3:41
mveCPallini23-Jul-09 3:41 
AnswerRe: Which low-level I/O API is better? MFC or POSIX Pin
RomanMzh23-Jul-09 3:50
RomanMzh23-Jul-09 3:50 
GeneralRe: Which low-level I/O API is better? MFC or POSIX Pin
Dimitris Vikeloudas23-Jul-09 4:25
Dimitris Vikeloudas23-Jul-09 4:25 
GeneralRe: Which low-level I/O API is better? MFC or POSIX Pin
Randor 23-Jul-09 4:58
professional Randor 23-Jul-09 4:58 
GeneralRe: Which low-level I/O API is better? MFC or POSIX Pin
Dimitris Vikeloudas23-Jul-09 6:09
Dimitris Vikeloudas23-Jul-09 6:09 
QuestionSetOwner(CWnd* pOwnerWnd); Pin
Rakesh523-Jul-09 3:02
Rakesh523-Jul-09 3:02 
AnswerRe: SetOwner(CWnd* pOwnerWnd); Pin
CPallini23-Jul-09 3:47
mveCPallini23-Jul-09 3:47 
QuestionFindItem of ListCtrl not find exact string in list. Pin
Le@rner23-Jul-09 2:32
Le@rner23-Jul-09 2:32 
AnswerRe: FindItem of ListCtrl not find exact string in list. Pin
krmed23-Jul-09 2:43
krmed23-Jul-09 2:43 
AnswerRe: FindItem of ListCtrl not find exact string in list. Pin
Muhammad Mazhar23-Jul-09 2:54
Muhammad Mazhar23-Jul-09 2:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.