   Still Having Problems With DirectX SDK, And Codeblocks IDE
  Hey everyone, about a couple of month's ago, I posted a thread asking how to get the DirectX SDK Set Up with Codeblocks IDE, I only got about half the Problem solved.I thought Rather than searching out reviving that thread again, I'd Just Post a new one.This is all new to me, I've never Programmed in my Life, However I did take computer science in college, and then later dropped out, after a year.I am a total noob when it comes to programming, however I am willing to incorporate the time and effort needed to learn game design Programming, start out simple and work my way up.My problem still rests on the directX Sdk, And getting it to work with COdeblocks Proporly.I can Compile the dsp File of Nehe Simple basecode Just fine with GCC, however when I try to compile a standalone cpp file, I get all sorts of error's.I've downloaded the Free Microsoft Visual C++ Toolkit, to use with COdeblocks IDE, But whenever I try to compile the Nehe Simple Basecode, it spits out all sorts of errors at me, such as: Unknown Pragma errors, other similar errors and such.I've got the Win32 API, Direct X For Mingw compiler, An everything is set up, I believe accordingly. I'm Just lost at how to set this up Proporly.Can Anyone help me, and educate a n00b, if you could I'd really Appreciate it, Thank You.By the way, Can anyone link me to Any up to date Tutorials on DirectX, And C++ Programming Tutorials, Thank YouCan Anyone Please Reply To my post, I'm completely lost, and have no Idea what to do.[Edited by - muffinhead on June 3, 2006 4:46:29 PM]
  A handful of points that will ultimately leave you disappointed:1) Improve your grammar. I see that you say you are from new york, so write normally, ie. not Capitalizing everyother Word randomly. It will make your post more coherent.2) You say that you have never programmed in your life (or something to that extent). I seriously suggest that you get a good base with c++ (like 2 years or so) before starting graphics. Lets say you got your compiler set up correctly. Except for copying and pasting code, would you have any idea about how to program anything?3) I think you need to make visual c++ compiler your default compiler and get rid of mingw. Make sure the libraries and .dlls are in the right place, and that the compiler knows where to find them.   ;Quote:Original post by ender7771A handful of points that will ultimately leave you disappointed:1) Improve your grammar. I see that you say you are from new york, so write normally, ie. not Capitalizing everyother Word randomly. It will make your post more coherent.2) You say that you have never programmed in your life (or something to that extent). I seriously suggest that you get a good base with c++ (like 2 years or so) before starting graphics. Lets say you got your compiler set up correctly. Except for copying and pasting code, would you have any idea about how to program anything?3) I think you need to make visual c++ compiler your default compiler and get rid of mingw. Make sure the libraries and .dlls are in the right place, and that the compiler knows where to find them.In response to 1) Sorry about that it's become a habit, I normally don't type like that.In response to 2) I may not know programming that well, most of it, But I said I am willing to learn, and put the effort into learning and studying programming, and Game Development, that does'nt mean I don't know the basics, that was one of the reasons I asked for links to C++ tutorials, and up to date directX tutorials. Not only that, but I plan on going back to college and resuming my career in computer science, or programming.In response to 3) I've been trying to use the free Visual C++ Toolkit from microsoft with Codeblocks, but get all sorts of errors, like "Unknown Pragma"  errors when I try to compile, a test directx app.I cannot afford the commercial edition of Visual C++, nor can I afford Visual Studio .net, because of not having a job, and that offer where you can download the visual c++ Ide from microsoft, was only for a limited time, as a trial.So my only alternative for the time being, is to use Codeblocks with the free Visual C++ Toolkit.Hope my post is a little easier to understand, and hope you may be able to help. Like I said in my first post, I'm willing to learn, and learn the basics, devote  my time to learning, start out simple and work my way up.Thank You, if anyone can help.   ;  I suggest getting Visual C++ Express Edition. You can download it for free from the Microsoft website. So you get compile and IDE out of one hand and it definitely works with DirectX ,-);  BTW I'll type in this topic because I don't want to create the new one.So, my problem : My IDE is Visual Studio 2005.A few weeks ago I downloaded the DX9 SDK from MS home page.Next, I have installed it. In MS documentary I read that DX9 SDK will automaticly add all paths to include and lib folders.But it didn't happen. So I added all paths by myself. I loaded the first dx project from SDK DOC and Visual Studio compiled it without any errors.Next day I do it once again but there were lots of errors.For instance : //--------------------------------------------------------------------------Error   1   error C2146: syntax error : missing ';' before identifier 'g_pD3D'   c:\program files\microsoft directx sdk (february 2006)\samples\c++\direct3d\tutorials\tut01_createdevice\createdevice.cpp   21   Error   2   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files\microsoft directx sdk (february 2006)\samples\c++\direct3d\tutorials\tut01_createdevice\createdevice.cpp   21   Error   3   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files\microsoft directx sdk (february 2006)\samples\c++\direct3d\tutorials\tut01_createdevice\createdevice.cpp   21   Error   4   error C2146: syntax error : missing ';' before identifier 'g_pd3dDevice'   c:\program files\microsoft directx sdk (february 2006)\samples\c++\direct3d\tutorials\tut01_createdevice\createdevice.cpp   22   Error   5   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files\microsoft directx sdk (february 2006)\samples\c++\direct3d\tutorials\tut01_createdevice\createdevice.cpp   22  //--------------------------------------------------------------------------I have checked all paths once again but everything seems to be OK.So why can't I compile DX PROJECTS ??   ;  muffinhead:Can you post the complete Build Log?tomekdd:It looks like the compiler does not recognize the data types from the d3d9.h file.Do you get an error saying: Unable to open file <d3d9.h>?   ;  I have just solved half of my problem..Visual Studio has got added too many paths to DIRECT SDK( older ones and new ones ). But now, when I try to compile DX project VS shows : Error1fatal error C1083: Cannot open include file: 'objbase.h': No such file or directoryc:\program files\microsoft directx sdk (february 2006)\include\d3d9.h.TThere's not such header file in my downloaded SDK. But this header is in default VisualStudio include folder..but it's named : ObjBase.h . I copied it to SDK and changed it name but VS show another error..similar to that one previously mentioned but it refers to another header lib.What;s the matter with that? :-/;  Is the folder with the objbase.h file listed in VC++ include directories?You should not copy the file but rather add another include directory in the VC++ setup   ;Quote:Original post by WildWestI suggest getting Visual C++ Express Edition. You can download it for free from the Microsoft website. So you get compile and IDE out of one hand and it definitely works with DirectX ,-)I would but I thought that was like a trial, ends in the fall sometime and was for a limited time.Plus it's kind of hard to download Visual C++ Express edition when I am on a Dial-Up internet connection, and don't have high speed internet available in my area. I mean the Visual C++ Express edition is a whopping 300-500 megabytes and requires you to use a microsoft downloading/install utility, so you cannot download direct from microsoft's website, and use a download accelerator to speed up, resume the download, and simplify the process.So I chose the free codeblocks IDE along with Microsoft Visual C++ Toolkit, which were reletively small and compact in size to download and could be downloaded with a download accelerator, such as download accelerator plus.I could probably Post the output errors and the build log, as soon as I can get around to it.Thanks for replying, if you can help I would really appreciate it, Thank You   ;  I see how downloading MS Visual C++ EE is a problem, but you were a little mistaken on the 'trial' aspect.  Originally Microsoft said that you had until some date (Nov. 2006 I think?) to download it.  Once you had it downloaded you could use it free forever.  They realized this was confusing and said 'to heck with it' and just made their express editions free forever with no limited download period.  At least that's how I understood it. I'm on win98 and can't use them.   As for your problem I wish I could help, sorry.   