vb中如何用winsock控件或是别的控件从网卡上读取图像数据并显示,请给出详细的程序

来源:百度知道 编辑:UC知道 时间:2024/04/19 17:29:45
确实会者或者有相关程序者请与我联系,qq 93547712。加我时请说明程序问题。

// Example:
// GetHTTP www.idgbooks.com /index.html > index.html
//

#include <stdio.h>
#include <fcntl.h>
#include <io.h>
#include <winsock.h>

void GetHTTP(LPCSTR lpServerName, LPCSTR lpFileName);

// Helper macro for displaying errors
#define PRINTERROR(s) \
fprintf(stderr,"\nError%: %d\n", s, WSAGetLastError())

////////////////////////////////////////////////////////////

void main(int argc, char **argv)
{
WORD wVersionRequested = MAKEWORD(1,1);
WSADATA wsaData;
int nRet;

//
// Check arguments
//
if (argc != 3)
{
fprintf(stderr,
"\nSyntax: GetHTTP ServerName /FullPathName > youfilename.xxx\n");
return;
}

//
// Initialize WinSock.dll
//