Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~7K People Reached
Favorite Tags

26 Posted Topics

Member Avatar for Khoanyneosr

So, I've bought two books, one on DirectX 10 and one on OpenGL. The first one i bought was the directX 10 book, and NONE of the code compiled because of some LPCSTR error. So stupid me thinking it was another thing that microsoft goofed on i bought a book …

Member Avatar for pseudorandom21
0
361
Member Avatar for Khoanyneosr

[CODE]#ifdef _WIN32 #include <windows.h> #endif #include <iostream> #include <vector> #include <string> #include <SDL/SDL.h> #include <GL/gl.h> #include <GL/glu.h> using std::vector; void error(const std::string& s) { #ifdef _WIN32 MessageBox(NULL, s.c_str(), "An error occurred", MB_ICONINFORMATION | MB_OK); #else std::cerr << s << std::endl; #endif } [/CODE] That's my problem... [CODE]1>------ Build started: Project: …

Member Avatar for Khoanyneosr
0
202
Member Avatar for Khoanyneosr

So i need to find a way to prompt the user for an answer (cin) while a timer is running. Like if the user doesn't answer in time then... or after a certain period of time passes an event occurs. Please Tell me if i'm being too vague. Thanks

Member Avatar for triumphost
0
86
Member Avatar for Khoanyneosr

Hey, so im creating a work example for school and right now i'm working on an "address book" sort of. I have three options the user can select add, view, and delete contacts. I want the "view" option to be able to search for first and last names inside of …

Member Avatar for Khoanyneosr
0
144
Member Avatar for Khoanyneosr

[CODE]cout << endl << "\n\n\nWhat would you like to do?"; cout << endl << " Add" << endl << " View" << endl << " Delete\n- "; cin >> todo; transform(todo.begin(), todo.end(), todo.begin(), toupper); cout << todo; bool done = true; while (!done) { if (todo == "DELETE") { system("cls"); …

Member Avatar for Fbody
0
104
Member Avatar for Khoanyneosr

So I'm learning OpenGL on my own and I have to say I'm really liking it. I really have not been able to do much, you'd laugh if i told you how much i knew but are there any real techniques for drawing shapes? I'm having trouble trying to figure …

Member Avatar for n.cramp
0
173
Member Avatar for pcgamer2008

You could also create a timer function that starts after a certain key is pressed.

Member Avatar for pcgamer2008
0
122
Member Avatar for Khoanyneosr

So, I've been learning DirectX10 and have had alot of questions... I'm sure i've frustrated about all the people that are willing to help me with my DirectX problems (Sorry about that) but now i have a new problem. I have some source code that i downloaded from a site …

Member Avatar for LevyDee
0
264
Member Avatar for Khoanyneosr

[CODE]#include <Windows.h> HWND hgMainWnd = 0; bool InitWindowsApp(HINSTANCE instanceHandle, int show); int Run(); LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR pCmdLine, int nShowCmd) { if(!InitWindowsApp(hInstance, nShowCmd)) return 0; return Run(); } bool InitWindowsApp(HINSTANCE instanceHandle, int show) { WNDCLASS wc; wc.style …

Member Avatar for Khoanyneosr
0
170
Member Avatar for Khoanyneosr

I'm REALLY angry! I've been trying to get this stupid code to compile for way too long now. I've spent 30 bucks on this book and the first code it tells you compile doesn't work! Here's a link to the code... [url]http://d3dcoder.net/d3d10.htm[/url] I'm sorry that you have to download that …

Member Avatar for Khoanyneosr
0
157
Member Avatar for Khoanyneosr

I know alot of you are gonna get mad that i started a thread on directX books when clearly at the top there already is a thread on direct X books, but this is different. I need books on Vector Algebra and Matrix Math/Algebra. I'm learning DirectX9/10 and i have …

Member Avatar for Sodabread
0
273
Member Avatar for Khoanyneosr

[CODE]// Hangman Redo Program #include <iostream> #include <string> #include <cstdlib> #include <ctime> #include <string> #include <vector> #include <algorithm> using namespace std; //Functions void instructions(); void game(); // Types and Arrays string choice; string inst; const int MAX_WRONG = 8; vector<string> words; const string THE_WORD = words[0]; string soFar (THE_WORD.size(), '-'); …

Member Avatar for jonsca
0
166
Member Avatar for Khoanyneosr

[CODE]#define WIN32_LBAN_AND_MBAN #include <windows.h> LRESULT CALLBACK WindowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) { WNDCLASSEX windowClass; ZeroMemory(&windowClass, sizeof(WNDCLASSEX)); windowClass.cbSize = sizeof(WNDCLASSEX); windowClass.style = CS_HREDRAW | CS_VREDRAW; windowClass.lpfnWndProc = (WNDPROC)WindowProc; windowClass.hInstance = hInstance; windowClass.hCursor = LoadCursor(NULL, IDC_ARROW); windowClass.hbrBackground = (HBRUSH)COLOR_WINDOW; …

Member Avatar for Khoanyneosr
0
137
Member Avatar for Khoanyneosr

[CODE]/* Beginning Game Programming, Third Edition Chapter 4 Load Bitmap program */ #include <windows.h> #include <d3d9.h> #include <d3dx9.h> #include <time.h> #include <iostream> using namespace std; //program values const string APPTITLE = "Load Bitmap Program"; const int SCREENW = 1024; const int SCREENH = 768; //key macro #define KEY_DOWN(vk_code) ((GetAsyncKeyState(vk_code) & …

Member Avatar for LevyDee
0
139
Member Avatar for Khoanyneosr

[CODE]/* Beginning Game Programming, Third Edition Chapter 3 Direc3D_Windowed program */ #include <windows.h> #include <d3d9.h> #include <time.h> #include <iostream> using namespace std; #pragma comment(lib,"d3d9.lib") #pragma comment(lib,"d3d9.lib") //program settings const string APPTITLE = "Direct3D_Windowed"; const int SCREENW = 1024; const int SCREENH = 768; //Direct3D objects LPDIRECT3D9 d3d = NULL; LPDIRECT3DDEVICE9 …

Member Avatar for Khoanyneosr
0
309
Member Avatar for Khoanyneosr

[code] 1>------ Build started: Project: DirectXtutrials, Configuration: Debug Win32 ------ 1>Build started 3/24/2011 5:24:05 PM. 1>InitializeBuildStatus: 1> Touching "Debug\DirectXtutrials.unsuccessfulbuild". 1>ClCompile: 1> main.cpp 1>ManifestResourceCompile: 1> All outputs are up-to-date. 1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup 1>C:\Users\Konnor\Documents\Visual Studio 2010\Projects\DirectXtutrials\Debug\DirectXtutrials.exe : fatal error LNK1120: 1 unresolved externals …

Member Avatar for Khoanyneosr
0
271
Member Avatar for Khoanyneosr

[code] 1>------ Build started: Project: DirectXtutrials, Configuration: Debug Win32 ------ 1>Build started 3/24/2011 5:24:05 PM. 1>InitializeBuildStatus: 1> Touching "Debug\DirectXtutrials.unsuccessfulbuild". 1>ClCompile: 1> main.cpp 1>ManifestResourceCompile: 1> All outputs are up-to-date. 1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup 1>C:\Users\Konnor\Documents\Visual Studio 2010\Projects\DirectXtutrials\Debug\DirectXtutrials.exe : fatal error LNK1120: 1 unresolved externals …

0
62
Member Avatar for Khoanyneosr

So i read the "Flush Cin" post at the top of the thread and it just flew right over my head. I have a simple if statement that uses int values to determine where to send the user. If the user enters a char value it shoots itself into an …

Member Avatar for Khoanyneosr
0
158
Member Avatar for Khoanyneosr
Member Avatar for Khoanyneosr
0
151
Member Avatar for Khoanyneosr

[CODE] // Hangman Redo Program #include <iostream> #include <string> #include <cstdlib> #include <ctime> #include <string> #include <vector> #include <algorithm> using namespace std; //Functions void welcome(); void instructions(); int game(string sofar, const string THE_WORD, int MAX_WRONG, int wrong, string used); // Types and Arrays string choice; string inst; const int MAX_WRONG …

Member Avatar for Khoanyneosr
0
279
Member Avatar for Khoanyneosr

[CODE] // Hangman Redo Program #include <iostream> #include <string> #include <cstdlib> #include <ctime> #include <string> #include <algorithm> using namespace std; //Functions void welcome(); void instructions(); void game(); // Types and Arrays string choice; string inst; int main() { welcome(); return 0; } void welcome() { cout << "\tWelcome to Hangman …

Member Avatar for Narue
0
232
Member Avatar for Khoanyneosr

[CODE] #include <iostream> #include <ctime> #include <cstdlib> #include <string> #include <algorithm> using namespace std; //Types and Arrays string word[16] = {"GOLDFISH", "COMPUTER", "ANONYMOUS", "JACKET", "SHARP", "SERVICE", "EFFORT", "CHARACTER", "CHANGE", "WITHOUT", "PRODUCT", "UNFOLDING", "MUSIC", "MOMENT", "LIFETIME", "PROVIDE"}; // words that will be randomized. string hint[16] = {"Small colorful fish.", "A machine …

Member Avatar for daviddoria
0
190
Member Avatar for Khoanyneosr

[CODE] #include <iostream> #include <ctime> #include <cstdlib> #include <string> #include <algorithm> using namespace std; //Types and Arrays string word[16] = {"GOLDFISH", "COMPUTER", "ANONYMOUS", "JACKET", "SHARP", "SERVICE", "EFFORT", "CHARACTER", "CHANGE", "WITHOUT", "PRODUCT", "UNFOLDS", "MUSIC", "MOMENT", "LIFETIME", "PROVIDE"}; char guess[50]; static const char Y= 'Y'; static const char N= 'N'; char ans; …

Member Avatar for Khoanyneosr
0
132
Member Avatar for Khoanyneosr

[CODE] #include <iostream> #include <ctime> #include <cstdlib> #include <string> #include <algorithm> using namespace std; //Types and Arrays string word[16] = {"GOLDFISH", "COMPUTER", "ANONYMOUS", "JACKET", "SHARP", "SERVICE", "EFFORT", "CHARACTER", "CHANGE", "WITHOUT", "PRODUCT", "UNFOLDS", "MUSIC", "MOMENT", "LIFETIME", "PROVIDE"}; char guess[50]; static const char Y= 'Y'; static const char N= 'N'; char ans; …

Member Avatar for VernonDozier
0
590
Member Avatar for Khoanyneosr

So, I need to find a way to create a way for the computer to ask for input, for this example lets make it 1 and 2. 1 for yes and 2 for no. [CODE] int yes; int no; cout << Do you like orange chicken?" << endl; cout << …

Member Avatar for Khoanyneosr
0
424
Member Avatar for Khoanyneosr

[CODE] #include <iostream> #include <ctime> #include <cstdlib> #include <string> #include <algorithm> using namespace std; // Functions int instructions(); int game(); //Types and Arrays string word[] = {"GOLDFISH", "COMPUTER", "ANONYMOUS", "JACKET", "SHARP", "SERVICE", "EFFORT", "CHARACTER", "CHANGE", "WITHOUT", "PRODUCT", "UNFOLDS", "MUSIC", "MOMENT", "LIFETIME", "PROVIDE"}; char guess[50]; char inst[50]; int main() { cout …

Member Avatar for pseudorandom21
0
1K

The End.