Click here to Skip to main content
15,914,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Nooby would like to know how to make a button send Ctrl 1 Pin
Stephen Hewitt26-Feb-08 18:09
Stephen Hewitt26-Feb-08 18:09 
GeneralRe: Nooby would like to know how to make a button send Ctrl 1 Pin
ThatsAlok26-Feb-08 20:12
ThatsAlok26-Feb-08 20:12 
GeneralRe: Nooby would like to know how to make a button send Ctrl 1 Pin
doorprize2-Mar-08 17:46
doorprize2-Mar-08 17:46 
Generalspace in string Pin
George_George26-Feb-08 15:23
George_George26-Feb-08 15:23 
GeneralRe: space in string Pin
User 58385226-Feb-08 15:49
User 58385226-Feb-08 15:49 
GeneralRe: space in string Pin
George_George26-Feb-08 16:01
George_George26-Feb-08 16:01 
GeneralRe: space in string Pin
User 58385226-Feb-08 16:11
User 58385226-Feb-08 16:11 
GeneralRe: space in string Pin
George_George26-Feb-08 16:26
George_George26-Feb-08 16:26 
Hi Josh,


Thanks for so much information. Suppose in your code for class string, there are two functions, foo and goo, foo invokes goo. Then,

1. In goo, it allocates a string, small. In your point, it should be on the stack on function goo, right?

2. Goo returns the string by reference to foo;

3. Then foo will refer to some space in goo function stack, which is unwound when goo returns.

Is it safe?

BTW:

Josh Gray wrote:
There is only one stack, you can consider it a global stack I guess


I mean the function call stack. You mean there is another global stack? Intereted in that, do you have any recommended links for the memory space?


regards,
George
GeneralRe: space in string Pin
User 58385226-Feb-08 16:39
User 58385226-Feb-08 16:39 
GeneralRe: space in string Pin
George_George26-Feb-08 16:46
George_George26-Feb-08 16:46 
GeneralRe: space in string Pin
User 58385226-Feb-08 16:56
User 58385226-Feb-08 16:56 
GeneralRe: space in string Pin
George_George26-Feb-08 17:31
George_George26-Feb-08 17:31 
GeneralRe: space in string Pin
David Crow26-Feb-08 17:16
David Crow26-Feb-08 17:16 
GeneralRe: space in string Pin
George_George26-Feb-08 17:32
George_George26-Feb-08 17:32 
Generalsilently installing .reg file Pin
act_x26-Feb-08 10:58
act_x26-Feb-08 10:58 
GeneralRe: silently installing .reg file Pin
Dave Calkins26-Feb-08 16:16
Dave Calkins26-Feb-08 16:16 
GeneralRe: silently installing .reg file Pin
ThatsAlok27-Feb-08 16:10
ThatsAlok27-Feb-08 16:10 
QuestionIs this book on the standard library worth it? Pin
markt26-Feb-08 5:53
markt26-Feb-08 5:53 
AnswerRe: Is this book on the standard library worth it? Pin
Dave Calkins26-Feb-08 6:17
Dave Calkins26-Feb-08 6:17 
AnswerRe: Is this book on the standard library worth it? Pin
Nemanja Trifunovic26-Feb-08 7:21
Nemanja Trifunovic26-Feb-08 7:21 
GeneralRe: Is this book on the standard library worth it? Pin
markt26-Feb-08 11:29
markt26-Feb-08 11:29 
GeneralRe: Is this book on the standard library worth it? Pin
User 58385226-Feb-08 15:50
User 58385226-Feb-08 15:50 
GeneralProblems receiving highspeed data using CAsyncSocket::OnReceive() Pin
97C5ENVY26-Feb-08 4:51
97C5ENVY26-Feb-08 4:51 
GeneralRe: Problems receiving highspeed data using CAsyncSocket::OnReceive() Pin
Mark Salsbery26-Feb-08 5:23
Mark Salsbery26-Feb-08 5:23 
GeneralRe: Problems receiving highspeed data using CAsyncSocket::OnReceive() Pin
97C5ENVY26-Feb-08 7:27
97C5ENVY26-Feb-08 7:27 

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.