Search:

Type: Posts; User: Mox

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    2,706

    Nice, but... I'm using vc++ and it only has...

    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 :(
  2. Replies
    5
    Views
    2,706

    I also found vsnprintf, but that isn't what I...

    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...
  3. Replies
    5
    Views
    2,706

    vsprintf overrun -> _vscprintf?

    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...
  4. Replies
    5
    Views
    2,174

    Well actually I still haven't found anything, and...

    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...
  5. Replies
    5
    Views
    2,174

    I don't know if that will cut it... I know you...

    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...
  6. Replies
    5
    Views
    2,174

    OSD or transparent window

    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...
  7. Replies
    2
    Views
    23,210

    case insensitive strstr?

    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...
  8. Thread: class operator +

    by Mox
    Replies
    4
    Views
    1,257

    But isn't s a local variable? And you shouldn't...

    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 :(
  9. Replies
    10
    Views
    5,748

    There is a way to do this. But it's a bit...

    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...
  10. Thread: memcpy

    by Mox
    Replies
    10
    Views
    5,776

    I don't think a var that is new'd is deallocated...

    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...
  11. Thread: class operator +

    by Mox
    Replies
    4
    Views
    1,257

    class operator +

    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
    {
  12. Replies
    5
    Views
    5,278

    That's kind of what I'm doing. What do you...

    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...
  13. Replies
    5
    Views
    5,278

    Like I said, most of the time I was just...

    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",...
  14. Replies
    2
    Views
    1,667

    How is the cursor drawn

    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...
  15. Replies
    1
    Views
    1,280

    You probably have errors when setting the...

    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...
  16. Thread: Timers

    by Mox
    Replies
    2
    Views
    5,557

    I think this worked. Although I thought I...

    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...
  17. Thread: Timers

    by Mox
    Replies
    2
    Views
    5,557

    I've tried a little setup for this: one dll and...

    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...
  18. Thread: Timers

    by Mox
    Replies
    2
    Views
    5,557

    Timers

    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...
  19. Replies
    3
    Views
    2,559

    I don't know about your problems with the...

    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...
  20. Well then, have you tried my method yet, because...

    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
  21. Replies
    3
    Views
    2,559

    Calculating window sizes

    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...
  22. Replies
    2
    Views
    1,500

    One process at a time

    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...
  23. You've made me curious. I tried and found some...

    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...
  24. Replies
    0
    Views
    824

    task-switching messages

    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...
  25. Replies
    3
    Views
    2,540

    Thanks a lot!!! I already found out that...

    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...
Results 1 to 25 of 41
Page 1 of 2 1 2