Click here to Skip to main content
15,908,274 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CreateFile Pin
T21023-Jan-11 3:31
T21023-Jan-11 3:31 
QuestionRe: CreateFile Pin
David Crow3-Jan-11 3:44
David Crow3-Jan-11 3:44 
AnswerRe: CreateFile Pin
_Erik_3-Jan-11 4:11
_Erik_3-Jan-11 4:11 
AnswerRe: CreateFile Pin
«_Superman_»3-Jan-11 5:55
professional«_Superman_»3-Jan-11 5:55 
AnswerRe: CreateFile Pin
Emilio Garavaglia3-Jan-11 9:12
Emilio Garavaglia3-Jan-11 9:12 
AnswerRe: CreateFile Pin
Rajesh R Subramanian3-Jan-11 22:20
professionalRajesh R Subramanian3-Jan-11 22:20 
GeneralRe: CreateFile Pin
Emilio Garavaglia3-Jan-11 23:52
Emilio Garavaglia3-Jan-11 23:52 
GeneralRe: CreateFile Pin
Rajesh R Subramanian3-Jan-11 23:59
professionalRajesh R Subramanian3-Jan-11 23:59 
QuestionSize of an empty class Pin
pix_programmer3-Jan-11 2:31
pix_programmer3-Jan-11 2:31 
AnswerRe: Size of an empty class PinPopular
markkuk3-Jan-11 2:37
markkuk3-Jan-11 2:37 
GeneralRe: Size of an empty class Pin
jk chan4-Jan-11 1:52
jk chan4-Jan-11 1:52 
AnswerRe: Size of an empty class Pin
T21023-Jan-11 2:43
T21023-Jan-11 2:43 
AnswerRe: Size of an empty class PinPopular
«_Superman_»3-Jan-11 6:03
professional«_Superman_»3-Jan-11 6:03 
GeneralRe: Size of an empty class Pin
Emilio Garavaglia3-Jan-11 9:16
Emilio Garavaglia3-Jan-11 9:16 
QuestionRe: Size of an empty class Pin
CPallini3-Jan-11 9:28
mveCPallini3-Jan-11 9:28 
AnswerRe: Size of an empty class Pin
Emilio Garavaglia3-Jan-11 9:40
Emilio Garavaglia3-Jan-11 9:40 
GeneralRe: Size of an empty class Pin
CPallini3-Jan-11 9:45
mveCPallini3-Jan-11 9:45 
AnswerRe: Size of an empty class Pin
Shivanand Gupta3-Jan-11 18:21
Shivanand Gupta3-Jan-11 18:21 
Questionarray of char* Pin
piul3-Jan-11 0:14
piul3-Jan-11 0:14 
Hi there!

I need an array of strings of char * type and I am not clear about how to free up memory after use. The code below does not work.
char * ptr_p_c[3];
ptr_p_c[0] = new char;
strcpy (ptr_p_c[0], "hi there");
ptr_p_c[1] = new char;
strcpy (ptr_p_c[1], "whatever");

delete ptr_p_c;


I know I shouldn't be using this type for strings and all this. Believe me, I've tried repeatedly to convince my customer this is not the right way to do things, but unfortunately it is not my decission...

Thanks a lot.
AnswerRe: array of char* Pin
bleedingfingers3-Jan-11 0:30
bleedingfingers3-Jan-11 0:30 
GeneralRe: array of char* Pin
piul3-Jan-11 0:40
piul3-Jan-11 0:40 
GeneralRe: array of char* Pin
bleedingfingers3-Jan-11 0:56
bleedingfingers3-Jan-11 0:56 
AnswerRe: array of char* Pin
CPallini3-Jan-11 0:50
mveCPallini3-Jan-11 0:50 
GeneralRe: array of char* Pin
T21023-Jan-11 1:04
T21023-Jan-11 1:04 
GeneralRe: array of char* Pin
Alan Balkany5-Jan-11 4:15
Alan Balkany5-Jan-11 4:15 

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.