Click here to Skip to main content
15,885,871 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to make faster or any way to Speed up UI? Pin
Iain Clarke, Warrior Programmer12-Nov-09 23:15
Iain Clarke, Warrior Programmer12-Nov-09 23:15 
QuestionRe: How to make faster or any way to Speed up UI? Pin
David Crow13-Nov-09 3:49
David Crow13-Nov-09 3:49 
QuestionDLL creation problem Pin
Game-point12-Nov-09 17:28
Game-point12-Nov-09 17:28 
AnswerRe: DLL creation problem Pin
«_Superman_»12-Nov-09 17:48
professional«_Superman_»12-Nov-09 17:48 
GeneralRe: DLL creation problem Pin
Game-point12-Nov-09 18:40
Game-point12-Nov-09 18:40 
GeneralRe: DLL creation problem Pin
«_Superman_»12-Nov-09 18:43
professional«_Superman_»12-Nov-09 18:43 
GeneralRe: DLL creation problem Pin
Game-point12-Nov-09 18:58
Game-point12-Nov-09 18:58 
GeneralRe: DLL creation problem Pin
«_Superman_»12-Nov-09 19:05
professional«_Superman_»12-Nov-09 19:05 
If you are accepting or creating it inside your program, create new variables.
char** newvar =(char**) malloc (3* sizeof (char));
newvar[0] = (char*) malloc(sizeof(char)*10);
strcpy_s(newvar[0], 10, "Hello");
newvar[1] = (char*) malloc(sizeof(char)*10);
strcpy_s(newvar[1], 10, "World");
newvar[2] = (char*) malloc(sizeof(char)*10);
strcpy_s(newvar[2], 10, "Goodbye");

You really should do it this way though (The C++ way) -
std::vector<std::string> myvar;
std::string str;

str = "Hello";
myvar.push_back(str);

str = "World";
myvar.push_back(str);

str = "Goodbye";
myvar.push_back(str);


«_Superman
I love work. It gives me something to do between weekends.

Microsoft MVP (Visual C++)

GeneralRe: DLL creation problem Pin
Game-point12-Nov-09 19:19
Game-point12-Nov-09 19:19 
QuestionVisual C++ Pin
Jacobb Michael12-Nov-09 17:10
Jacobb Michael12-Nov-09 17:10 
AnswerRe: Visual C++ Pin
«_Superman_»12-Nov-09 17:45
professional«_Superman_»12-Nov-09 17:45 
GeneralRe: Visual C++ Pin
Jacobb Michael12-Nov-09 19:40
Jacobb Michael12-Nov-09 19:40 
GeneralRe: Visual C++ Pin
«_Superman_»12-Nov-09 20:32
professional«_Superman_»12-Nov-09 20:32 
GeneralRe: Visual C++ Pin
Jacobb Michael12-Nov-09 23:50
Jacobb Michael12-Nov-09 23:50 
GeneralRe: Visual C++ Pin
«_Superman_»13-Nov-09 4:30
professional«_Superman_»13-Nov-09 4:30 
QuestionMFC Query Pin
billu 212-Nov-09 14:17
billu 212-Nov-09 14:17 
AnswerRe: MFC Query Pin
David Crow12-Nov-09 15:41
David Crow12-Nov-09 15:41 
QuestionProblems with CComboBox and WS_VSCROLL on Windows 7 [modified] Pin
hollesser00112-Nov-09 8:07
hollesser00112-Nov-09 8:07 
QuestionRe: Problems with CComboBox and WS_VSCROLL on Windows 7 Pin
David Crow12-Nov-09 8:54
David Crow12-Nov-09 8:54 
QuestionRe: Problems with CComboBox and WS_VSCROLL on Windows 7 [modified] Pin
hollesser00112-Nov-09 10:15
hollesser00112-Nov-09 10:15 
AnswerRe: Problems with CComboBox and WS_VSCROLL on Windows 7 Pin
Maximilien12-Nov-09 8:57
Maximilien12-Nov-09 8:57 
QuestionRe: Problems with CComboBox and WS_VSCROLL on Windows 7 Pin
hollesser00112-Nov-09 10:23
hollesser00112-Nov-09 10:23 
AnswerRe: Problems with CComboBox and WS_VSCROLL on Windows 7 Pin
hollesser00113-Nov-09 7:06
hollesser00113-Nov-09 7:06 
QuestionCrowd detection, how to? [moved to Algorithms] Pin
Gamma_ace12-Nov-09 6:43
Gamma_ace12-Nov-09 6:43 
AnswerRe: Crowd detection, how to? Pin
CPallini12-Nov-09 10:37
mveCPallini12-Nov-09 10:37 

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.