CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: DaigonoYouso

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    13
    Views
    3,360

    Re: List View Report questions and bugs (?)

    thanks all, doing stuff with VK_ESCAPE works in WM_KEYDOWN, while VK_RETURN works in WM_CHAR, not sure why, if I try RETURN in KEYDOWN, it will still beep and if I try ESCAPE in char, it will close...
  2. Replies
    13
    Views
    3,360

    Re: List View Report questions and bugs (?)

    thanks, but I already edited the reply before you posted, anyway, it now doesnt beep, but still closes the main dialog, even when I return 0, also what's the difference between WM_CHAR and...
  3. Replies
    13
    Views
    3,360

    Re: List View Report questions and bugs (?)

    but, is there ANYTHING wrong with it, or is it just that it's not needed and it's there in addition? so uhm, since im using wndclass, my dialog is not real dialog ? I just learned win32api basic...
  4. Replies
    13
    Views
    3,360

    Re: List View Report questions and bugs (?)

    wow, thanks, it was driving me crazy last few days and I had no idea the "ex" stands for extended and I have to add it this way (I thought it's ex, as "old", you know how I mean it...), anyway, why...
  5. Replies
    13
    Views
    3,360

    List View Report questions and bugs (?)

    okay, so I'm creating a listview with report style, however I'm having some troubles with it, I'm creating it in .rc not via function, like this


    CONTROL "", IDC_LIST, WC_LISTVIEW,...
  6. Replies
    44
    Views
    16,975

    Re: [win32] Send bitmap over socket

    thanks for the code and for the effort, I've been kinda busy last 2 weeks with school projects and will continue to work on this project soon
  7. Replies
    44
    Views
    16,975

    Re: [win32] Send bitmap over socket

    okay, I'm now including null in the string before sending, this works fine, however Im still getting VS errors, here's output from client:


    Incoming Buffer size: 921645
    Total New: 103304
    Total...
  8. Replies
    44
    Views
    16,975

    Re: [win32] Send bitmap over socket

    thanks! that \0 appending was changed on the server, but not on the client, anyway I know why it is causing bad_alloc; when I get bitmap_size message, it contains size of the array that's coming,...
  9. Replies
    44
    Views
    16,975

    Re: [win32] Send bitmap over socket

    well, now Im able to send, receive and draw the bitmap, but there are 2 more erros happening:

    1. the bitmap on the server is weird, like, it changes colors and stuff, for example everythings pink,...
  10. Replies
    44
    Views
    16,975

    Re: [win32] Send bitmap over socket

    32239
    32241
    32243
  11. Replies
    44
    Views
    16,975

    Re: [win32] Send bitmap over socket

    I edited the previous reply with link to the project
  12. Replies
    44
    Views
    16,975

    Re: [win32] Send bitmap over socket

    unfortunatelly I did not find a function to release bitmap, but I'm deleting it, so that's kinda fine, also Ill upload project for you, I hope MEGA isnt prohibited here, and also I tried to modify...
  13. Replies
    44
    Views
    16,975

    Re: [win32] Send bitmap over socket

    the only one who helped me was Paul, this Igor just told me to do what I did a long time ago...
  14. Replies
    44
    Views
    16,975

    Re: [win32] Send bitmap over socket

    Im doing that, and I can even draw bitmap created with SetDIBits from that buffer on the client, but not on the server



    so I had to post 600+ lines here? also everybody knows pastebin...


    ...
  15. Replies
    44
    Views
    16,975

    Re: [win32] Send bitmap over socket

    I'm storing socket as "mySocket" now, anyway when I send a bitmap, it will again process the message several times and spam my log, and the bitmap is black


    int size;
    if(!bGotInfo)...
  16. Replies
    44
    Views
    16,975

    Re: [win32] Send bitmap over socket

    I'm totally lost now, I have this code for sending:


    RECT rc;
    GetClientRect(GetDesktopWindow(), &rc);

    HDC hDC = CreateCompatibleDC(NULL);
    HBITMAP hBmp =...
  17. Replies
    44
    Views
    16,975

    Re: [win32] Send bitmap over socket

    well, since I'm SENDING packet with size pbi->bmiHeader.biSizeImage, then the size can't be wrong on accept, IF I receive a valid bitmapinfo data, anyway, I have this code


    if(bInfo)
    {...
  18. Replies
    44
    Views
    16,975

    Re: [win32] Send bitmap over socket

    I still somehow can't manage to retrieve the bitmap properties, sending code:


    RECT rc;
    GetClientRect(GetDesktopWindow(), &rc);

    HDC hDC = CreateCompatibleDC(NULL);...
  19. Replies
    44
    Views
    16,975

    Re: [win32] Send bitmap over socket

    I fixed the leak before I saw it here, but that doesnt matter, thank you, this was like the first time ever you were useful to me

    also, did I punch you, or did I said that I feel like that?...
  20. Replies
    44
    Views
    16,975

    Re: [win32] Send bitmap over socket

    the way you reply, also I didnt threat you nor harassed you in any way, I just expressed my feelings
  21. Replies
    44
    Views
    16,975

    Re: [win32] Send bitmap over socket

    when I read your responses, I really want to punch you in the face, really hard, with a chair
  22. Replies
    44
    Views
    16,975

    Re: [win32] Send bitmap over socket

    okay, I have this function now


    RECT rc;
    GetClientRect(GetDesktopWindow(), &rc);

    HDC hDC = GetDC(NULL);
    HBITMAP hBmp = CreateCompatibleBitmap(hDC, rc.right, rc.bottom);
    ...
  23. Replies
    44
    Views
    16,975

    Re: [win32] Send bitmap over socket

    that is why I'm trying to get the bitmap info to BITMAPINFO struct and then to buffer, using GetDIBits function, which is unfortunatelly giving me an error
  24. Replies
    44
    Views
    16,975

    Re: [win32] Send bitmap over socket

    but I want to send the bitmap over socket, not to save it ...
  25. Replies
    44
    Views
    16,975

    [win32] Send bitmap over socket

    I want to send a bitmap over socket, however since I kinda work with bitmaps for the first time, I dont really have an idea how to do that, so far I have code that gets the screenshot of the screen...
Results 1 to 25 of 39
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured