http://digitalpbk.blogspot.com/2006/11/network-traffic-calculator-using-vc-6.html
.hCursor = LoadCursor(NULL,IDC_ARROW); wc.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH); wc.lpszMenuName = NULL; wc.lpszClassName = szAppName; RegisterClass(&amb;wc); } /*gets network addresses*/ char localaddr[5][17]; if(getInterfaceList(localaddr,5)) return 1; char szTitle[100]="Traffic Calc on "; strcat(szTitle,localaddr[0]); /*window creation hwnd = CreateWindowEx(WS_EX_TOOLWINDOW|WS_EX_TOPMOST,szAppName,szTitle,WS_SYSMENU,
CW_USEDEFAULT,CW_USEDEFAULT,240,40,NULL ...
Published 5 years, 6 months ago
http://digitalpbk.blogspot.com/2009/01/code-libjpeg-converting-jpeg-to-bmp.html
_image+(x+line*width)*bytes_per_pixel+2); *(linebuf+x*bytes_per_pixel+1) = *(raw_image+(x+line*width)*bytes_per_pixel+1); *(linebuf+x*bytes_per_pixel+2) = *(raw_image+(x+line*width)*bytes_per_pixel+0); } /* remember that the order is BGR and if width is not a multiple of 4 then the last few bytes may be unused */ fwrite(linebuf, 1, bytesPerLine, bmpfile); } free(linebuf); fclose(bmpfile);}/** * read_jpeg_file Reads from a jpeg file on
disk specified by filename and saves into the * raw_image buffer ...
Published 3 years, 4 months ago