Nice, but...
I'm using vc++ and it only has _vsnprintf which doesn't follow that specification and just returns -1 when it would overrun the buffer. So that won't work either :(
Type: Posts; User: Mox
Nice, but...
I'm using vc++ and it only has _vsnprintf which doesn't follow that specification and just returns -1 when it would overrun the buffer. So that won't work either :(
I also found vsnprintf, but that isn't what I want, because then I can't get the rest of the string. But it will get rid of the overrun...
And where could I search for the library?
Thanks for...
Hi,
I'm using vsprintf, but I'm having trouble with large strings. This is because I use a static buffer size and when the string i want to create is larger than this, vsprintf overruns the...
Well actually I still haven't found anything, and was recently thinking about it again. So thanks on the input.
I could indeed use the display DC. But won't that be overwritten when some other...
I don't know if that will cut it...
I know you can setup regions that will be transparent, but is that really the way to go if you want to make an OSD or something like the office assistant.
With...
Hello,
I hope you can help me, because I can't find the answer: How do you make an overlay window like the office assistant.
I want to be able to draw something on top of everything else. But it...
Is there an case insensitive strstr?
because there are strcmp <-> stricmp, but no stristr...
I know I could first make copies of the two strings, both to lower or upper case, but that's not really...
But isn't s a local variable? And you shouldn't return a local variable, because it goes out of scope on return s; If not, I don't understand anything anymore. At least not about scope :(
There is a way to do this. But it's a bit complicated. (well not really, rather far fetched)
here goes:
the callback function in the class should be declared static. This is because normal...
I don't think a var that is new'd is deallocated at the end of the scope. It's created at the heap and all the vars that deallocate at the end of the scope are created at the stack.
So it's not good...
Hi!
I'm trying to learn operator overloading. But I have some problems grasping the basic idea.
Let's say we have this class:
class tutClass
{
That's kind of what I'm doing.
What do you mean by stringstream extraction? I currently just check each character in the string to see if it matches the type. But I don't really want to do...
Like I said, most of the time I was just rambling. I'll try again...
This is what a call to my function looks like:
char * result = findPattern( "String to search: 123.123.123.123",...
Hi you all!
This is a question about the basics of windows. Because I'm trying to make my own GUI (for games) I need to know how they work. It's going well so far, but I always make it harder and...
You probably have errors when setting the lpWndProc member of the WNDCLASS(EX) to a member of you class? If so, this is the same problem I had some time ago.
This is because the member function...
I think this worked. Although I thought I couldn't duplicate the times because they weren't created by the extra processes, it seems I can. If I only open the process using the processID.
If anybody...
I've tried a little setup for this:
one dll and one exe.
The first exe to load the dll creates the filemap and the timer thread.
The dll sets timerhandles for use with the timer thread.
This...
Hi,
don't you just hate timers? I know I do (sort of :)) They're never on time especially if you specify timers lower than approximately 50 ms and that's exactly what I want.
I know I can use...
I don't know about your problems with the SetWindowPos, because I've never used the first flag. If I want to change the Z-order I just use SetForeGroundWindow or something.
I know I can get the...
Well then, have you tried my method yet, because it should adjust the resource file in the exe file and therefor the exe itself :)
Don't know if it works though... (tell me ;))
Joren
Hi,
I've always have difficulties calculating the sizes of windows. Now I know that I can use AdjustWindowRect() for it. But what to do if you want to resize a listview or a combobox? Especially...
Hi,
I want to have one process of my app running at a time. How can I do this?
OK, that's the basic question. Now I'll give some more details:
I'm making a control panel app. I've kept it pretty...
You've made me curious. I tried and found some things out...
You can do this (I think) if you're running windows NT 3.1 or later. Not 9X. And because I have 98 I can't try it. But you can use...
Hi,
I was wondering if there are any messages that tell you that the task-switch window has popped up. I've tried some things but they don't work. I also wan't to know when it disappears.
I used...
Thanks a lot!!!
I already found out that pointers to members work diffirently than normal pointers, but I didn't find a way around this yet. That link was really helpfull.
One thing I don't...