Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
13% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
15
Posts with Downvotes
11
Downvoting Members
12
8 Commented Posts
~97.5K People Reached
About Me

If you want to know more, ask me. :)

Interests
Programming, mostly python and c++ but i know others like html, css, javascript, php ect.
PC Specs
Windows XP Pro SP3Intel Pentium 4 1.7GHZ512 mb ramATI Radeon 9550 / X1050 SeriesDual Logitech SkeakersViewsonic…
Favorite Tags
c++ x 307
python x 141
c x 67

247 Posted Topics

Member Avatar for vegaseat

I'v started making a text adventure but its just taking so long, heres part of the code: #MILITARY choice = raw_input("Pick your civ:") if choice == "military": print "You have chosen military, you would rather make another species extinct than impress them with dancing or music" print "Do you want …

Member Avatar for vegaseat
20
18K
Member Avatar for loken
Member Avatar for idRATHERgoHUNT

[QUOTE=antwayne;927186][B][I]Is there a game like wow, guild wars or something for mac and free, if any one knows. Thanks[/I][/B] :?: :icon_cool:[/QUOTE] i believe that runes of magic has a mac version

Member Avatar for remixedcat
-2
2K
Member Avatar for sillyboy
Member Avatar for tomtetlaw

My Ubuntu version is 12.04. I'm simply trying to include GL/glu.h in my program, but I get the error: `fatal error: GL/glu.h: No such file or directory` I include it like this: `#include <GL/glu.h>` I have libgl1-mesa-glx-dbg, libgl1-mesa-dev, mesa-common-dev all installed.

Member Avatar for tomtetlaw
0
140
Member Avatar for tomtetlaw

I appolagise for the slightly ambiguous title, I didn't know what to call it. I want to create a way to define interfaces without having to also write the class declaration that implements it. I have the class members, and the interface defined, but I am not sure how (if …

Member Avatar for tomtetlaw
0
167
Member Avatar for tomtetlaw

I'm using VC++ 2010 with Windows 7 x64. I'm compiling all my code as C code. I have a for loop like this: for (i = 0; i < max; i++) { ... } But when I run it, `i` is being set to `max` If I set `i` to …

Member Avatar for DeanMSands3
0
149
Member Avatar for tomtetlaw

How do I make the coordinate system in DirectX 11 relative to the top left of the screen? I've setup an orthographic projection matrix, so that I can use screen coordinates but it makes more sense to me to have a top left origin, since I come from working with …

0
68
Member Avatar for Jsplinter
Member Avatar for tomtetlaw

When I handle WM_MOUSEMOVE in my window prodedure, HIWORD(lParam) and LOWORD(lParam) are both a little off. It's returning a point that is slightly to the left and slightly above where my cursor actually is... What's really weird is that as I move the cursor closer to the top left of …

Member Avatar for tomtetlaw
0
573
Member Avatar for tomtetlaw

First of all I learnt how to do this from http://nehe.gamedev.net/tutorial/playing_avi_files_in_opengl/23001/ AVIStreamGetFrameOpen is always returning NULL. I checked to see if I could open the AVI file in windows media player and that worked, so that means it can't be a codec problem, right? I'm not too sure. All the …

Member Avatar for tomtetlaw
0
256
Member Avatar for tomtetlaw

Are there any libraries out there that allow me to play .avi files within my OpenGL application?

Member Avatar for tomtetlaw
0
143
Member Avatar for tomtetlaw

Is the first texture name returned from glGenTextures always guaranteed to be 1 for the first call in your program?

Member Avatar for DeanMSands3
0
59
Member Avatar for tomtetlaw

I'm looking for feedback on my code. I wrote a custom memory allocator (out of pure boredom) that is faster than the STD one (malloc, free). It's pretty simple in the way it works, it has a base block of memory which is where everything is allocated from, and it …

0
76
Member Avatar for tomtetlaw

I'm trying to compile a VC++ 2010 solution of two Static Library projects and I just get this (it's the build log): [code] 1>------ Build started: Project: df_debug, Configuration: Debug Win32 ------ 2>------ Build started: Project: common, Configuration: Debug Win32 ------ 1>Build started 14/02/2012 10:51:14 PM. 1> 1>Build FAILED. 1> …

Member Avatar for tomtetlaw
0
99
Member Avatar for tomtetlaw

I'm using VC++ 2010 and Window 7 64-bit. In my project, I have 2 DLLs and one EXE (all being build 32-bit). They're all using the same runtime library (Multi-Threaded Debug) and I have checked that nothing is being deleted twice. I'm fairly sure that nothing is being allocated in …

Member Avatar for daniel.bonetti
0
3K
Member Avatar for subbudaita

myA won't disapear because it is allocated on the heap. you have to do [icode]delete myA;[/icode] before your program exits then it will 'go away'

Member Avatar for tomtetlaw
0
129
Member Avatar for tomtetlaw

Is there any reason you would want to write your own RTTI system for use in your code, when there already is one in C++?

Member Avatar for mike_2000_17
0
546
Member Avatar for tomtetlaw
0
61
Member Avatar for tomtetlaw

I'm not sure if this is the right forum to post this in, but here goes: I want to make a 3D map editor for my game. I want it to have various panels/buttons around the 3D view in the center. What would be the best way to do this? …

Member Avatar for mrnutty
0
55
Member Avatar for tomtetlaw

I don't really know what to ask here because the only indication I have that there is something wrong in my program is that nothing is showing on the screen. I'm loading a .obj model (it's just a cube, and i've checked all the verts/faces and they're all proper values) …

Member Avatar for tomtetlaw
0
143
Member Avatar for adkool

Firefox and K-Meleon for when I need a faster-lightweight browser for really quick tasks, for my computer is very slow

Member Avatar for crunchie
2
895
Member Avatar for tomtetlaw

How can I check if my program was launched from the command line or from windows explorer?

Member Avatar for tomtetlaw
0
149
Member Avatar for Zssffssz

You can use: [icode] keybd_event(VK_CAPITAL, 0x45, KEYEVENTF_EXTENDEDKEY, 0); keybd_event(VK_CAPITAL, 0x45, KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP, 0); [/icode] To toggle it.

Member Avatar for sundip
0
98
Member Avatar for tomtetlaw

I'm trying to develop a pixel shader that allows me to input colors to directx in a 0-255 range for each chanel, and it will convert it to the 0-1 range that pixel shaders need to return, but the input to my pixel shader is sometimes being clamped to 255 …

0
93
Member Avatar for tomtetlaw

I'm trying to use DirectX 10 with the C interface and it was going fine untill I did this: [code=c] IDXGISwapChain_GetBuffer(r_swapchain, 0, __uuidof(ID3D10Texture2D), LPVOID(void**) &back) [/code] The problem is that the __uuidof operator is only valid in c++, what should I pass in there instead of the __uuid ?

0
70
Member Avatar for tomtetlaw

I'm not sure if this is in the right forum, but anyway: I have an Acer Aspire 5742G Laptop and the headphone port has started to act funny. It doesn't send audio to the left side of my headphones unless I hold the headphone plug slightly down. I've tested it …

Member Avatar for flagstar
0
173
Member Avatar for jbennet

[QUOTE=Tom_Luthor;973092]ATTENTION ALL MAC HATERS.......CHECK THIS OUT [url]http://www.albinoblacksheep.com/flash/apple[/url] WOOT MACS R GAY!!!!! IF YOU AGREE WITH THIS ^^^^^^^^^^^^^^^^^^^^^^^^ JUST SPREAD ANTI-MACISM AROUND AND SPREAD THIS LINK AROUND............WOOOOO....p.s. To the mac users.......wth is with the spinny mouse when ever sumthing is loading........im sorry but i just dont like macs.....i mean no offence …

Member Avatar for jingda
-1
610
Member Avatar for tomtetlaw

Could someone please explain how DWordSwapAsm works without a return statement? I've ran the program with breakpoints and [ICODE]i[/ICODE] gets changed even though there's no return value in that function.. how does this work? NOTE: I don't want help with the assembly code, just the function itself. [CODE]template <typename T> …

Member Avatar for tomtetlaw
0
111
Member Avatar for tomtetlaw

When I try to call wglMakeCurrent, I get an access violation. My program only runs in one thread and one window, and I've got a valid device context and rendering context, I can't see what the problem is. I'm using VC++ 2010 and am running Widows 7 64-bit. [code=c++] static …

0
79
Member Avatar for tomtetlaw

I have a pure virtual base class called IVSystemDLL. I also have a class called CVSystemDLL which inherits from IVSystemDLL. When I create a [icode]new[/icode] CVSystemDLL and convert it to a IVSystemDLL *, and try to use one of it's functions, I get an access violation. It's not something inside …

Member Avatar for tomtetlaw
0
2K
Member Avatar for tomtetlaw

I'm using VC++ 2010 Ultimate and I'm running a Windows 7 x64 machine. I have a function declared to be a dll export ([icode]__declspec(dllexport)[/icode]) and it builds without error or warning, but when I try to load that function with [ICODE]GetProcAddress[/ICODE] it returns NULL. I've looked inside the .exp file …

Member Avatar for tomtetlaw
0
161
Member Avatar for tomtetlaw

I'm trying to understand how to change a windowed-window to a fullscreen-window at run time. What I do is use a DEVMODE structure with ChangeDisplaySettings when I want to make it fullscreen. I set the width and height to the width and height of the screen, which is fine. But …

Member Avatar for tomtetlaw
0
1K
Member Avatar for tomtetlaw

I am trying to write a few functions that work when compiling for windows AND linux, and I can't seem to find the linux equivilent of a few windows functions. If it's of any relavance I intend to use GCC to compile for linux and VC++ to compile for Windows. …

Member Avatar for mike_2000_17
0
200
Member Avatar for tomtetlaw

I've registered my raw input devices successfully but Windows doesn't send me the WM_INPUT message when I press keys or do things with the mouse. I am using an event hook to get the messages since I'm using SDL and it receives other messages fine. This is the code I …

Member Avatar for tomtetlaw
0
2K
Member Avatar for tomtetlaw

I am trying to use SDL with the Raw Input API but whenever SDL sends me a keyboard input message, the [icode]msg[/icode] it sends me is an invalid pointer and it gives me an access violation when I try to use it. I check to see if it's invalid for …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for tomtetlaw

For some reason my resource file isn't getting compiled when I compile in VC++ 2010 express. Even when I make changes to the .rc file. This is the contents of it: [code=c++] #include <windows.h> #include <commctrl.h> #include "resource.h" LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US IDD_ASSERT DIALOGEX 150, 100, 180, 180 STYLE DS_MODALFRAME | …

Member Avatar for tomtetlaw
0
206
Member Avatar for tomtetlaw

I have 2 projects. I'm using VC++ 2010 express. The first is a static library which generates a lib file called stdlib.lib. The second is a dll project which links to stdlib.lib. When I try to compile, I get linker errors that say unresolved reference and they refer to functions …

Member Avatar for mitrmkar
0
171
Member Avatar for tomtetlaw

I have Ubuntu Server 10.10. My setup is as follows: From the Ubuntu Server, I have an ethernet cable connecting to my Windows Computer, which has a wireless connection to my modem(and the internet). How would I be able to make it so that I can connect to the internet …

Member Avatar for tomtetlaw
0
342
Member Avatar for tomtetlaw

I've burned the ubuntu server installer .iso to a CD. When I try to boot from it it tells me the disk boot failure message. I know it's not the CD drive that's the problem because I get the same error on multiple computers. Is there anything I have to …

Member Avatar for JasonHippy
0
256
Member Avatar for tomtetlaw

Is there any function that allows me to completely remove and [I]deallocate[/I] all contents of a std::map? The functions [icode]clear()[/icode] only removes all elements, it doesn't free any memory.

Member Avatar for Rashakil Fol
0
6K
Member Avatar for tomtetlaw

I'm creating a library that easily adds a bunch of debugging features to c++ programms. At the moment I have these features: - A more useful assert dialouge. - Pointer validation using IsBadReadPtr/IsBadWritePtr. - Memory leak tracking. I'm trying to think of other features I could add to this. What …

Member Avatar for tomtetlaw
0
139
Member Avatar for tomtetlaw

I use CRT memory leak checking in my program, when it closes, it produces this output: [code] Detected memory leaks! Dumping objects -> c:\program files\microsoft visual studio 9.0\vc\include\crtdbg.h(1203) : {133} normal block at 0x003B6938, 4 bytes long. Data: < 5 > 00 00 35 00 c:\program files\microsoft visual studio 9.0\vc\include\crtdbg.h(1203) …

0
74
Member Avatar for tomtetlaw

Something very strange is happening. I put a breakpoint in VC++ at the line [icode]char *arg[/icode] and string is what it should be. But as soon as I go to the next line, string changes to this: [icode]0x0012f864 ÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌ[/icode] I really have no idea why this is happening and I …

Member Avatar for Ancient Dragon
0
114
Member Avatar for tomtetlaw

I've seen macros like this: [icode]#define $Line #__LINE__[/icode] and I was wondering what the effect of the $ symbol has in a macro?

Member Avatar for tomtetlaw
0
127
Member Avatar for tomtetlaw

I find the OpenGL Co-ordinate system really hard to use. I would much rather have things like glVertex2f(-100,-100) put a vertex back 100 pixels in the X and Y direction from the origin, instead of it being totally off the screen. Is there any way that I can do this? …

Member Avatar for myk45
0
267
Member Avatar for tomtetlaw

Why does fopen_s have the paramater [icode]FILE **_File[/icode] rather then the [icode]FILE *_File[/icode] that fopen has? And what is the difference between those two functions?

Member Avatar for tomtetlaw
0
246
Member Avatar for tomtetlaw

I've been following Chad Vernon's (very good) Direct X 9 tutorial [[URL="http://www.chadvernon.com/blog/resources/directx9/loading-a-static-mesh-x-format/"]http://www.chadvernon.com/blog/resources/directx9/loading-a-static-mesh-x-format/[/URL]]. I am stuck at one point because I'm trying to load a .x model, I have it set up so it will output errors if something goes wrong but nothing appears, I've setup breakpoints and looked at return …

Member Avatar for chrjs
0
245
Member Avatar for tomtetlaw

Say you had a struct like this: [code] typedef struct{ int i; short s; unsigned char pad[2]; } test_t; [/code] What would be the point of adding the member pad as doesn't the compiler automatically do things like that? I saw a struct like this looking in some source code …

Member Avatar for Ancient Dragon
0
84
Member Avatar for tomtetlaw

I'm trying to make a Windows application but I get the error in the title. I am running Windows XP Professional and using VC++ 2008. Here is how I call my code: [code=c++] WNDCLASSEX wcex; wcex.cbSize = sizeof(WNDCLASSEX); wcex.style = 0; wcex.lpfnWndProc = WndProc; wcex.cbClsExtra = 0; wcex.cbWndExtra = 0; …

Member Avatar for tomtetlaw
0
518

The End.