Jump to content
  • Advertisement

TexMurphy

Member
  • Content Count

    39
  • Joined

  • Last visited

Community Reputation

122 Neutral

About TexMurphy

  • Rank
    Member
  1. Well, I shall have to come back. There are some security measures in place at my work place (yes, I've not been there too long). Nothing serious, but it might be tough for me to post actual code. I'll write some stuff down sometime at work and come back. Hopefully you'll be around then and maybe this thread will have survived. If not, I'll try and contact you with a message or something. It's really not that complicated though. I created a CWnd derived class (which only has some minor functionality to do with generic creation and some program specific non windows stuff) and added two CEdit derived boxes. The derivations were created because that was the only way I could get tabbing to work. Then, I added a function 'OnSetCursor' because the regular pointer changed to the sort of text input style cursor. I added this as a function to the window and the edit boxes. When I added that, that stopped the cursor changing, and it all works fine, except for when you type in the edit boxes and then move the mouse. I think it had that problem before I added that message handler. I'm sure enough messing around with it will present a solution, but obviously I would prefer to save that time.... etc. Anyway, thanks for the help so far. It's been useful.
  2. The disappearing doesn't worry me too much, it's the fact that the one window is not consistent with the other and that the cursor disappears until I take it out of the window. That momentary disappearance I don't mind.
  3. Hm, interesting. Is there anyway I can do this in code, since if I want to give out a program or something, I'd rather not have to also give out such instructions.
  4. Hi there, I'm doing a little Windows programming at the minute (Visual Studio 2005, C++) and I have a strange problem. I've create a window and have two CEdits in it for capturing input. Strangely, though, when I enter anything into these boxes, my mouse cursor will disappear if it is in that window. I can move it around and leave that window, and it will return to normal if the cursor moves into the main program window. Incidentally, the cursor also disappears in that window, but moving it at all will bring it back. I've read some stuff and tried the function which is... hmm... I think it's something like 'OnCursorChange' (it's a message handler, derived from CWnd). I tried to use the 'SetCursor' function to try and prevent something, but I'm not having any luck. I also tried overloading the 'OnKeyDown' function for the CEdit (I derived my own class so I could get the key down and cursor change functions), but had no luck. If anyone has any further clues, they would be greatly appreciated.
  5. Hi there, I have a problem with models sometimes doing strange things in my Direct X scene. Someone reckons that it might be the scaling and that there is some overall scaling variable that I might use. If anyone knows what it is, I would be grateful.
  6. TexMurphy

    A question of Direct X

    Hi there, I'm having a little problem (obviously) with an element of Direct X with models loading strangely. A friend mentioned that there was some universal scaling variable on which all co-ordinates are based... or something. That is to say, to change this value would not hurt pre-set camera views and such, but would allow badly loaded models to load with some less errors. If it helps, I'm programming in Visual Studio 2005, using C++ and Direct X 9. If anyone is able to help, I would appreciate it.
  7. Something that seems to keep cropping up that might be a clue. Every time I change the project and recompile, it says, in the output window, "LINK : F:\Documents and Settings\User\My Documents\Visual Studio 2005\Projects\Terrain_Generation_001\Debug\Terrain_Generation_001.exe not found or not built by the last incremental link; performing full link" Anyone?
  8. The breakpoints seem to be enabled. They are a solid red/pink colour and become only an outline with a yellow triangle when I actually come to run the program. As for the update, I will take a look at that, although I can't think VS2005 wouldn't have the ability to debug by default.
  9. Hi there, I've just installed Visual Studio 2005 on my machine, but I can't seem to get it to debug properly. The project runs and works, but it's a bit of a pain without being able to trace problems, as I'm sure you can imagine. As regards your first thoughts, yes, I am running in debug mode. I also have been to the project properties -> linker -> debugging section and turned 'generate debug information' to 'yes'. At first I thought it might be something to do with it being an OpenGL program, but I just tried it with a simple text output program and it didn't work. It just disables the breakpoints when it runs and skips right over them. It must be something really simple (someone suggested 'clicking the green arrow' last time. Amazingly, that did not work any differently from pressing F5) as surely debugging is a major feature. Oh, and I'm in the C++ configuration, if that makes a difference. Thanks a lot.
  10. TexMurphy

    Debug information in Visio 2005

    I have done both of these things, although unfortunately neither have solved the problem.
  11. Hi there, I've just installed Visio 2005 and, as with my previous installation, break points seem to not work by default when I first create a project, they simply appear with the yellow triangle next to them when I run. I've been to project properties->linker->debugging and turned debug information on, but that hasn't resolved the issue. Any tips?
  12. TexMurphy

    Newbie question OpenGL refreshing

    Actually, after trawling the internet for a few hours, I found that a strategic placing of 'glutpostredisplay' was the solution. I still can't figure out the Visual Studio debugging thing. Anyone?
  13. Hi there, I have created a simply openGL program which needs to be refreshing constantly. Currently, it only refreshes if I move the console. What can I do about that? Edit: I'm not using Windows messages to do the render updating. I'm doing things the 'simple way'. I know it can be done, since I've had it going before, but I cna't for the life of me remember how I did it. The code for my 'display' function is as follows: void display (void) { glClearColor (0.0,0.0,0.0,1.0); glClear (GL_COLOR_BUFFER_BIT); glLoadIdentity(); gluOrtho2D(0, WIDTH, 0, HEIGHT); CheckPoint(); DisplayPointList(); DrawPointList(); glutSwapBuffers(); } Another slight question about Vis Studio 2005. I'm trying to debug said program, but I keep getting the 'Debugging information for 'Project001' cannot be found or does not match... '. How can I turn the debugging back on? Thanks a lot. [Edited by - TexMurphy on April 9, 2008 12:50:59 PM]
  14. TexMurphy

    C++ file input/output

    Hi there, I've been looking over file streams for simple text file output, but I seem to be having problems. Both #include <fstream.h> and #include <fstream> turn up errors. Errors of not being able to find said file. For the record, I'm using Vis Studio 2005 on Win 2000.
  15. TexMurphy

    X files and meshes

    Hi there, I've been searching the web, can I can't seem to find a good explanation / tutorial about how to create / draw X files using materials and an adjacency buffer. If anyone knows of such a resource, please let me know.
  • 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!