Click here to Skip to main content
15,900,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Simple IPC / Functioncall in different address space Pin
Code-o-mat28-Dec-08 10:57
Code-o-mat28-Dec-08 10:57 
GeneralRe: Simple IPC / Functioncall in different address space Pin
nobaq28-Dec-08 11:38
nobaq28-Dec-08 11:38 
GeneralRe: Simple IPC / Functioncall in different address space Pin
Richard Andrew x6428-Dec-08 11:43
professionalRichard Andrew x6428-Dec-08 11:43 
GeneralRe: Simple IPC / Functioncall in different address space Pin
nobaq29-Dec-08 1:49
nobaq29-Dec-08 1:49 
Questionquestion about templates and iterators Pin
Green Fuze28-Dec-08 6:30
Green Fuze28-Dec-08 6:30 
AnswerRe: question about templates and iterators Pin
Stuart Dootson29-Dec-08 14:15
professionalStuart Dootson29-Dec-08 14:15 
QuestionHow to declare a global array of string inside of a IF Pin
Dark_eye28-Dec-08 6:04
Dark_eye28-Dec-08 6:04 
AnswerRe: How to declare a global array of string inside of a IF Pin
CPallini28-Dec-08 6:21
mveCPallini28-Dec-08 6:21 
for instance
char ** g_pszString;
int g_iStringCount;
//...
if (whatever)
{
  g_iStringCount = 3;
  g_pszString = new char * [g_iStringCount];
  g_pszString[0] = "Hello";
  g_pszString[1] = "World";
  g_pszString[2] = "!";
}

//...
// don't forget cleanup
delete [] g_pszString;


BTW using STL is a really more elegant in your scenario, for instance

#include <string>
#include <vector>
using namespace std;

vector <string> g_string;

if (whatever)
{
  g_string.push_back(string("Hello"));
  g_string.push_back(string("World"));
  g_string.push_back(string("!"));
}


If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

GeneralRe: How to declare a global array of string inside of a IF Pin
Dark_eye28-Dec-08 19:22
Dark_eye28-Dec-08 19:22 
QuestionHow to get the main module of any process? Pin
kcynic28-Dec-08 3:56
kcynic28-Dec-08 3:56 
AnswerRe: How to get the main module of any process? Pin
Mark Salsbery28-Dec-08 4:40
Mark Salsbery28-Dec-08 4:40 
AnswerRe: How to get the main module of any process? [modified] Pin
kcynic28-Dec-08 15:37
kcynic28-Dec-08 15:37 
AnswerRe: How to get the main module of any process? Pin
Code-o-mat28-Dec-08 4:42
Code-o-mat28-Dec-08 4:42 
GeneralRe: How to get the main module of any process? Pin
kcynic28-Dec-08 15:41
kcynic28-Dec-08 15:41 
GeneralRe: How to get the main module of any process? Pin
Code-o-mat28-Dec-08 21:59
Code-o-mat28-Dec-08 21:59 
AnswerRe: How to get the main module of any process? Pin
Hamid_RT28-Dec-08 5:21
Hamid_RT28-Dec-08 5:21 
GeneralRe: How to get the main module of any process? Pin
kcynic28-Dec-08 15:44
kcynic28-Dec-08 15:44 
QuestionOverlapping controls Pin
Moak28-Dec-08 2:47
Moak28-Dec-08 2:47 
AnswerRe: Overlapping controls Pin
Mark Salsbery28-Dec-08 4:52
Mark Salsbery28-Dec-08 4:52 
GeneralRe: Overlapping controls Pin
Moak28-Dec-08 6:33
Moak28-Dec-08 6:33 
GeneralRe: Overlapping controls Pin
Mark Salsbery28-Dec-08 6:40
Mark Salsbery28-Dec-08 6:40 
Questionexecute a function? Pin
dec8227-Dec-08 22:57
dec8227-Dec-08 22:57 
AnswerRe: execute a function? Pin
Code-o-mat27-Dec-08 23:35
Code-o-mat27-Dec-08 23:35 
GeneralRe: execute a function? Pin
dec8227-Dec-08 23:44
dec8227-Dec-08 23:44 
GeneralRe: execute a function? [modified] Pin
Code-o-mat28-Dec-08 0:24
Code-o-mat28-Dec-08 0:24 

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.