Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / wxExecuteData

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

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

I found the structure I need for my STARTUPINFO..it 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??


Thanks,

Mona
Message2. Re: wxExecuteData
#4806
Posted by: upCASE 2004-07-12 23:36:30
Hi!
"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 http://g.yi.org/forum/read.php?13,4704 ??
What's the exact problem? I'm really trying to help you... If you like, mail me at himself@upcase.de and maybe send me a little snippet of the code you try to port...

upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Fri 2024-3-29  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0