|
楼主 |
发表于 2006-12-5 22:26:59
|
显示全部楼层
示例如下:- /********************************************************************
- 描述: 读入广播信息
- 参数: lpszResult 为要返回的信息
- lpszConnect 数据库连接定义
- 说明: 返回的信息格式为:AMI:内容|网址|滚动次数|,不能超过8192字节,否则……
- ********************************************************************/
- void OnGetMsgInfo(char* lpszResult, LPCTSTR lpszConnect)
- {
- int nPtr = 0;
- CString strCmd;
- strCmd.Format( "AMI:%s|%s|%ld|\r\n", "欢迎光临天云阁棋牌演示站", "http://www.ityg.com/", 100 );
- strcpy( lpszResult + nPtr, strCmd ); nPtr += strCmd.GetLength();
- strCmd.Format( "AMI:%s|%s|%ld|\r\n", "欢迎光临淮安网棋牌游戏站", "http://www.huaian.com/", 100 );
- strcpy( lpszResult + nPtr, strCmd ); nPtr += strCmd.GetLength();
- strCmd.Format( "AMI:%s|%s|%ld|\r\n", "欢迎光临天云阁pChat演示站", "http://www.ityg.com/pChat/", 10 );
- strcpy( lpszResult + nPtr, strCmd ); nPtr += strCmd.GetLength();
- //MessageBox( NULL, lpszResult, "OK", 64 );
- }
复制代码 |
|