Sign in to follow this  

Win 10 Tech Preview Visual Studio 2015 and Direct2D tutorial

This topic is 1102 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

So, I copied and pasted the over 20 sections of the 'sample' code from direct x, which is now integrated into windows sdk....and the code doesn't run, because of a simple error in a directx .h file.  Here's the main code if anyone can help with this: (see attachment)

 

Anyways, if anyone wants to try to copy/paste this and compile, please let me know if it works for you.  I would still be using visual c++ express 2008, but I just installed win 10 tech preview, and had to re-install visual c express 2008, and it turns out microsoft has disabled or deleted that part of their website that generates the code to register vc 2008 and 2010....fun.  So I thought why not modernize and go with vc2015 ultimate...

 

thanks for the help in advance anyone who responds with helpful suggestions or inquiries,

 

jeff c

 

p.s. if I get something before anyone else does, I will post it here, so that newbies might not have such a hard time.  I don't consider myself a newbiew programmer, but newbies with direct x exploring vc 2015 might find this puzzling/challenging...

 

Ok, so I didn't want to copy/paste the file into here, it looks improper.....yes, very improper, and apparently I can't upload a .cpp file to a programming forum....

 

let me get back to you.  but if you want to reference the code that I am talking about, it's under windows api, games and graphics programming >> Creating a simple 2d Application in Windows

Share this post


Link to post
Share on other sites

There's no attachment so I'll just list typical problems:

  1. DirectX SDK comes with Windows SDK, which comes with Visual Studio. This means you don't need to install SDK separately. Visual Studio is all you need to use DirectX. If you have old SDK you will have to remove it;
  2. Microsoft got rid of D3DX, which had texture loading, meshes, and a lot of other stuff. Therefore you have to implement these yourself and old samples don't work anymore. There's DirectX Tool Kit but I think you'll still have to make some changes to make D3DX code work;
  3. DXUT is gone as well, which heavily relied on D3DX and been used in a lot code samples;
  4. Math API has been updated, so old D3DX math functions don't work. See DirectXMath.h include and MSDN.

Share this post


Link to post
Share on other sites

Sorry, I was being a freak, I'm just adjusting from graveyard at work, to Noon to 8pm....forgive me for my rant/post.....

 

I was just venting stress because I've been using Dark GDK for so long, and it's such a simplified wrapper API for directx, that having to go back to Direct X (the last time I programmed with just direct X it was version 8 I believe.....) is a little frustrating, but don't worry .... I'll get it, but here's the attachment, I've got it in a .zip file, so hopefully that will upload.

 

The reason that I'm posting, is this seems quite simple, and the errors i'm getting seem quite simple, but can't quite wrap my head around the solution(s).  Anyways, thanks to the whole community for just being here, and anyone who helps, thanks again.

 

Sincerely,

 

Jeff C

 

Share this post


Link to post
Share on other sites

OceanJeff, what issue are you having?

You said there is error in "directx.h" file so I assume it doesn't compile, however it does compile for me. Though it crashes during window initialization.

If you're having trouble compiling it's probably because you installed DirectX SDK which isn't needed.

Share this post


Link to post
Share on other sites

This topic is 1102 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this