Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

122 Neutral

About b_rollins

  • Rank
  1. b_rollins

    Direct Input

    Never mind, found the problem. The lib directory I told the compiler to search was the x64 versions of the libs (I used that because I have XP x64). But apparently I have to use the x86 versions.
  2. b_rollins

    Direct Input

    I am new to Direct Input and am having some trouble. In Visual C++, I keep getting the following errors: error LNK2001: unresolved external symbol _c_dfDIKeyboard error LNK2001: unresolved external symbol _GUID_SysKeyboard error LNK2019: unresolved external symbol _DirectInput8Create@20 referenced in function _InitializeDirectInput error LNK2001: unresolved external symbol _IID_IDirectInput8W Here are the include files/libraries I include in the project: #include <windows.h> #include <windowsx.h> #include <dinput.h> #pragma comment (lib, "dinput8.lib") #pragma comment (lib, "dxguid.lib") I've come across references in DirectInput tutorials to a "dinput.lib" library, but the June 2008 DirectX SDK doesn't have it. Could that be the problem? (Also, I've verified I have "dinput8.dll" and "dinput.dll" in my system folder)
  3. b_rollins

    xp 64-bit problem

    wow, I never knew 64 bit XP was Windows 2003...thanks for the replies
  4. b_rollins

    xp 64-bit problem

    I just built a new computer with Windows XP Pro x64 OS. Problem is, my computer thinks its Windows Server 2003, even my OS in the "who's online" section says "Windows 2003". Does anyone else have this problem? I have some software that won't install because it recognizes the OS as Server 2003 and automatically cancels the installation.
  5. b_rollins


  6. b_rollins


    I'm an intermediate programmer, not a beginner, but not at a professional level...yet. Wondering if anyone knows of any good books for my programming level about game programming with modern techniques (late 90's and newer)? Which is best? I've been searching for some but a lot are either somewhat outdated or seem to just be continuations of a series of books (Game Programming Gems, for instance), as I'd rather just buy one book. Thought I'd ask you guys first before buying a book and being disappointed. Thanks in advance!
  7. b_rollins

    c++ data input

    String header, of course! I didn't even think of that. Thanks! The getline() function seems to be what I've been looking for.
  8. b_rollins

    c++ data input

    Thanks so much for the info guys! Very helpful! (although the "is >> name" statement didn't like "name" being of type "string", but a char array works fine.) I think I'll take out the equal signs in the file and add an "end" statement to mark the end of the file so it looks like this: random_number 1 end So I guess I can search for variables like this: int FindRandomNumber() { ifstream sample("sample.txt"); char variable[20]; sample >> variable; while (strcmp(variable, "random_number") != 0 ) { if (strcmp(variable, "end") == 0) return; sample >> variable; } int value; sample >> value; return value; } Thanks again! (on an unrelated note, I'm new to these forums, so how do I make the above code keep its natural format instead of losing all the indents and stuff?)
  9. There's one area of C++ i don't have much experience with: file input/output. Let's say I make a text file that list variables and values similar to the the following format: random_number = 1 second_number = 2 Can I tell my program to locate a particular variable string (like "random_number") and input it's value ("1") into my C++ program? If so, how? (I realize I will probably have to convert the value string to an actual integer too)
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!