Search results for query: *

  1. M

    C++ class to VB

    I've been trying to pass class pointers back and forth between a VC++ DLL and a VB application. In my C++ project, I have the following: MyClass.h: #include <Windows.h> #pragma once #ifdef MYDLL_EXPORTS #define MYDLL_API __declspec(dllexport) #else #pragma message("Automatic link to...
  2. M

    Threading issues

    This is gonna be difficult to summarize, but I'll try my best... I'm developing a graphics engine as extra credit for one of my classes. I'm using a balanced mixture of managed objects, GDI+, and Win32 API methods. Some of the classes I have are as follows: - Canvas (Device context/Memory...
  3. M

    Question Finding the heading (NSEW) given two points

    A 2D object has an x/y location, x/y direction, and a velocity. During each update, its location = (location + (direction * velocity)). This enables it to travel in any and all directions at varying speeds. Using this information, how would you find the angle (in degrees, from 0 to 360) between...
  4. M

    Transparency using old school BitBlt masking techniques: Broken?

    I remember way back in my VB6 days, I wrote a module that would create a device context in memory, load and select a compatible bitmap, and create a mask for the image, given a color to be marked as "transparent" (white) in the mask. Then all you had to do was BitBlt the mask to the target DC...
Back
Top