D3DX not working: good SDK invalid?

This is a discussion on D3DX not working: good SDK invalid? within the Windows Programming forums, part of the Platform Specific Boards category; I was compiling code from a tutorial, when this line produced an error: Code: mysprite->Begin(D3DXSPRITE_ALPHABLEND); According to my header files, ...

  1. #1
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    1,668

    D3DX not working: good SDK invalid?

    I was compiling code from a tutorial, when this line produced an error:
    Code:
    mysprite->Begin(D3DXSPRITE_ALPHABLEND);
    According to my header files, Begin() has no parameters it's declared as Begin(void);
    Also, D3DXSPRITE_ALPHABLEND isn't in the headers either. The headers I'm using are from the official 9.0 SDK! Anyway, is there an alternative to this, or a way to get this supported?
    A class that doesn't overload all operators just isn't finished yet. -- SmugCeePlusPlusWeenie
    A year spent in artificial intelligence is enough to make one believe in God. -- Alan J. Perlis

  2. #2
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    That was changed either between 8 and 9 or 9 and 9c. Make sure your docs are the same version as the SDK you are building with.

  3. #3
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    I found it (both Begin with a parameter, and D3DXSPRITE_ALPHABLEND) in d3dx9core.h.

  4. #4
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    I ran into this same thing with the same function when I switched versions. The docs I had did not match the libraries I was linking with.

  5. #5
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    1,668
    I went to look at msdn's directx sdk update and it's huge. I can't download that with dial-up (not to mention that the stupid Genuine Windows Check garbage doesn't work and reports a bug when run on my xp or 2000 system) But I also see that if you RAR all the lib and header files, they barely break 5 megs.
    I was wondering if someone would be willing to do that for me and put in on a site for me to download or somthing. I know it's a little more than usual to ask for, but it'd be really great.
    A class that doesn't overload all operators just isn't finished yet. -- SmugCeePlusPlusWeenie
    A year spent in artificial intelligence is enough to make one believe in God. -- Alan J. Perlis

  6. #6
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    not to mention that the stupid Genuine Windows Check garbage doesn't work and reports a bug when run on my xp or 2000 system)
    Hmm. I've never had any issues with this.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 01-18-2008, 03:06 AM
  2. Win32 API or Win32 SDK?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 07-20-2005, 03:26 PM
  3. Old NT SDK? Trying to get netperf working
    By DeepBlackMagic in forum Windows Programming
    Replies: 0
    Last Post: 02-20-2004, 01:15 AM
  4. Just made a big-ass trade: was it good?
    By civix in forum A Brief History of Cprogramming.com
    Replies: 41
    Last Post: 01-20-2003, 08:14 AM
  5. Program was working good until.....
    By cazil in forum C++ Programming
    Replies: 1
    Last Post: 02-12-2002, 09:53 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21