Found a new bug. Single files which dont belong to a project dont get to compile cause they arent getting linked to the libraries setted up in Settings -> Compiler & Settings -> Linker Settings. They only compile when they are inside a project.
Code Sample:
#define UNICODE
#include "..\cGui.h"
using namespace std;
class cMainForm
{
void Button_Clicked()
{
AlertUser( TEXT( "Button was clicked" ) );
}
cWindow < cMainForm > Window;
cButton < cMainForm > Button;
public:
cMainForm() : Window ( *this ),
Button ( Window )
{
Button.OnClicked = &cMainForm::Button_Clicked;
Window.SetName( TEXT( "Window" ) );
Window.DisableMaximize();
Window.DisableSizing();
int W = 200, H = 200;
Window.SetInnerSize( W, H );
int CenterX = W / 2;
int CenterY = H / 2;
Button.SetName( TEXT( "♠♣♥♦Button" ) );
Button.SetPos( CenterX - Button.GetWidth() / 2, CenterY - Button.GetHeight() / 2 );
int ScreenWidth = GetSystemMetrics( SM_CXSCREEN );
int ScreenHeight = GetSystemMetrics( SM_CYSCREEN );
Window.SetPos( ( ScreenWidth - W ) / 2, ( ScreenHeight - H ) / 2 );
Window.Show();
}
};
int main()
{
cMainForm MainForm;
return App.Run();
}
If u save it as a single file "Button_example.cpp" it wont compile, but if u create a project and u put that code in main.cpp, it compiles ok.
Linked libraries it uses: libcomctl32.a, libgdi32.a (They are setted up in Settings -> Compiler & Settings -> Linker Settings)
Im using the CC SVN 6621, and gcc 4.5.0.
Please, if u get to patch it, compile it for me so i can dl the compiled version. I couldnt configure wxwidgets yet, have been all day trying to solve compiler/IDE issues.
Thanks.