设为首页 加入收藏

TOP

Windows Sockets 1.1应用实例(四十五)
2010-12-30 20:58:11 来源: 作者: 【 】 浏览:62287
Tags:Windows Sockets 1.1 应用 实例
   
= SOCK_SHOUT; 

int temporary_protocol  = 1;       /* Settings()中使用 */

int iShout  = 1;

int iListen = 2;

int iClientOrServer = 1;  /* 缺省为Shout(客户机) */

int tClientOrServer = 1;  /* Settings()中使用 */

char HostModeBuf[20];/* 保存模式字符串 */

WORD VersionReqd;

LPWSADATA lpmyWSAData;

 

int PASCAL

WinMain (HANDLE hInstance,HANDLE hPrevInstance,LPSTR lpCmdLine,int nCmdShow)

{

 

    HWND hWnd;

    MSG msg;

    BOOL InitApp(HANDLE);

 

    if (!hPrevInstance)

    if (!InitApp(hInstance))

           return (NULL);

 

    hInst = hInstance;

 

    hWnd = CreateWindow("MainMenu",

       "Windows Shout",

       WS_OVERLAPPEDWINDOW | WS_SYSMENU | WS_MINIMIZEBOX,

首页 上一页 42 43 44 45 46 47 48 下一页 尾页 45/143/143
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Windows Socket 1.1库函数概览 下一篇Windows Sockets 1.1编程

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: