Starting DirectX in .Net 2033

This is a discussion on Starting DirectX in .Net 2033 within the Game Programming forums, part of the General Programming Boards category; Hi, I know I've installed the SDK properly and even linked the include files(including from the "common" folder) and the ...

  1. #1
    Programming Newbie Kaminaga's Avatar
    Join Date
    Jun 2005
    Posts
    14

    Starting DirectX in .Net 2003

    Hi,
    I know I've installed the SDK properly and even linked the include files(including from the "common" folder) and the library. What I'm just not sure of doing is setting up the project in .Net 2003. Before, I chose Win32 Project -> change the settings to empty project. It compiled properly but it gave link errors when I ran it.

    I know the links to the libraries are working since it ran fine when I opened an existing project from the the DirectX Sample folder but I just want to know how to build one from scratch. Can anyone help? Thanks in advance.

    -Kaminaga
    Last edited by Kaminaga; 10-06-2005 at 10:49 AM. Reason: Typo
    "Temporary constructs of the feeble human intellect, trying desperately to justify it's meaning or purpose.." -Agent Smith
    kaminaga.deviantart.com

  2. #2
    Bioport Productions
    Join Date
    Oct 2005
    Posts
    215
    Add the libraries to your project, don't link.
    -"What we wish, we readily believe, and what we ourselves think, we imagine others think also."
    PHP Code:
    sadf 

  3. #3
    Programming Newbie Kaminaga's Avatar
    Join Date
    Jun 2005
    Posts
    14
    Sorry, I didn't point it out clearly. When I mean linking the include files and the library, I mean that I already set it up in the tools -> option -> Projects -> c++.

    As for when writing the code, I did put the "#include <d3d9.h>"

    -Kaminaga
    "Temporary constructs of the feeble human intellect, trying desperately to justify it's meaning or purpose.." -Agent Smith
    kaminaga.deviantart.com

  4. #4
    Bioport Productions
    Join Date
    Oct 2005
    Posts
    215
    I know what you meant...Put the library files IN you project instead of linking them...

    so d3d9.lib and d3dx9.lib need to be IN you project
    -"What we wish, we readily believe, and what we ourselves think, we imagine others think also."
    PHP Code:
    sadf 

  5. #5
    Programming Newbie Kaminaga's Avatar
    Join Date
    Jun 2005
    Posts
    14
    Thank again. At first I didn't know what you meant, but I then realised that I forgot to put in those files in the additional dependencies section. It works now

    -Kaminaga
    "Temporary constructs of the feeble human intellect, trying desperately to justify it's meaning or purpose.." -Agent Smith
    kaminaga.deviantart.com

  6. #6
    Bioport Productions
    Join Date
    Oct 2005
    Posts
    215
    Great. I had the same problem before
    -"What we wish, we readily believe, and what we ourselves think, we imagine others think also."
    PHP Code:
    sadf 

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 0
    Last Post: 05-21-2005, 10:42 PM
  2. Some .NET Distribution Stats
    By nickname_changed in forum C# Programming
    Replies: 2
    Last Post: 05-14-2005, 04:41 AM
  3. DirectX - Starting Guide?
    By Zeusbwr in forum Game Programming
    Replies: 13
    Last Post: 11-25-2004, 12:49 AM
  4. .net
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 02-15-2002, 01:15 AM
  5. Visual J#
    By mfc2themax in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 10-08-2001, 03:41 PM

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