general help
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: general help

Hybrid View

  1. #1
    Join Date
    Jul 2010
    Location
    .NET 4.0/VS2010
    Posts
    79

    Lightbulb general help

    okay so i have some questions about graphics programming. i have gone through a C++ class so i understand the console programming but i dont want to move on to API becuase thats just how i am. i like the harder stuff when it comes to learning how to do something. so i guess what do i need to learn before i dive into the whole graphics process?

  2. #2
    Join Date
    Jul 2010
    Location
    .NET 4.0/VS2010
    Posts
    79

    Re: general help

    hey,
    okay so i have started to learn how to program directx 11 but my graphics card doesnt exactly support directx 11 it has the reference .dll files but how do i use them?

  3. #3
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,642

    Re: general help

    Download the directX SDK from MS. Be careful to read the information and also study the example files.
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    http://www.microsoft.com/visualstudio/eng/downloads

  4. #4
    Join Date
    Jul 2010
    Location
    .NET 4.0/VS2010
    Posts
    79

    Re: general help

    okay so now that i have worked on this stuff for a few days i decided to make a cool little bedroom deal. well i dont want it to rotate automatically forever. i want it so that if you press the left arrow key it moves left and if you press the right arrow key it moves right but how do i do that?

  5. #5
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,642

    Re: general help

    I'm absolutely not a DirectX guy but I've a looked at the interface. I do remember that you can register to get keyboard pressure. Have you looked into that?
    Last edited by S_M_A; August 14th, 2010 at 06:13 PM.
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    http://www.microsoft.com/visualstudio/eng/downloads

  6. #6
    Join Date
    Jul 2010
    Location
    .NET 4.0/VS2010
    Posts
    79

    Re: general help

    yeah i have i look to try and capture keyboard input but i cant seem to find a way that works. i try the whole switch statement for messages. ex.

    switch (msg)
    {
    case WM_CHAR:
    {
    switch(wParam)
    {
    case VK_LEFT://Left arrow key
    {
    code here
    }
    }
    }
    }
    however many i need but it wont run it through the statements at all. and the directx doesnt affect how you input keyboard input atleast i dont think. but how would you do it in WinAPI?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center