Click here to Skip to main content
15,918,275 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Your method 1 is the right one. By the way, it should be Result[0]=result0, without your extra *.
If you can afford it, I suggest you forget about char **s and use vectors and strings instead, like this:
std::vector<std::string> Results(100); // 100 elements
...
Results[0]="Hi dude"; // automatically accomodates as much memory as needed
...
Automatic cleanup, no worries about getting your strings out of bounds, etc. Give it a try.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
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 
GeneralRe: Property Pages question Pin
Frank Deo16-Nov-01 3:48
Frank Deo16-Nov-01 3:48 

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.