Roger, it works, thanks a lot.
Type: Posts; User: aker_y3k
Roger, it works, thanks a lot.
Ah sounds logical to me! Cool, thanks. Is this thread safe, though?
But what if the application crashes before the CloseHandle is called? No other application will be allowed to run, as the event...
I must forbid the running of another instance of my app if itsd already running. I tried if (hInstance == hPrevInstance) but that obviously didnt work.
How can this be achieved?
Thanks
Ah, thanks.
I read it, but didn't understand it.
Very.. informative.. I've been there many times, thanks. Anything else?
Can someone explain the use of the last parameter in the CreateWindowEx, called void* pParam or something like that?
I believe it is used to pass a pointer to be used with the WndProcedure, but im...
Ok, it works. thanks
Hi,
I have a hash_map and I need to change a hash_map's key to another. The keys in this case are std:: strings. Say I have 2 objects registered, "obj1", "obj2". I want to rename the hash entry...
Cool I will try all and post the reuslts! thanks
Variadic functions, that one. Didn't know the term. Now, what didn't I explain well? I want to create a string from the variable argument list in the function parameters..
What?
I was asking about the ... parameter.Read it again.
Hello,
I've been trying to use std:: string with the function's ... functionality. I know how to do it with char*. Anyone can help?
void Error (string format, ...)
{
va_list ap;
...
This isn't a C++ related question, but I didn't know where else to ask. I need to make a batch file taht automatically adds include directories to VS2003. Is this possible?
Hello,
Is there a way to overload the way my class is casted to another object? For example, this is my class:
class CClass1
{
public:
Class1(int num) { i = num; }
blah blah
Nevermind, I found it, the destructor of the VolatileResource class needed to be virtual. But why is that needed? (The class is abstract)
Hello,
I'm having a problem here obviously.. I have a dll and an application using it, which needs to insert an object instance in a list in the dll through a function like:
IVolatileResource*...
Ahh it was SO easy??
Thanks man.
In my program, I have a directory string:
C:\\test\\media\\..\\img\\1.bmp
Now, my problem is that I need to have the absolute directory from the above, pointing to C:\\test\\img\\1.bmp
What's...
I see.
But who said that I didn't need a map? Vector was just a small replacement, with a name in the structure.
Anyway thanks
I think that std::map is a hashtable, right? So it should be fast returning a value from a key. Last time I tested it, I remember myself changing to vector cause map was too slow. Was I wrong?
I...
So what should I do to pass a structure which has the align(16) in front of it?
Hello,
I am using align(16) to align a structure. I use
typedef __declspec(align(16)) Vector3 Vec3;
Now, I am passing that Vec3 to a function, but the compiler (MSVC++ 7) says that...
I don't care about adobe, I need to make a program so that it can take all pictures in a directory and add a specific watermark on 0,0 at the image, a string.
Hello,
I am trying to figure out how to write a watermark text on an image I load. Would a simple textout do the job? I don't have experience in manipulating pixel data, so can somebody help me?
...
This is great, thanks.