DirectX in CodeBlocks, can't get started

Hi, I'm just trying to get CodeBlocks set up and running. I'm trying to compile the example DirectX project. I got the DirectX SDK and Windows SDK, and Visual C++ Express for the compiler. I think my problem is that I don't know how to make CodeBlocks use the compiler. It only lists the 2005/2008 Visual C++ compiler. I tried pointing the directories to my 2010 compiler and all the right libs and includes, but it feels like I'm breaking something. It didn't work and gave me an error that mspdb100.dll could not be found. Now I'm stuck :( Can anyone help me?
Well, I think I made some progress. I set up a new compiler for VC++ 2010 and set up all the lib and include directories I need. I'm still not 100% sure it's detecting it though, and it's giving me this:

-------------- Build: Debug in n ---------------

main.cpp
main.cpp(83) : error C2440: 'initializing' : cannot convert from 'const wchar_t [13]' to 'LPCSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
main.cpp(90) : error C2664: 'CreateWindowExA' : cannot convert parameter 2 from 'const wchar_t [13]' to 'LPCSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
main.cpp(108) : error C2664: 'UnregisterClassA' : cannot convert parameter 1 from 'const wchar_t [13]' to 'LPCSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Process terminated with status 2 (0 minutes, 1 seconds)
3 errors, 0 warnings

Does directX not provide tutorials for installing onto code::blocks? I use SFML which provided a detailed install guide into code::blocks. Most likely Microsoft wants you to use their VS 2010 then if you're going to use directX(Microsoft owned).
Topic archived. No new replies allowed.