Click here to Skip to main content
15,921,989 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDrawText(String,&Rect,DT_VCENTER|DT_WORDBREAK) doesn't work Pin
jade_dragon16-Nov-01 0:23
jade_dragon16-Nov-01 0:23 
GeneralRe: DrawText(String,&Rect,DT_VCENTER|DT_WORDBREAK) doesn't work Pin
Chris Maunder16-Nov-01 1:03
cofounderChris Maunder16-Nov-01 1:03 
GeneralThank you for your replay,but ... Pin
jade_dragon16-Nov-01 3:43
jade_dragon16-Nov-01 3:43 
GeneralRe: Thank you for your replay,but ... Pin
16-Nov-01 7:41
suss16-Nov-01 7:41 
Generalproblem to run nmake in the createprocess function Pin
BegZ15-Nov-01 23:20
BegZ15-Nov-01 23:20 
GeneralMessage handling with derived class Pin
15-Nov-01 22:48
suss15-Nov-01 22:48 
GeneralMFC 4.2 and 7.0 Pin
15-Nov-01 22:02
suss15-Nov-01 22:02 
GeneralMemory Free Pin
EricXu15-Nov-01 21:31
EricXu15-Nov-01 21:31 
Question:
I wanna get a array of string, but I am not sure the dimension of the array.
like this:
int caller()
{
char **Results=new char*[100];

myfunc();
...
}
then
int myfunc(char ***Results)
{

char* resutl0 =(char*) malloc(100);
..
char* resutl1 =(char*) malloc(200);
...
char* resutl2 =(char*) malloc(300);
...

(*Result)[0] = resutl0 ;
(*Result)[1] = resutl1 ;
(*Result)[2] = resutl2 ;

...
}

after finished some code, i wanna free the memory. so, how can i do?
1.
free(result0);
free(result1);
free(result1);
free(Results);
??
2. GlobalFree(Results)
??
3 ??

Thanks.



Code is still code.
GeneralRe: Memory Free Pin
Joaquín M López Muñoz16-Nov-01 3:04
Joaquín M López Muñoz16-Nov-01 3:04 
GeneralMultiple views, same document Pin
15-Nov-01 21:20
suss15-Nov-01 21:20 
GeneralRe: Multiple views, same document Pin
Michael P Butler15-Nov-01 22:17
Michael P Butler15-Nov-01 22:17 
GeneralRe: Multiple views, same document Pin
15-Nov-01 22:26
suss15-Nov-01 22:26 
GeneralAbout MouseMove and image Pin
chen15-Nov-01 21:03
chen15-Nov-01 21:03 
GeneralAdding text instead of icon in TrayIcon Pin
og15-Nov-01 20:32
og15-Nov-01 20:32 
Generalsome Question about setsockopt() Pin
goury15-Nov-01 15:50
goury15-Nov-01 15:50 
GeneralRe: some Question about setsockopt() Pin
Nish Nishant15-Nov-01 17:27
sitebuilderNish Nishant15-Nov-01 17:27 
GeneralRe: some Question about setsockopt() Pin
goury15-Nov-01 17:52
goury15-Nov-01 17:52 
GeneralDrawing in a FormView after Controls are drawn Pin
15-Nov-01 12:31
suss15-Nov-01 12:31 
QuestionDAAAHH! What does this error message means? Pin
Rickard Andersson2015-Nov-01 12:00
Rickard Andersson2015-Nov-01 12:00 
AnswerRe: DAAAHH! What does this error message means? Pin
Bill Wilson15-Nov-01 12:22
Bill Wilson15-Nov-01 12:22 
AnswerRe: DAAAHH! What does this error message means? Pin
Bill Wilson15-Nov-01 12:22
Bill Wilson15-Nov-01 12:22 
AnswerRe: DAAAHH! What does this error message means? Pin
Rick York16-Nov-01 18:50
mveRick York16-Nov-01 18:50 
GeneralProperty Pages question Pin
RobJones15-Nov-01 9:03
RobJones15-Nov-01 9:03 
GeneralRe: Property Pages question Pin
Bill Wilson15-Nov-01 12:30
Bill Wilson15-Nov-01 12:30 
GeneralRe: Property Pages question Pin
RobJones16-Nov-01 3:18
RobJones16-Nov-01 3:18 

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.