#include <stdio.h>
#include <stdarg.h>
#include"mmsystem.h"
//----------------------------------------------------------------------
// Name: ErrBox
// Use : Displays an error string in a message box
// type: function
// need libs: <stdio.h> and <stdarg.h>
// Enlist Time : 2004年11月7日
int ErrBox (HWND hWnd, LPTSTR lpszFormat, ...);
//----------------------------------------------------------------------
// Name:CWinPlayer
// Use :A player can play media that system supports
// type: Class
// need libs: winmm.lib and mmsystem.h
// Enlist Time : 2004年11月7日
class CWinPlayer{
public:
CString path; //播放文件的路径
BOOL m_bstop; //播放器状态
DWORD cdfrom,cdto;
int hour,minute,second;
DWORD cdlen;
DWORD m_count;
public:
DWORD Getinfo(DWORD item);
void Play();
void Stop();
};
2004年11月7日17:20:13