Click here to Skip to main content
15,923,164 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDDK from Windows2K Pin
y_seval21-Apr-03 1:10
y_seval21-Apr-03 1:10 
GeneralRe: DDK from Windows2K Pin
Bartosz Bien21-Apr-03 2:37
Bartosz Bien21-Apr-03 2:37 
QuestionHow to add a scrollbar in popup menu Pin
FT pere21-Apr-03 0:29
sussFT pere21-Apr-03 0:29 
QuestionHow to create ListView with _always_visible_vertical_scroll_bar_ ? Pin
s_k21-Apr-03 0:03
s_k21-Apr-03 0:03 
AnswerRe: How to create ListView with _always_visible_vertical_scroll_bar_ ? Pin
KVRN Kiran Kumar21-Apr-03 1:31
KVRN Kiran Kumar21-Apr-03 1:31 
GeneralRe: Copying and Pasting file of any type Pin
dabs21-Apr-03 4:43
dabs21-Apr-03 4:43 
GeneralQuestion about local variable used as a reference. Pin
George220-Apr-03 22:18
George220-Apr-03 22:18 
GeneralRe: Question about local variable used as a reference. Pin
Joaquín M López Muñoz20-Apr-03 22:36
Joaquín M López Muñoz20-Apr-03 22:36 
In the second way of usage, references are merely a convenient way to designate other variables much the same way as pointers do, but without the -> mess. You only have to keep in mind a subtle but important difference between references and pointers. Consider the following:
T t1;
T t1b;
T * pt2=&t1; //OK
pt2=&t1b; // OK, now pt2 points to t1b
The same cannot be done with references:
T t1;
T t1b;
T & t2=t1; //OK
t2=t1b; // WATCH OUT!
The last sentence does not make t2 "point" to t1b: instead, it copies t1b into t1, exactly as if you had wrote
t1=t1b;
In C++ jargon, this fact is commonly expressed as references do not rebind. Keep it in mind and be happy.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: Question about local variable used as a reference. Pin
George220-Apr-03 23:27
George220-Apr-03 23:27 
GeneralURGENT HELP REQUIRED:mad: Pin
Cyberizen20-Apr-03 22:01
Cyberizen20-Apr-03 22:01 
GeneralRe: URGENT HELP REQUIRED:mad: Pin
Joaquín M López Muñoz20-Apr-03 22:39
Joaquín M López Muñoz20-Apr-03 22:39 
QuestionWhere can I find tutorial about interface? Pin
George220-Apr-03 21:56
George220-Apr-03 21:56 
GeneralTemplate overriding of operator [] Pin
Alexandru Savescu20-Apr-03 21:20
Alexandru Savescu20-Apr-03 21:20 
GeneralRe: Template overriding of operator [] Pin
Joaquín M López Muñoz20-Apr-03 21:51
Joaquín M López Muñoz20-Apr-03 21:51 
GeneralTiming problem in run-time loading DLL Pin
pklim20-Apr-03 20:17
pklim20-Apr-03 20:17 
QuestionCListCtrl: AutoArrage & Ascending Sort? Pin
Bùi Phạm Minh Trí20-Apr-03 16:56
Bùi Phạm Minh Trí20-Apr-03 16:56 
GeneralQuestion about a edit box! Help! Pin
dxhdxh20-Apr-03 14:09
dxhdxh20-Apr-03 14:09 
GeneralRe: Question about a edit box! Help! Pin
Nick Parker20-Apr-03 16:57
protectorNick Parker20-Apr-03 16:57 
GeneralRe: Question about a edit box! Help! Pin
DuFF21-Apr-03 7:08
DuFF21-Apr-03 7:08 
GeneralI need help with MATLAB questions Pin
nxz420-Apr-03 11:17
nxz420-Apr-03 11:17 
GeneralRe: I need help with MATLAB questions Pin
Nick Parker20-Apr-03 16:51
protectorNick Parker20-Apr-03 16:51 
GeneralRe: I need help with MATLAB questions Pin
Anonymous20-Apr-03 21:52
Anonymous20-Apr-03 21:52 
GeneralRe: I need help with MATLAB questions Pin
Toni7821-Apr-03 11:58
Toni7821-Apr-03 11:58 
GeneralUsing the serial com port Pin
Q15002220-Apr-03 10:05
Q15002220-Apr-03 10:05 
GeneralRe: Using the serial com port Pin
anju20-Apr-03 17:38
anju20-Apr-03 17:38 

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.