From: Oliver O. <fr...@us...> - 2007-02-28 00:23:47
|
Update of /cvsroot/simspark/simspark/contrib/rsgedit In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv23880 Modified Files: Tag: WIN32 agentframe.cpp Log Message: - added Output(const char*) method for convenience - fixed a couple of implicit conversions that didn't work on Mac OS / wx 2.5.3 Index: agentframe.cpp =================================================================== RCS file: /cvsroot/simspark/simspark/contrib/rsgedit/Attic/agentframe.cpp,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** agentframe.cpp 23 Feb 2007 22:22:50 -0000 1.1.2.1 --- agentframe.cpp 28 Feb 2007 00:23:44 -0000 1.1.2.2 *************** *** 93,96 **** --- 93,102 ---- } + void + agentframe::Output(const char* str) + { + mCtrLog->AppendText((const wxChar *) str); + } + void agentframe::Output(wxInputStream* istream) { *************** *** 150,154 **** bool agentframe::StartAgent() { ! Output("(agentframe::StartAgent) starting agent '" + mCmd + "'\n"); mProcess = new wxProcess(this, 1); --- 156,160 ---- bool agentframe::StartAgent() { ! Output((const wxChar*)("(agentframe::StartAgent) starting agent '") + mCmd + (const wxChar*)("'\n")); mProcess = new wxProcess(this, 1); *************** *** 171,175 **** if (mPid == 0) { ! Output("(agentframe::StartAgent) failed to start '"+mCmd+"' \n"); mProcess = 0; return false; --- 177,181 ---- if (mPid == 0) { ! Output((const wxChar*)("(agentframe::StartAgent) failed to start '")+ mCmd+ (const wxChar*)("' \n")); mProcess = 0; return false; |