ListMenu.cpp
上传用户:sztlpcb
上传日期:2007-06-09
资源大小:741k
文件大小:4k
- // ListMenu.cpp : implementation file
- //
- #include "stdafx.h"
- #include "StreamPlayer.h"
- #include "ListMenu.h"
- //////////////////////////////////////////
- /// 90.10.15 generated by arche
- ///**************************************
- /// RTP registe include
- /////////////////////////////////////////
- #include<iostream>
- #include<string>
- #include<fstream>
- #include<iomanip>
- #include <stdio.h>
- #include <conio.h>
- #include <windows.h>
- #define BUFSIZE 1024
- using namespace std;
- ///////////////////////////
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // ListMenu dialog
- ListMenu::ListMenu(CWnd* pParent /*=NULL*/)
- : CDialog(ListMenu::IDD, pParent)
- {
- //{{AFX_DATA_INIT(ListMenu)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- connect_sd=NULL;
- }
- void ListMenu::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(ListMenu)
- DDX_Control(pDX, IDC_DMenuCancel, m_MenuCancel);
- DDX_Control(pDX, IDC_DMenuPlay, m_MenuPlay);
- DDX_Control(pDX, IDC_GetMenu, m_GetMenu);
- DDX_Control(pDX, IDOK, m_IDOK);
- DDX_Control(pDX, IDC_LIST1, m_list);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(ListMenu, CDialog)
- //{{AFX_MSG_MAP(ListMenu)
- ON_BN_CLICKED(IDC_GetMenu, OnGetMenu)
- ON_BN_CLICKED(IDC_DMenuPlay, OnDMenuPlay)
- ON_BN_CLICKED(IDC_DMenuCancel, OnDMenuCancel)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // ListMenu message handlers
- void ListMenu::OnGetMenu()
- {
- // TODO: Add your control notification handler code here
-
- WSADATA wsadata;
- //SOCKET connect_sd;
- fd_set fdset;
- FILE *menufile;
- struct sockaddr_in src_addr; /* 跑计