Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your help!

We need 7 developers from Canada and 18 more from Australia to help us complete a research survey.

Support our site by taking a quick sponsored survey and win a chance at a $50 Amazon gift card. Click here to get started!


Member Since 28 Dec 2003
Offline Last Active Nov 13 2013 02:22 PM

Topics I've Started

Finding the center INSIDE a polygon

01 October 2008 - 09:33 PM

The question is simple; In the example below, I would like to find the red dot in the blue polygon. The polygon can have holes, but no islands. The red dot is the position INSIDE the polygon with greatest distance to all it's lines. How do I find this without too much naive trial-and-error testing? If there is a known algorithm for this, what is the name I could google for? If not, what would your take on this be? [Edited by - CodeImp on October 2, 2008 4:07:31 AM]

Locking to access a primitive variable (multithreading)

26 September 2008 - 10:00 PM

This is probably a dumb question, but I don't know until someone tells my what and why, so here goes... I have two threads, one is the main application, the other does background loading. There is a boolean variable which the background thread reads and sets to show it's status. The main thread only reads this boolean value to see the status, but timing is not a big issue (it will check periodically and if it just missed the status change, it will notice on the next check, no worries). Do I need a locking mechanism (race condition, mutex, monitor, whatever) to access this boolean variable or can it be done without locking? And how is this if my variable is an integer? Thanks for the help! [Edited by - CodeImp on September 27, 2008 4:45:26 AM]

Looking for simple networking library for different platforms

27 April 2008 - 02:07 AM

Hey, I'm looking for a simple networking library that can be implemented for different platforms. It is for a multiplayer game ofcourse. With simple I mean I don't need fancy object synchronization across the network. I don't have many different events to send across, just a lot of messages to 'broadcast' each player's input (RTS style networking). I'm looking for something that is going to work on the PC, XBox360 and PS3. I have already looked around a bit and tried DemonWare and Net-Z, which I decided I could not use. Can any of you recommend any libraries? Thanks in advance!

Bloodmasters goes Open Source!

27 February 2008 - 12:34 AM

A a little over a year ago I released my arcade top-down shooter game Bloodmasters and now it is open source, released under GPL license. The game is entirely written in C# (.NET 1.1) and uses Managed DirectX, so it might be interesting to some of you around here. I have learned a lot last year so I recognize there could be some improvements, but the project is finished and I don't feel like updating it anymore. I hope the source code can be of use to anyone. Feel free to take a peek and comment on it! The repository can be downloaded from SourceForge and is 400 MB large (it includes all resources used during development, uncompressed), so prepare yourself :P

[.net] Exception on LockWindowUpdate in Vista

04 October 2007 - 07:44 PM

This code works fine in Windows XP, yet when I ask someone to run it on Vista (I don't have Vista myself) then it throws a FileNotFoundException. Please have a look;

public static extern bool LockWindowUpdate(IntPtr hwnd);

// System.IO.FileNotFoundException: The specified module could not be found.

Why? User32.dll is still available in Vista, isn't it?