I have some code that I'm trying to compile via Xcode which I know works on Dev-C++. Already, I've hit afew snags in the compiler that I need help with. I'd appreciate help with the the problems I have so far:
(1)
Code:
Error:while (syscmnd.Replace(" "," ")) ;
How do I make (" ") a const wxChar*?error: no matching function for call to 'wxString::Replace(const char [3], const char [2])'
(2)
Code (at beginning of my main.cpp file):
Error:wxString MainDataFileName;
(3)error: 'wxString' does not name a type
Code:
Error:s_cmndline.Append(wxString::Format(_T("-W%s,%s "),
m_textWlo->GetValue().IsEmpty() ? "0" : m_textWlo->GetValue().c_str(),
m_textWhi->GetValue().IsEmpty() ? "100" : m_textWhi->GetValue().c_str()
));
(4)error: conditional expression between distinct pointer types 'const char*' and 'const wxChar*' lacks a cast
Code(wx/size.h):
Error/s:class WXDLLEXPORT wxStaticBox;
This problem is created in the size.h include file which doesn't let me create any StaticBox structs.error: forward declaration of 'struct wxStaticBox'
(5) And I guess my last questions for now is how to make an icon for my application? I saw a link for CodeWarrior but nothing for Xcode.
Thanks for any and all help.
Cheers,
ScKaSx