- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 15
- Posts with Downvotes
- 11
- Downvoting Members
- 12
245 Posted Topics
[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
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.
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 …
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 …
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 …
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 …
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 …
Are there any libraries out there that allow me to play .avi files within my OpenGL application?
Is the first texture name returned from glGenTextures always guaranteed to be 1 for the first call in your program?
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 …
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> …
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 …
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'
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++?
Is there any way to do 3D drawing inside a window GUI application?
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? …
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) …
Firefox and K-Meleon for when I need a faster-lightweight browser for really quick tasks, for my computer is very slow
How can I check if my program was launched from the command line or from windows explorer?
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.
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 …
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 ?
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 …
[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 …
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> …
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 …
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 …
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 …
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 …
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. …
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 …
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 …
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 | …
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 …
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 …
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 …
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.
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 …
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) …
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 …
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?
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? …
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?
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 …
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 …
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; …
I'm using VC++ 2008 with Window XP Professional. I'm trying to make a custom assert function, which presents a dialog box asking what the user wants to do about the assert. When I call DialogBox, it shows my dialog properly, but every subsequent call to that function appears to do …
I'm trying to use a DLL that is generated from one of my projects. When I try to compile I get alot of linker errors from ONE of the files from the DLL project. What I think is the problem is that I should be linking to the .lib file …
The End.