Click here to Skip to main content
16,016,795 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: topic for project Pin
V.G14-Aug-05 3:46
V.G14-Aug-05 3:46 
Questionchange single instance app to multi instance? Pin
ThinkingPrometheus13-Aug-05 1:52
ThinkingPrometheus13-Aug-05 1:52 
AnswerRe: change single instance app to multi instance? Pin
John R. Shaw13-Aug-05 22:11
John R. Shaw13-Aug-05 22:11 
GeneralRe: change single instance app to multi instance? Pin
ThinkingPrometheus15-Aug-05 20:21
ThinkingPrometheus15-Aug-05 20:21 
GeneralRe: change single instance app to multi instance? Pin
Why_Am_I_Anonymous_Again16-Aug-05 21:57
sussWhy_Am_I_Anonymous_Again16-Aug-05 21:57 
GeneralRe: change single instance app to multi instance? Pin
ThinkingPrometheus16-Aug-05 22:11
ThinkingPrometheus16-Aug-05 22:11 
GeneralMonitoring Websites Pin
nripun13-Aug-05 1:15
nripun13-Aug-05 1:15 
GeneralReference question Pin
LiYS12-Aug-05 23:55
LiYS12-Aug-05 23:55 
It is said that "Once a reference is initialized to an object, it cannot be
changed to refer to another object."
But does this only apply locally. The following codes can compile successfully inside function which is controdict with the rule

int x;
int y;
int& r = x;
r = y;
-----------

Another question

extern class A;
void h(A*& a) 
{
	...
}
int main() {
A a; 
h(&a); // Error ,Line# 2
A *b = New A;
h(b)   // Correct


Why line 2 can't pass the compilation? I see no difference between "&a" and "b"



GeneralRe: Reference question Pin
Bhaskar13-Aug-05 1:51
Bhaskar13-Aug-05 1:51 
GeneralRe: Reference question Pin
LiYS13-Aug-05 3:49
LiYS13-Aug-05 3:49 
GeneralRe: Reference question Pin
Jose Lamas Rios13-Aug-05 6:58
Jose Lamas Rios13-Aug-05 6:58 
GeneralRe: Reference question Pin
S. Senthil Kumar13-Aug-05 7:04
S. Senthil Kumar13-Aug-05 7:04 
GeneralRe: Reference question Pin
Jose Lamas Rios13-Aug-05 7:23
Jose Lamas Rios13-Aug-05 7:23 
GeneralRe: Reference question Pin
LiYS13-Aug-05 16:19
LiYS13-Aug-05 16:19 
GeneralRe: Reference question Pin
S. Senthil Kumar13-Aug-05 6:59
S. Senthil Kumar13-Aug-05 6:59 
Generalshow background image on a window Pin
Ankit Aneja12-Aug-05 23:46
Ankit Aneja12-Aug-05 23:46 
GeneralRe: show background image on a window Pin
ThatsAlok13-Aug-05 0:08
ThatsAlok13-Aug-05 0:08 
GeneralRe: show background image on a window Pin
Ankit Aneja13-Aug-05 3:01
Ankit Aneja13-Aug-05 3:01 
GeneralRe: show background image on a window Pin
Achim Klein13-Aug-05 8:06
Achim Klein13-Aug-05 8:06 
GeneralRe: show background image on a window Pin
Ankit Aneja13-Aug-05 18:50
Ankit Aneja13-Aug-05 18:50 
GeneralRe: show background image on a window Pin
Jose Lamas Rios13-Aug-05 22:32
Jose Lamas Rios13-Aug-05 22:32 
GeneralRe: show background image on a window Pin
Ankit Aneja13-Aug-05 23:13
Ankit Aneja13-Aug-05 23:13 
GeneralRe: show background image on a window Pin
Achim Klein14-Aug-05 2:44
Achim Klein14-Aug-05 2:44 
GeneralSetThreadLocale() Pin
Ali Tavakol12-Aug-05 23:45
Ali Tavakol12-Aug-05 23:45 
GeneralProcess Priority Pin
Abd.Eskandari12-Aug-05 23:34
Abd.Eskandari12-Aug-05 23:34 

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.