I'm totally new in the universe of CPP, and I have an issue for my first application.
I downloaded the 3.0.4 version of WxWidgets, and I built it with Visual Studio 2017.
My configuration was : Debug, Win32, MBCS (Non-Unicode)
The build hadn't failed, so I started my first application, following samples on the wiki.
I also added an environment variable for the path, and used it in the Properties sheets for my application.
I also added PreProcessor Definitions required :
Code: Select all
WIN32
_WINDOWS
WINVER=0x0400
__WXMSW__
wxUSE_GUI=1
_DEBUG
__WXDEBUG__
_CRT_SECURE_NO_DEPRECATE
_CRT_NONSTDC_NO_DEPRECATE
Code: Select all
Error C3861 'wxStrcoll': identifier not found
Error C3861 'wxStrcoll': identifier not found
Code: Select all
#include <wx/wxprec.h>
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
#include "MyApp.h"
#include "MyFrame.h"
bool MyApp::OnInit() {
MyFrame *frame = new MyFrame("Hello World", wxPoint(50, 50), wxSize(450, 350));
frame->Show(true);
return true;
};
wxIMPLEMENT_APP(MyApp);
Thx to people who will help me, I can give more information