Search:
Type: Posts; User: DaigonoYouso
Search:
Search took 0.01 seconds.
-
February 18th, 2014, 08:48 AM
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...
-
February 17th, 2014, 09:48 AM
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...
-
February 17th, 2014, 09:05 AM
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...
-
February 13th, 2014, 11:13 AM
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...
-
February 13th, 2014, 02:53 AM
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,...
-
January 26th, 2014, 10:58 AM
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
-
January 11th, 2014, 01:03 AM
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...
-
January 9th, 2014, 05:50 PM
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,...
-
January 9th, 2014, 09:07 AM
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,...
-
January 7th, 2014, 02:59 AM
-
January 6th, 2014, 05:08 PM
I edited the previous reply with link to the project
-
January 6th, 2014, 04:42 PM
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...
-
January 6th, 2014, 03:10 PM
the only one who helped me was Paul, this Igor just told me to do what I did a long time ago...
-
January 6th, 2014, 02:41 PM
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...
...
-
January 6th, 2014, 07:54 AM
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)...
-
January 5th, 2014, 09:36 PM
I'm totally lost now, I have this code for sending:
RECT rc;
GetClientRect(GetDesktopWindow(), &rc);
HDC hDC = CreateCompatibleDC(NULL);
HBITMAP hBmp =...
-
January 5th, 2014, 08:16 PM
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)
{...
-
January 5th, 2014, 07:44 PM
I still somehow can't manage to retrieve the bitmap properties, sending code:
RECT rc;
GetClientRect(GetDesktopWindow(), &rc);
HDC hDC = CreateCompatibleDC(NULL);...
-
January 5th, 2014, 06:23 PM
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?...
-
January 5th, 2014, 05:28 PM
the way you reply, also I didnt threat you nor harassed you in any way, I just expressed my feelings
-
January 5th, 2014, 04:10 PM
when I read your responses, I really want to punch you in the face, really hard, with a chair
-
January 5th, 2014, 03:37 PM
okay, I have this function now
RECT rc;
GetClientRect(GetDesktopWindow(), &rc);
HDC hDC = GetDC(NULL);
HBITMAP hBmp = CreateCompatibleBitmap(hDC, rc.right, rc.bottom);
...
-
January 5th, 2014, 02:46 PM
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
-
January 5th, 2014, 02:37 PM
but I want to send the bitmap over socket, not to save it ...
-
January 5th, 2014, 11:15 AM
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...
|
Click Here to Expand Forum to Full Width
|