http://digitalpbk.blogspot.com/2009/01/code-libjpeg-converting-jpeg-to-bmp.html
; memset ((char *)&bh;,0,sizeof(BMPHEAD)); /*
sets everything to 0 */ //bh.filesize = calculated size of your file (see below) //bh.reserved = two zero bytes bh.headersize = 54L;// (for 24 bit images) bh.infoSize = 0x28L;// (for 24 bit images) bh.width = width ;//in pixels of your image bh.depth = height;// in pixels of your image bh.biPlanes = 1 ;//(for 24 bit images) bh.bits = 24 ;//(for 24 bit images) bh.biCompression = 0L;;// (no compression) int bytesPerLine; bytes ...
Published 3 years, 4 months ago
http://digitalpbk.blogspot.com/2007/04/http-11-response-status-codes.html
: Request range out of bounds.417 Expectation Failed : Server failed to meet the requirements of the Expect Header Request.500 - 599 : Server ErrorsReturned when the server encounters errors.500 Internal Server Error : Server config.
setting or an external program has caused an error501 Not Implemented : Server does not have the functionality to fulfill request502 Bad Gateway : The Server encountered an invalid response from an upstream server or proxy503 Service Unavailable : Service is temporarily ...
Published 5 years, 1 month ago
http://digitalpbk.blogspot.com/2006/11/network-traffic-calculator-using-vc-6.html
; } case WM_PAINT: hdc=BeginPaint(hwnd,&ps;); strcpy(bfr ,"Data S/R: "); itoa(total.mb,num,10); strcat(bfr,num); strcat(bfr,"."); itoa(total.kb,num,10); strcat(bfr,num); strcat(bfr,"."); itoa(total.bytes,num,10); strcat(bfr,num); l=strlen(bfr);
SetWindowText(txtW,bfr); EndPaint(hwnd,&ps;); return 0; case WM_DESTROY: WSAAsyncSelect(gSokt,hwnd,0x401,0); closesocket(gSokt); if(WSAIsBlocking())WSACancelBlockingCall(); WSACleanup(); PostQuitMessage(0 ...
Published 5 years, 6 months ago