Click here to Skip to main content
14,768,455 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Calling GetDlgItem in a static method Pin
RajiRaghu10-Aug-06 0:43
MemberRajiRaghu10-Aug-06 0:43 
GeneralRe: Calling GetDlgItem in a static method Pin
Viorel.10-Aug-06 1:03
MemberViorel.10-Aug-06 1:03 
AnswerRe: Calling GetDlgItem in a static method Pin
ThatsAlok10-Aug-06 1:47
MemberThatsAlok10-Aug-06 1:47 
AnswerRe: Calling GetDlgItem in a static method Pin
James R. Twine10-Aug-06 2:37
MemberJames R. Twine10-Aug-06 2:37 
AnswerRe: Calling GetDlgItem in a static method Pin
Hamid_RT10-Aug-06 9:28
MemberHamid_RT10-Aug-06 9:28 
Question'return' problem Pin
Ali Tavakol9-Aug-06 22:53
MemberAli Tavakol9-Aug-06 22:53 
AnswerRe: 'return' problem Pin
Cedric Moonen9-Aug-06 22:59
MemberCedric Moonen9-Aug-06 22:59 
AnswerRe: 'return' problem Pin
toxcct9-Aug-06 23:01
Membertoxcct9-Aug-06 23: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 23:04
MemberCedric Moonen9-Aug-06 23:04 
GeneralRe: 'return' problem Pin
toxcct9-Aug-06 23:08
Membertoxcct9-Aug-06 23:08 
AnswerRe: 'return' problem Pin
Justin Tay9-Aug-06 23:05
MemberJustin Tay9-Aug-06 23:05 
GeneralRe: 'return' problem Pin
Ali Tavakol9-Aug-06 23:10
MemberAli Tavakol9-Aug-06 23:10 
GeneralRe: 'return' problem [modified] Pin
Justin Tay9-Aug-06 23:21
MemberJustin Tay9-Aug-06 23:21 
GeneralRe: 'return' problem Pin
Cedric Moonen9-Aug-06 23:15
MemberCedric Moonen9-Aug-06 23:15 
GeneralRe: 'return' problem Pin
Justin Tay9-Aug-06 23:20
MemberJustin Tay9-Aug-06 23:20 
GeneralRe: 'return' problem Pin
Cedric Moonen9-Aug-06 23:28
MemberCedric Moonen9-Aug-06 23:28 
GeneralRe: 'return' problem [modified] Pin
Ali Tavakol9-Aug-06 23:32
MemberAli Tavakol9-Aug-06 23:32 
GeneralRe: 'return' problem [modified] Pin
Justin Tay9-Aug-06 23:36
MemberJustin Tay9-Aug-06 23:36 
GeneralRe: 'return' problem Pin
Viorel.9-Aug-06 23:21
MemberViorel.9-Aug-06 23:21 
GeneralRe: 'return' problem Pin
Zac Howland10-Aug-06 5:08
MemberZac Howland10-Aug-06 5:08 
GeneralRe: 'return' problem Pin
James R. Twine10-Aug-06 2:32
MemberJames R. Twine10-Aug-06 2:32 
Questionstrange problem with MSVCRT Pin
sach!!9-Aug-06 22:49
Membersach!!9-Aug-06 22:49 
AnswerRe: strange problem with MSVCRT Pin
Hamid_RT9-Aug-06 23:00
MemberHamid_RT9-Aug-06 23:00 
GeneralRe: strange problem with MSVCRT Pin
sach!!9-Aug-06 23:24
Membersach!!9-Aug-06 23:24 
AnswerRe: strange problem with MSVCRT Pin
AbhishekBK9-Aug-06 23:02
MemberAbhishekBK9-Aug-06 23: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.