Click here to Skip to main content
15,888,454 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Is mfc still popular now? Pin
jhwurmbach24-Sep-07 4:32
jhwurmbach24-Sep-07 4:32 
AnswerRe: Is mfc still popular now? Pin
bob1697224-Sep-07 6:01
bob1697224-Sep-07 6:01 
AnswerRe: Is mfc still popular now? Pin
Mark Salsbery24-Sep-07 7:04
Mark Salsbery24-Sep-07 7:04 
AnswerRe: Is mfc still popular now? Pin
Signal-926-Sep-07 15:07
Signal-926-Sep-07 15:07 
Questionconst int * Pin
Shraddha Gautam24-Sep-07 2:27
Shraddha Gautam24-Sep-07 2:27 
AnswerRe: const int * Pin
James R. Twine24-Sep-07 2:36
James R. Twine24-Sep-07 2:36 
AnswerRe: const int * Pin
KarstenK24-Sep-07 2:39
mveKarstenK24-Sep-07 2:39 
AnswerRe: const int * Pin
zakkas248324-Sep-07 19:35
zakkas248324-Sep-07 19:35 
i Think u r not clear from above two ans so i m explaing u ...

Pointer To Const
syntex:

int const *ptr;
or
const int *ptr;

that means they are pointer to const int. so we can't change the value of they are pointing. we can change what they r pointing....

for example:

int i = 10;
int b = 20;
int const *ptr = & i;
(*ptr)++ ; // will give error
ptr = & b ; // OK

Const pointer:

syntex :

int * const ptr1;

it is const pointer so what it is pointing is const so we must initialize at the time of declaration

so synetx is like
int * const ptr1 = & someintegervarible;

for example:

int i = 10;
int b = 20;
int * const ptr1 = & i; //required initialization
(*ptr1)++ ;//OK
ptr1 = & b; // Error

we also have

const pointer to const :

syntex :

int const * const ptr2 = & i; // required initialization
or
const int * const ptr2 = & i; // required initialization

Neither address which that pointer is pointing nor the value that pointer pointing will change.

Hiren Thakkar
QuestionIs it possible to communicate vc++.net and SQL server Pin
Exelioindia24-Sep-07 2:23
Exelioindia24-Sep-07 2:23 
AnswerRe: Is it possible to communicate vc++.net and SQL server Pin
KarstenK24-Sep-07 2:42
mveKarstenK24-Sep-07 2:42 
GeneralRe: Is it possible to communicate vc++.net and SQL server Pin
Exelioindia24-Sep-07 4:19
Exelioindia24-Sep-07 4:19 
GeneralRe: Is it possible to communicate vc++.net and SQL server Pin
KarstenK24-Sep-07 4:37
mveKarstenK24-Sep-07 4:37 
GeneralRe: Is it possible to communicate vc++.net and SQL server Pin
led mike24-Sep-07 4:52
led mike24-Sep-07 4:52 
AnswerRe: Is it possible to communicate vc++.net and SQL server Pin
Mark Salsbery24-Sep-07 7:11
Mark Salsbery24-Sep-07 7:11 
QuestionHow to separate "Print" from menu/toolbar and Preview-Button Pin
Nelek24-Sep-07 1:58
protectorNelek24-Sep-07 1:58 
AnswerBad solution, but solved Pin
Nelek26-Sep-07 21:46
protectorNelek26-Sep-07 21:46 
QuestionUsing vector over index? Pin
bosfan24-Sep-07 0:44
bosfan24-Sep-07 0:44 
AnswerRe: Using vector over index? Pin
Cedric Moonen24-Sep-07 0:52
Cedric Moonen24-Sep-07 0:52 
GeneralRe: Using vector over index? Pin
bosfan24-Sep-07 2:27
bosfan24-Sep-07 2:27 
AnswerRe: Using vector over index? Pin
nbugalia24-Sep-07 0:58
nbugalia24-Sep-07 0:58 
GeneralThats much slower Pin
jhwurmbach24-Sep-07 1:23
jhwurmbach24-Sep-07 1:23 
GeneralRe: Thats much slower Pin
bosfan24-Sep-07 3:37
bosfan24-Sep-07 3:37 
AnswerRe: Using vector over index? Pin
Signal-926-Sep-07 15:10
Signal-926-Sep-07 15:10 
QuestionTlsSetValue Pin
nitin324-Sep-07 0:38
nitin324-Sep-07 0:38 
AnswerRe: TlsSetValue Pin
David Crow24-Sep-07 3:04
David Crow24-Sep-07 3:04 

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.