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

C / C++ / MFC

 
GeneralRe: Problem subclassing list of owner-drawn combobox Pin
Paul Vickery28-May-04 1:22
professionalPaul Vickery28-May-04 1:22 
QuestionHow to save GDI+ bmp as CMYK color GDI+ bmp Pin
pubududilena27-May-04 23:44
pubududilena27-May-04 23:44 
Questionchar* arr = “Nisse”; ? Pin
anderslundsgard27-May-04 23:34
anderslundsgard27-May-04 23:34 
AnswerRe: char* arr = “Nisse”; ? Pin
Roger Allen27-May-04 23:38
Roger Allen27-May-04 23:38 
AnswerRe: char* arr = “Nisse”; ? Pin
toxcct27-May-04 23:38
toxcct27-May-04 23:38 
AnswerRe: char* arr = “Nisse”; ? Pin
jmkhael28-May-04 0:55
jmkhael28-May-04 0:55 
Answer[Message Deleted] Pin
Naren Neelamegam28-May-04 19:58
Naren Neelamegam28-May-04 19:58 
GeneralRe: char* arr = “Nisse”; ? Pin
toroso7328-May-04 21:04
toroso7328-May-04 21:04 
loveablevirus wrote:
So your code,
char* arr = “Nisse”;
may work right at most times... but will make problem at some times.


The code is perfectly legal and will work at all times. "Nisse" will be allocated by the compiler in the global memory segment as a char[6] (null-terminated). arr is a stack variable which is pointing to this global memory. All is safe -- as long as you treat it as a char[6].

And since you have not allocated the memory (with new) you should not do a delete.
GeneralExperts pls help ! General question Pin
Member 115017627-May-04 21:49
Member 115017627-May-04 21:49 
Generalfullscreen dialog control Pin
Bilge Kaan27-May-04 21:30
Bilge Kaan27-May-04 21:30 
GeneralRe: fullscreen dialog control Pin
Ryan Binns28-May-04 0:57
Ryan Binns28-May-04 0:57 
QuestionHow can i make ComboBox read only Pin
Zeeshan Bilal27-May-04 20:39
Zeeshan Bilal27-May-04 20:39 
AnswerRe: How can i make ComboBox read only Pin
toxcct27-May-04 21:53
toxcct27-May-04 21:53 
GeneralA Dialog Box Problem Pin
Imtiaz Murtaza27-May-04 19:37
Imtiaz Murtaza27-May-04 19:37 
GeneralRe: A Dialog Box Problem Pin
Anthony_Yio27-May-04 19:57
Anthony_Yio27-May-04 19:57 
GeneralRe: A Dialog Box Problem Pin
Zeeshan Bilal27-May-04 20:36
Zeeshan Bilal27-May-04 20:36 
GeneralRe: A Dialog Box Problem Pin
Ravi Bhavnani28-May-04 2:36
professionalRavi Bhavnani28-May-04 2:36 
GeneralRe: A Dialog Box Problem [modified] Pin
Naren Neelamegam28-May-04 20:11
Naren Neelamegam28-May-04 20:11 
GeneralDialog Box Problem Pin
Imtiaz Murtaza27-May-04 19:37
Imtiaz Murtaza27-May-04 19:37 
GeneralRe: Dialog Box Problem Pin
GDavy27-May-04 19:40
GDavy27-May-04 19:40 
GeneralRe: Dialog Box Problem Pin
toxcct27-May-04 21:50
toxcct27-May-04 21:50 
QuestionHow to set a timer to a dialog Pin
Zeeshan Bilal27-May-04 18:44
Zeeshan Bilal27-May-04 18:44 
AnswerRe: How to set a timer to a dialog Pin
Frank K27-May-04 19:36
Frank K27-May-04 19:36 
AnswerRe: How to set a timer to a dialog Pin
Member 16246227-May-04 21:18
Member 16246227-May-04 21:18 
Generalthe Clear() function Pin
Eversman27-May-04 17:22
Eversman27-May-04 17:22 

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.