I'm using PeekMessage in my message queue, but try to filter any messages not needed. For example, I tell my program to ignore any key-down messages because I handle input differently.
Recently, however, I've been getting messages reguardless of my not interacting with the program at all. The...
I am working with strings (using them as path names for loading files), and I have the following, really basic line of code:
string temp = "";
That's it. No tricks here.
However, when I execute this in the debug environment, the compiler sets the variable equal to...well...a directory path...
I am using a compiler that does not provide a means to associate an icon with my application. Is there a way around this?
(preferably a free way. I've seen a lot of purchasable applications whose job is to associate icons with programs...)
Is there an API call that will return the path to the directory the application is located at?
MSDN says GetCurrentDirectory should work, but when I tried using the example code for it, my compiler spit back errors at me saying the "#using <mscorlib.dll>" was an undefined preprocessor...
I have a class:
class Object
{
public:
LPTSTR getName();
private:
LPTSTR lpstr_ObjectName;
};
LPTSTR Object::getName()
{
return lpstr_ObjectName;
}
I have another class:
class SomeOtherClass : Object
{
public:
void...
Does anyone know how to store the code behind the functions for a class in a DLL? I know how to store them in an LIB, and I know how to store regular functions in a DLL, but I can't figure out how to write the functionality for a class in a DLL and load THAT in.
Thanks
Say I have a class. It is a very large class and belongs to a group of other classes that implement themselves/inherit from themselves, etc...
These classes can be declared a giant header file without much trouble or confusion if documented in an organized way. Now, the usual way of implemeting...
I have been using the DirectInput libraries recently to get hold of the keyboard. However, I haven't been able to do so much as initialize an instance of the IDirectInput class due to the face that my compiler keeps complaining that the IID_IDirectInput8A GUID definition is not defined in the...
I have had a number of problems recently with certain functions and GUIDs not being defined properly/not being read properly by the compiler. My guess is that eithor a windows library is corrupt, or I need to change a setting in my compiler...
Anyway, the problem is that when I tried using the...
I have recently used basic API functions to load a bitmap and make it 'bounce' around the screen. The program implements a wrapper class which does all the loading, blitting, drawing, and creating of the bitmap being used.
I am currently having problems with the "draw" function of my program...
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.