Click here to Skip to main content
15,916,951 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to .rc??? Pin
mimimimilaw18-Jul-06 0:23
mimimimilaw18-Jul-06 0:23 
GeneralRe: How to .rc??? Pin
Hamid_RT18-Jul-06 0:57
Hamid_RT18-Jul-06 0:57 
Questionabout the IVMRMixerControl9 in dshow Pin
blackeye200417-Jul-06 22:42
blackeye200417-Jul-06 22:42 
QuestionWindows Hooks Pin
ERLN17-Jul-06 22:33
ERLN17-Jul-06 22:33 
AnswerRe: Windows Hooks Pin
Hamid_RT18-Jul-06 0:00
Hamid_RT18-Jul-06 0:00 
GeneralRe: Windows Hooks Pin
ERLN18-Jul-06 1:03
ERLN18-Jul-06 1:03 
QuestionDirectX Programming Pin
Kuroro Rucilful17-Jul-06 22:19
Kuroro Rucilful17-Jul-06 22:19 
AnswerRe: DirectX Programming Pin
NiceNaidu17-Jul-06 22:54
NiceNaidu17-Jul-06 22:54 
GeneralRe: DirectX Programming Pin
Kuroro Rucilful17-Jul-06 22:58
Kuroro Rucilful17-Jul-06 22:58 
Questionstatic const int inside class Pin
vikramlinux17-Jul-06 22:15
vikramlinux17-Jul-06 22:15 
AnswerRe: static const int inside class Pin
toxcct17-Jul-06 23:52
toxcct17-Jul-06 23:52 
GeneralRe: static const int inside class Pin
vikramlinux17-Jul-06 23:55
vikramlinux17-Jul-06 23:55 
GeneralRe: static const int inside class Pin
toxcct17-Jul-06 23:59
toxcct17-Jul-06 23:59 
GeneralRe: static const int inside class Pin
Maxwell Chen18-Jul-06 0:03
Maxwell Chen18-Jul-06 0:03 
GeneralRe: static const int inside class Pin
toxcct18-Jul-06 0:06
toxcct18-Jul-06 0:06 
GeneralRe: static const int inside class Pin
Rob Caldecott18-Jul-06 0:06
Rob Caldecott18-Jul-06 0:06 
GeneralRe: static const int inside class [modified] Pin
vikramlinux18-Jul-06 0:36
vikramlinux18-Jul-06 0:36 
Hey Guys,
What code u have provided is correct. I also mentioned same code in my question. I have 2 concerns

1) const static members can be directly init in class
so what is wrong with normal static members?

2) As normal const vars has to be init at the time of declaration in code(somewhat like references ). In my class I need to init my const var in memberwise init list.

so we have an issue where we have const needs whose init code needs to be inside class and static needs to be outside.

so the soln in compiler is put static const var outside let it be define there.
Here my question is why we can also put it inside class? what is req. forced to provide such facility? what is rational behind that?



-- modified at 6:46 Tuesday 18th July, 2006
QuestionUnregister same registering with 'regsvr32.exe' ? Pin
Andy Rama17-Jul-06 20:46
Andy Rama17-Jul-06 20:46 
AnswerRe: Unregister same registering with 'regsvr32.exe' ? Pin
NiceNaidu17-Jul-06 20:50
NiceNaidu17-Jul-06 20:50 
GeneralRe: Unregister same registering with 'regsvr32.exe' ? Pin
Andy Rama17-Jul-06 21:03
Andy Rama17-Jul-06 21:03 
AnswerRe: Unregister same registering with 'regsvr32.exe' ? [modified] Pin
AkiraOne17-Jul-06 20:52
AkiraOne17-Jul-06 20:52 
GeneralRe: Unregister same registering with 'regsvr32.exe' ? Pin
Andy Rama17-Jul-06 21:04
Andy Rama17-Jul-06 21:04 
AnswerRe: Unregister same registering with 'regsvr32.exe' ? Pin
Anilkumar K V17-Jul-06 23:37
Anilkumar K V17-Jul-06 23:37 
GeneralRe: Unregister same registering with 'regsvr32.exe' ? Pin
Andy Rama18-Jul-06 20:22
Andy Rama18-Jul-06 20:22 
GeneralRe: Unregister same registering with 'regsvr32.exe' ? Pin
Anilkumar K V18-Jul-06 23:35
Anilkumar K V18-Jul-06 23:35 

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.