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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.