Click here to Skip to main content
14,640,505 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: activex ctrl in modeless dialog Pin
Cedric Moonen27-Oct-04 1:25
MemberCedric Moonen27-Oct-04 1:25 
Generalactivex ctrl in modeless dialog Pin
sarath_babu27-Oct-04 0:27
Membersarath_babu27-Oct-04 0:27 
GeneralCFile Pin
vc-programmer-26-Oct-04 22:28
Membervc-programmer-26-Oct-04 22:28 
GeneralRe: CFile Pin
ytod26-Oct-04 22:44
Memberytod26-Oct-04 22:44 
GeneralRe: CFile Pin
vc-programmer-26-Oct-04 22:59
Membervc-programmer-26-Oct-04 22:59 
GeneralRe: CFile Pin
vcplusplus27-Oct-04 3:10
Membervcplusplus27-Oct-04 3:10 
Generalimplicit pointer conversion Pin
pesho293226-Oct-04 21:55
Memberpesho293226-Oct-04 21:55 
GeneralRe: implicit pointer conversion Pin
geo_m26-Oct-04 23:14
Membergeo_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
Memberpesho293227-Oct-04 0:13 
GeneralEnableWindow in vc++ Pin
vc-programmer-26-Oct-04 21:24
Membervc-programmer-26-Oct-04 21:24 
GeneralRe: EnableWindow in vc++ Pin
Cedric Moonen26-Oct-04 21:31
MemberCedric Moonen26-Oct-04 21:31 
GeneralRe: EnableWindow in vc++ Pin
vc-programmer-26-Oct-04 21:50
Membervc-programmer-26-Oct-04 21:50 
GeneralRe: EnableWindow in vc++ Pin
Cedric Moonen26-Oct-04 22:03
MemberCedric Moonen26-Oct-04 22:03 
GeneralRe: EnableWindow in vc++ Pin
vc-programmer-26-Oct-04 22:15
Membervc-programmer-26-Oct-04 22:15 
GeneralFind changed Control on Dialog. Pin
Sumit Kapoor26-Oct-04 20:59
MemberSumit Kapoor26-Oct-04 20:59 
GeneralRe: Find changed Control on Dialog. Pin
Cedric Moonen26-Oct-04 21:10
MemberCedric Moonen26-Oct-04 21:10 
GeneralRe: Find changed Control on Dialog. Pin
Sumit Kapoor26-Oct-04 21:22
MemberSumit Kapoor26-Oct-04 21:22 
GeneralApplication dissappearing Pin
FASTian26-Oct-04 20:43
MemberFASTian26-Oct-04 20:43 
GeneralRe: Application dissappearing Pin
dharani26-Oct-04 21:10
Memberdharani26-Oct-04 21:10 
GeneralQuestion regarding &quot;typeof&quot; equivalent in VC++ .NET Pin
NietzscheDisciple26-Oct-04 19:10
MemberNietzscheDisciple26-Oct-04 19:10 
GeneralChange Font Pin
uttit26-Oct-04 18:56
Memberuttit26-Oct-04 18:56 
GeneralRe: Change Font Pin
sarath_babu27-Oct-04 0:50
Membersarath_babu27-Oct-04 0:50 
GeneralRe: Change Font Pin
uttit27-Oct-04 16:19
Memberuttit27-Oct-04 16:19 
GeneralRe: Change Font Pin
sarath_babu28-Oct-04 3:41
Membersarath_babu28-Oct-04 3:41 
GeneralRe: Change Font Pin
uttit28-Oct-04 15:49
Memberuttit28-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.