Guidance Forums / wxWidgets (wxWindows) in C++ / wxExecuteData

Search 搜索
Home Home

Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. wxExecuteData
Posted by: 2004-07-12 22:22:06

I found the structure I need for my is in wx/unix/execute.h and has the following struct:
struct wxEndProcessData
    int pid,                // pid of the process
        tag;                // port dependent value
    wxProcess *process;     // if !NULL: notified on process termination
    int  exitcode;          // the exit code

I can't get it to work though. I have declared wxExecuteData *data but it says
'wxExecuteData' : missing storage-class or type specifiers
and I included the header using #include <wx/unix/execute.h> (there's no problem about reading the file but it seems it doesn't reconize what's in it). Anyone has any idea???

Also, once it does work, I can simply use data->flags, data->exitcode, data->process to access them??


Message2. Re: wxExecuteData
Posted by: upCASE 2004-07-12 23:36:30
"Anyone has any idea???"
Sure ;) Did you define _WX_UNIX_EXECUTE_H??

This will make the struct known, but it won't work either. The struct you refer to is a unix helper struct and you can't use it under Windows...

"Also, once it does work, I can simply use data->flags, data->exitcode, data->process to access them??"
You could, although there is no data->flag variable... But since it won't work don't worry about it.

Have you read my last post to your previous thread at,4704 ??
What's the exact problem? I'm really trying to help you... If you like, mail me at and maybe send me a little snippet of the code you try to port...

If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
© Thu 2024-6-20  Guidance Laboratory Inc. Hits:0