Search:

Type: Posts; User: Gerread

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: typedef struct

    by Gerread
    Replies
    2
    Views
    954

    Thanks alot matsp. I'm not sure how I forget...

    Thanks alot matsp. I'm not sure how I forget this stuff...
  2. Thread: typedef struct

    by Gerread
    Replies
    2
    Views
    954

    typedef struct

    I really shouldn't be posting this because i've done this before, but the way of doing it that i was 100% sure about is causing errors and I can't find example code that goes through the 10 or so...
  3. Replies
    7
    Views
    4,002

    I use GetFileSize to work on stuff before the...

    I use GetFileSize to work on stuff before the save and it works fine, but I tried a GetFileSize before the WriteFile and it returns a valid size.
  4. Replies
    7
    Views
    4,002

    I don't understand what you mean. I took the...

    I don't understand what you mean.

    I took the GetFileSize out of the parameters and had it set a variable, which was then passed in WriteFile. It still returns the error, though.
  5. Replies
    7
    Views
    4,002

    WriteFile() fails and returns strange error

    I am using WriteFile(); with an OVERLAPPED structure but it returns ERROR_INVALID_PARAMETER, which I googled to find out it happens when the OVERLAPPED structure hasn't been initialised to zero. I...
  6. Replies
    3
    Views
    1,608

    Supplying the full path did the trick!

    Supplying the full path did the trick!
  7. Replies
    6
    Views
    1,175

    I am using C here. I'll take your advice and...

    I am using C here. I'll take your advice and remove the casts in favour of stdlib.
  8. Replies
    3
    Views
    1,608

    mixed success with ShellExecuteEx

    I am using ShellExecuteEx to run an external program which works fine on my end. Various people who have tried it are getting very strange errors though. I read a topic on MSDN forums that...
  9. Replies
    6
    Views
    1,175

    That stopped it from complaining. Thanks for the...

    That stopped it from complaining. Thanks for the insight. I suppose that means wtih including stdlib, I can just cast it as whatever. It didn't fix the crashing (ofcourse) but it's one less thing...
  10. Replies
    6
    Views
    1,175

    Declared: unsigned char* mem = function(); ...

    Declared:

    unsigned char* mem = function();

    Proto:

    unsigned char* function(void);

    Relevant function part:
  11. Replies
    6
    Views
    1,175

    Compiler gives warnings I don't understand

    My current problem is about the compiler giving warnings that don't make sense to me, as in I don't understand why they're happening.

    "initialization makes pointer from integer without a cast"
    ...
  12. Replies
    3
    Views
    992

    I made an error. It is not fault of playsound,...

    I made an error. It is not fault of playsound, but because ShellExecute returns before the program it calls is done processing, causing the immediately following PlaySound to play and old .wav. I...
  13. Replies
    3
    Views
    992

    PlaySound repetitive playback

    I have a program which plays a sound depending on input from the user. The source file is a single file that is overwritten when the user makes a new choice. The problem is, it plays the sound so...
  14. Replies
    4
    Views
    1,779

    I'm at a loss...I can't come to grips with the...

    I'm at a loss...I can't come to grips with the fact that the only way to get the window to fix it's scroll bars after coming back from full screen is to resize it manually. That is just ridiciulous,...
  15. Replies
    4
    Views
    1,779

    Here's how I have it. Parent window resized ->...

    Here's how I have it.

    Parent window resized -> parent handler adjusts status bar and adjusts size to fit client area (and child window) into the new size. A MoveWindow is what gives the child...
  16. Replies
    4
    Views
    1,779

    Odd Sizing Issues

    I have two questions to ask here.

    First, I have custom maximize / restore handlers. Maximizing by clicking the button or right clicking the caption bar and selecting maximize works normally, by...
  17. Replies
    6
    Views
    5,137

    anonytmouse, that fixed it up perfectly. Not a...

    anonytmouse, that fixed it up perfectly. Not a speck of flickering. Thanks.
  18. Replies
    6
    Views
    5,137

    Resizing window causes extreme flicker

    The code I have now functions fine, it's just that when the window resizes the scroll bar flickers horribly. The image is fine, it's just the scroll bar. Shaft and all. These black rectangles...
  19. Thanks, now the status bar appears just fine. I...

    Thanks, now the status bar appears just fine. I changed the application to use 1 big parent window and child windows for the status bar and scroll area. Now I'd like to know if there's a...
  20. Taskbars; 'Cannot create top level child window'

    My current problem involves taskbars. I've added libcomctl32.a to the linker stuff in my project options in Dev C++ and included commctrl.h and it compiles OK. I have the code in my WM_CREATE for...
  21. This is the most ridiculous screw up I've done in...

    This is the most ridiculous screw up I've done in recent time. I was clicking the restore button when I missclicked it and hit the minimize button instead. My message box appeared and it was...
  22. Oh man...I'm at a loss here. I tried the...

    Oh man...I'm at a loss here. I tried the absolute simplest thing I could think of and yet, it still doesn't work!


    case WM_SYSCOMMAND:
    if(wParam == SC_MINIMIZE)
    {...
  23. case WM_SYSCOMMAND: SysCommandHandler(wParam);...

    case WM_SYSCOMMAND:
    SysCommandHandler(wParam);
    return DefWindowProc(hwnd, msg, wParam, lParam);



    void SysCommandHandler(WPARAM wParam)
    {
    if(wParam == SC_MAXIMIZE)
    {
  24. WM_SYSCOMMAND; SC_MINIMIZE never sent by application

    I have a program where I would like to set a few things depending on maximized or minimized state. I tried the WM_SYSCOMMAND where it has SC_MAXIMIZE and SC_MINIMIZE of which SC_MAXIMIZE does work...
  25. Replies
    4
    Views
    1,942

    Thanks, looks like what I'm after.

    Thanks, looks like what I'm after.
Results 1 to 25 of 36
Page 1 of 2 1 2