Search:

Type: Posts; User: MichaelSpectre

Search: Search took 0.03 seconds.

  1. Replies
    5
    Views
    579

    Re: Threading question

    Well after much debate, I've decided to just toss the entire managed event-driven system out of the window.
    Instead, I'm just creating my own window (via CreateWindowEx) to replace the application's...
  2. Replies
    8
    Views
    15,904

    Re: hDC in VB.Net

    Just an FYI, Verzulsan from 1 month ago, there is no need to append ".ToInt32" to that since it is already an IntPtr. Also, be sure to use ".ReleaseHdc" afterwards, like so:

    Dim g As Graphics =...
  3. Replies
    5
    Views
    579

    Re: Threading question

    Well to put it simply, I've created a graphics engine which requires a reference to a control in order to render anything to it, and requires a reference to the parent form in order to install a low...
  4. Replies
    5
    Views
    579

    Threading question

    I have a class which creates a thread for an infinite loop. Upon initialization, this class takes in an instance to a control from the main form.
    The class also provides events for the main form, so...
  5. Module handle of a form from seperate process?

    Using a combination of managed .NET objects and some p/invoke Win32API methods, I've created an input manager that installs a low-level keyboard hook on it's own thread (for a graphics engine). Works...
  6. Re: Finding the heading (NSEW) between 2 points?

    The productivity is strong in that comment...

    And yes, I've done my homework. I've calculated the normalized dot product and found it's inverse cosign, which gives me the angle in radians. If I...
  7. Finding the heading (NSEW) between 2 points?

    A 2D sprite has an x/y location, x/y direction, and x/y velocity.
    During each update call, its location = (location + (direction * velocity)).
    This enables it to travel in any and all directions at...
Results 1 to 7 of 7



Click Here to Expand Forum to Full Width