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

C / C++ / MFC

 
GeneralRe: activex ctrl in modeless dialog Pin
Cedric Moonen27-Oct-04 1:25
Cedric Moonen27-Oct-04 1:25 
Generalactivex ctrl in modeless dialog Pin
sarath_babu27-Oct-04 0:27
sarath_babu27-Oct-04 0:27 
GeneralCFile Pin
vc-programmer-26-Oct-04 22:28
vc-programmer-26-Oct-04 22:28 
GeneralRe: CFile Pin
ytod26-Oct-04 22:44
ytod26-Oct-04 22:44 
GeneralRe: CFile Pin
vc-programmer-26-Oct-04 22:59
vc-programmer-26-Oct-04 22:59 
GeneralRe: CFile Pin
vcplusplus27-Oct-04 3:10
vcplusplus27-Oct-04 3:10 
Generalimplicit pointer conversion Pin
pesho293226-Oct-04 21:55
pesho293226-Oct-04 21:55 
GeneralRe: implicit pointer conversion Pin
geo_m26-Oct-04 23:14
geo_m26-Oct-04 23:14 
because if this would be allowed, you'll be able to modify the const objects.
See:
<br />
const char p1 = 'a'; //constant it should never change<br />
char* p2;<br />
const char** p3 = &p2;    // this is illegal<br />
*p3 = &p1;    // now p3 points to 'a'<br />
*p2 = 'b'; // now we have modified 'a'<br />


Normally C++ standard allows you to cast from char* to const char* as it only adds the const. But the conversion from char** to const char** is problematic as you can see above.

[example taken from compl.lang.c++]
GeneralRe: implicit pointer conversion Pin
pesho293227-Oct-04 0:13
pesho293227-Oct-04 0:13 
GeneralEnableWindow in vc++ Pin
vc-programmer-26-Oct-04 21:24
vc-programmer-26-Oct-04 21:24 
GeneralRe: EnableWindow in vc++ Pin
Cedric Moonen26-Oct-04 21:31
Cedric Moonen26-Oct-04 21:31 
GeneralRe: EnableWindow in vc++ Pin
vc-programmer-26-Oct-04 21:50
vc-programmer-26-Oct-04 21:50 
GeneralRe: EnableWindow in vc++ Pin
Cedric Moonen26-Oct-04 22:03
Cedric Moonen26-Oct-04 22:03 
GeneralRe: EnableWindow in vc++ Pin
vc-programmer-26-Oct-04 22:15
vc-programmer-26-Oct-04 22:15 
GeneralFind changed Control on Dialog. Pin
Sumit Kapoor26-Oct-04 20:59
Sumit Kapoor26-Oct-04 20:59 
GeneralRe: Find changed Control on Dialog. Pin
Cedric Moonen26-Oct-04 21:10
Cedric Moonen26-Oct-04 21:10 
GeneralRe: Find changed Control on Dialog. Pin
Sumit Kapoor26-Oct-04 21:22
Sumit Kapoor26-Oct-04 21:22 
GeneralApplication dissappearing Pin
FASTian26-Oct-04 20:43
FASTian26-Oct-04 20:43 
GeneralRe: Application dissappearing Pin
dharani26-Oct-04 21:10
dharani26-Oct-04 21:10 
GeneralQuestion regarding &quot;typeof&quot; equivalent in VC++ .NET Pin
NietzscheDisciple26-Oct-04 19:10
NietzscheDisciple26-Oct-04 19:10 
GeneralChange Font Pin
uttit26-Oct-04 18:56
uttit26-Oct-04 18:56 
GeneralRe: Change Font Pin
sarath_babu27-Oct-04 0:50
sarath_babu27-Oct-04 0:50 
GeneralRe: Change Font Pin
uttit27-Oct-04 16:19
uttit27-Oct-04 16:19 
GeneralRe: Change Font Pin
sarath_babu28-Oct-04 3:41
sarath_babu28-Oct-04 3:41 
GeneralRe: Change Font Pin
uttit28-Oct-04 15:49
uttit28-Oct-04 15:49 

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.