Click here to Skip to main content
15,909,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Calling exported functions from a static DLL Pin
Matthew Faithfull7-Aug-08 5:29
Matthew Faithfull7-Aug-08 5:29 
GeneralRe: Calling exported functions from a static DLL Pin
Yashusid8-Aug-08 0:59
Yashusid8-Aug-08 0:59 
AnswerRe: Calling exported functions from a static DLL Pin
Cedric Moonen7-Aug-08 4:23
Cedric Moonen7-Aug-08 4:23 
AnswerRe: Calling exported functions from a static DLL Pin
toxcct7-Aug-08 4:25
toxcct7-Aug-08 4:25 
QuestionAre THE MFC FTP classes limited to 32bit file sizes? Pin
Paul Deckers7-Aug-08 3:48
Paul Deckers7-Aug-08 3:48 
AnswerRe: Are THE MFC FTP classes limited to 32bit file sizes? Pin
led mike7-Aug-08 4:41
led mike7-Aug-08 4:41 
QuestionPassing string array as pointer Pin
__DanC__7-Aug-08 3:47
__DanC__7-Aug-08 3:47 
AnswerRe: Passing string array as pointer Pin
David Crow7-Aug-08 4:01
David Crow7-Aug-08 4:01 
Something like (which might be overkill):

char **arr = new char*[l.size()];
int y = 0;
for (list<string>::iterator x = l.begin(); x != l.end(); x++)
{
    string str = *x;
    arr[y] = new char[str.length() + 1];
    strcpy(arr[y], str.c_str());
    y++;
}
Now you can pass arr and l.size() as the arguments to your function.

You could also do something like:

void foo( LPARAM lParam )
{
    list<string> *l = (list<string> *) lParam;
}
...
list<string> l;
foo((LPARAM) &l);


"Love people and use things, not love things and use people." - Unknown

"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch


GeneralRe: Passing string array as pointer Pin
__DanC__7-Aug-08 4:11
__DanC__7-Aug-08 4:11 
GeneralRe: Passing string array as pointer Pin
David Crow7-Aug-08 4:19
David Crow7-Aug-08 4:19 
GeneralRe: Passing string array as pointer Pin
__DanC__7-Aug-08 4:22
__DanC__7-Aug-08 4:22 
GeneralRe: Passing string array as pointer Pin
David Crow7-Aug-08 4:55
David Crow7-Aug-08 4:55 
QuestionRe: Passing string array as pointer Pin
Matthew Faithfull7-Aug-08 4:09
Matthew Faithfull7-Aug-08 4:09 
AnswerRe: Passing string array as pointer Pin
__DanC__7-Aug-08 4:14
__DanC__7-Aug-08 4:14 
GeneralRe: Passing string array as pointer Pin
Matthew Faithfull7-Aug-08 4:25
Matthew Faithfull7-Aug-08 4:25 
AnswerRe: Passing string array as pointer Pin
Stephen Hewitt7-Aug-08 14:52
Stephen Hewitt7-Aug-08 14:52 
QuestionIncrementing a Variable Pin
T.RATHA KRISHNAN7-Aug-08 3:06
T.RATHA KRISHNAN7-Aug-08 3:06 
QuestionRe: Incrementing a Variable Pin
David Crow7-Aug-08 3:17
David Crow7-Aug-08 3:17 
QuestionRe: Incrementing a Variable Pin
Perspx7-Aug-08 3:18
Perspx7-Aug-08 3:18 
AnswerRe: Incrementing a Variable Pin
T.RATHA KRISHNAN7-Aug-08 3:26
T.RATHA KRISHNAN7-Aug-08 3:26 
GeneralRe: Incrementing a Variable Pin
Cedric Moonen7-Aug-08 3:44
Cedric Moonen7-Aug-08 3:44 
GeneralRe: Incrementing a Variable Pin
T.RATHA KRISHNAN7-Aug-08 3:49
T.RATHA KRISHNAN7-Aug-08 3:49 
QuestionRe: Incrementing a Variable Pin
David Crow7-Aug-08 3:46
David Crow7-Aug-08 3:46 
GeneralRe: Incrementing a Variable Pin
cgb1437-Aug-08 10:25
cgb1437-Aug-08 10:25 
AnswerRe: Incrementing a Variable Pin
T.RATHA KRISHNAN7-Aug-08 3:33
T.RATHA KRISHNAN7-Aug-08 3:33 

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.