Click here to Skip to main content
15,885,890 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Calling GetDlgItem in a static method Pin
RajiRaghu9-Aug-06 23:43
RajiRaghu9-Aug-06 23:43 
GeneralRe: Calling GetDlgItem in a static method Pin
Viorel.10-Aug-06 0:03
Viorel.10-Aug-06 0:03 
AnswerRe: Calling GetDlgItem in a static method Pin
ThatsAlok10-Aug-06 0:47
ThatsAlok10-Aug-06 0:47 
AnswerRe: Calling GetDlgItem in a static method Pin
James R. Twine10-Aug-06 1:37
James R. Twine10-Aug-06 1:37 
AnswerRe: Calling GetDlgItem in a static method Pin
Hamid_RT10-Aug-06 8:28
Hamid_RT10-Aug-06 8:28 
Question'return' problem Pin
Ali Tavakol9-Aug-06 21:53
Ali Tavakol9-Aug-06 21:53 
AnswerRe: 'return' problem Pin
Cedric Moonen9-Aug-06 21:59
Cedric Moonen9-Aug-06 21:59 
AnswerRe: 'return' problem Pin
toxcct9-Aug-06 22:01
toxcct9-Aug-06 22:01 
Ali Tavakol wrote:
is this code safe?


nope. your f() function returns a pointer to a local variable, so, outside the function, the caller could get anything, like an invalid pointer.


Ali Tavakol wrote:
strcpy(f(), "All");


what ??? you're trying to write "All" into a function ?? WTF | :WTF:


TOXCCT >>> GEII power

[VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

GeneralRe: 'return' problem Pin
Cedric Moonen9-Aug-06 22:04
Cedric Moonen9-Aug-06 22:04 
GeneralRe: 'return' problem Pin
toxcct9-Aug-06 22:08
toxcct9-Aug-06 22:08 
AnswerRe: 'return' problem Pin
Justin Tay9-Aug-06 22:05
Justin Tay9-Aug-06 22:05 
GeneralRe: 'return' problem Pin
Ali Tavakol9-Aug-06 22:10
Ali Tavakol9-Aug-06 22:10 
GeneralRe: 'return' problem [modified] Pin
Justin Tay9-Aug-06 22:21
Justin Tay9-Aug-06 22:21 
GeneralRe: 'return' problem Pin
Cedric Moonen9-Aug-06 22:15
Cedric Moonen9-Aug-06 22:15 
GeneralRe: 'return' problem Pin
Justin Tay9-Aug-06 22:20
Justin Tay9-Aug-06 22:20 
GeneralRe: 'return' problem Pin
Cedric Moonen9-Aug-06 22:28
Cedric Moonen9-Aug-06 22:28 
GeneralRe: 'return' problem [modified] Pin
Ali Tavakol9-Aug-06 22:32
Ali Tavakol9-Aug-06 22:32 
GeneralRe: 'return' problem [modified] Pin
Justin Tay9-Aug-06 22:36
Justin Tay9-Aug-06 22:36 
GeneralRe: 'return' problem Pin
Viorel.9-Aug-06 22:21
Viorel.9-Aug-06 22:21 
GeneralRe: 'return' problem Pin
Zac Howland10-Aug-06 4:08
Zac Howland10-Aug-06 4:08 
GeneralRe: 'return' problem Pin
James R. Twine10-Aug-06 1:32
James R. Twine10-Aug-06 1:32 
Questionstrange problem with MSVCRT Pin
sach!!9-Aug-06 21:49
sach!!9-Aug-06 21:49 
AnswerRe: strange problem with MSVCRT Pin
Hamid_RT9-Aug-06 22:00
Hamid_RT9-Aug-06 22:00 
GeneralRe: strange problem with MSVCRT Pin
sach!!9-Aug-06 22:24
sach!!9-Aug-06 22:24 
AnswerRe: strange problem with MSVCRT Pin
AbhishekBK9-Aug-06 22:02
AbhishekBK9-Aug-06 22:02 

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.