Click here to Skip to main content
14,831,225 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to open a windows volume with CreateFile under Windows 98? Pin
kakan10-Aug-06 0:34
professionalkakan10-Aug-06 0:34 
AnswerRe: How to open a windows volume with CreateFile under Windows 98? Pin
David Crow10-Aug-06 3:11
MemberDavid Crow10-Aug-06 3:11 
QuestionRe: How to open a windows volume with CreateFile under Windows 98? Pin
Amanda Davis10-Aug-06 15:43
MemberAmanda Davis10-Aug-06 15:43 
QuestionCalling GetDlgItem in a static method Pin
RajiRaghu9-Aug-06 22:19
MemberRajiRaghu9-Aug-06 22:19 
AnswerRe: Calling GetDlgItem in a static method Pin
Cedric Moonen9-Aug-06 22:25
MemberCedric Moonen9-Aug-06 22:25 
AnswerRe: Calling GetDlgItem in a static method Pin
Viorel.9-Aug-06 22:41
MemberViorel.9-Aug-06 22:41 
GeneralRe: Calling GetDlgItem in a static method Pin
RajiRaghu9-Aug-06 23:20
MemberRajiRaghu9-Aug-06 23:20 
QuestionRe: Calling GetDlgItem in a static method Pin
Viorel.9-Aug-06 23:28
MemberViorel.9-Aug-06 23:28 
AnswerRe: Calling GetDlgItem in a static method Pin
RajiRaghu9-Aug-06 23:43
MemberRajiRaghu9-Aug-06 23:43 
GeneralRe: Calling GetDlgItem in a static method Pin
Viorel.10-Aug-06 0:03
MemberViorel.10-Aug-06 0:03 
AnswerRe: Calling GetDlgItem in a static method Pin
ThatsAlok10-Aug-06 0:47
MemberThatsAlok10-Aug-06 0:47 
AnswerRe: Calling GetDlgItem in a static method Pin
James R. Twine10-Aug-06 1:37
MemberJames R. Twine10-Aug-06 1:37 
AnswerRe: Calling GetDlgItem in a static method Pin
Hamid_RT10-Aug-06 8:28
MemberHamid_RT10-Aug-06 8:28 
Question'return' problem Pin
Ali Tavakol9-Aug-06 21:53
MemberAli Tavakol9-Aug-06 21:53 
AnswerRe: 'return' problem Pin
Cedric Moonen9-Aug-06 21:59
MemberCedric Moonen9-Aug-06 21:59 
Ali Tavakol wrote:
is this code safe?


Nope. You are returning the address of a temporary string. Thus, the memory is not protected anymore. Sure, the pointers still 'points' at a the same address but the contents are not protected anymore, thus they can be overwritten.


Cédric Moonen
Software developer

Charting control

AnswerRe: 'return' problem Pin
toxcct9-Aug-06 22:01
Membertoxcct9-Aug-06 22:01 
GeneralRe: 'return' problem Pin
Cedric Moonen9-Aug-06 22:04
MemberCedric Moonen9-Aug-06 22:04 
GeneralRe: 'return' problem Pin
toxcct9-Aug-06 22:08
Membertoxcct9-Aug-06 22:08 
AnswerRe: 'return' problem Pin
Justin Tay9-Aug-06 22:05
MemberJustin Tay9-Aug-06 22:05 
GeneralRe: 'return' problem Pin
Ali Tavakol9-Aug-06 22:10
MemberAli Tavakol9-Aug-06 22:10 
GeneralRe: 'return' problem [modified] Pin
Justin Tay9-Aug-06 22:21
MemberJustin Tay9-Aug-06 22:21 
GeneralRe: 'return' problem Pin
Cedric Moonen9-Aug-06 22:15
MemberCedric Moonen9-Aug-06 22:15 
GeneralRe: 'return' problem Pin
Justin Tay9-Aug-06 22:20
MemberJustin Tay9-Aug-06 22:20 
GeneralRe: 'return' problem Pin
Cedric Moonen9-Aug-06 22:28
MemberCedric Moonen9-Aug-06 22:28 
GeneralRe: 'return' problem [modified] Pin
Ali Tavakol9-Aug-06 22:32
MemberAli Tavakol9-Aug-06 22:32 

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.