From what I can tell, the only part you are missing to successfully compile a Win32++ application is to link to the libraries I mentioned:
comctl32
ole32
oleaut32
uuid
ws2_32
These are common libraries, included in a MinGW installation, and will be found automatically. The option in Code::Blocks to add a library is
Project->Build options...->Linker settings (tab). In the
Link libraries: box, click
Add and individually input each library.
If you decide to go the wxWidgets route, first download the stable (2.8.12) branch, not the testing (2.9.x) branch. For a simpler building setup, use the
project file I
posted. Unpack it into
wxWidgets\build\msw and build the monolithic release target.
Your previous build of wxWidgets failed because it assumes that
MinGW\bin is
in the path:
path D:\Codeblocks\MinGW\bin;%path%
adds it to the path variable for the cmd session.
So you realize, the way you ask questions makes it apparent that you have some learning to do. To get you on your way, I would suggest reading (and following links on) the following pages for a general overview of terminology:
(Note that MinGW is not part of Code::Blocks; it is only included in the Windows installers for convenience - this is why you received the responses you did.)