如果在sql server2000中存、读JPG文件
如果用VC写一个程序在sql server2000中存、读JPG文件及avi文件
如果用VC写一个程序在sql server2000中存、读JPG文件及avi文件
解决方案 »
- 用位图画扑克问题
- 渐变填充...有关GradientFill函数的问题
- 单文档应用程序不能最大化
- 局域网路由原理问题
- 求教:如何通过ListBox控件在视图中打开文本文件?
- unicode little 或者unicode big的编码内容用哪些函数可以转成byte类型
- 这个函数什么时候用到,一般有什么用呢?
- 关于激光打印机逐行走纸的问题
- 给CComboBox控件添加int型的变量
- 人体运动跟踪,基于视频的,记录手跟关节的一些动作,最好基于opencv的思路
- 关于同步socket的问题,请高手助拳,分数不够可以再加,顶者有分
- 用哪个函数可以得到DoModal()后,那个对话框的CWnd* ????
COleVariant v("媒体文档",VT_BSTR);
//BYTE *lpBuffer;
CByteArray byArr; if(strMediapathname.GetLength ()!=0)
{
CFile fl(strMediapathname,CFile::modeRead);
len=fl.GetLength();
byArr.SetSize (len);
fl.ReadHuge (byArr.GetData (),len);
fl.Close ();
}
/////////////////////////////////////////////////////
try
{ _variant_t vDevtype, vDevname;
//_variant_t vExptype, vExpname;
CString strDevtype, strDevname;
//CString strExptype, strExpname;
m_adoRsDevice ->Book = pComboDevtype ->GetSelectedItem ();
vDevname = m_adoRsDevice ->GetCollect ( "设备类型" );
vDevtype = m_adoRsDevice ->GetCollect ( "设备编号" );
strDevtype = vDevtype.bstrVal ;
strDevname = vDevname.bstrVal ; // m_adoRsExperimentation ->Book = pComboExptype ->GetSelectedItem ();
// vExpname = m_adoRsExperimentation ->GetCollect ( "试验名称" );
// vExptype = m_adoRsExperimentation ->GetCollect ( "试验编号" );
// strExptype = vExptype.bstrVal ;
// strExpname = vExpname.bstrVal ;
if ( bNew ) // 添加新记录
{
/////////////////////////////////////////
//
// 检查编号,防止冲突
//
RefreshRs (); ConnectTo ( m_adoRsMaxReferenceID, theApp.m_adoConnection );
m_adoRsMaxReferenceID ->Requery ( adOptionUnspecified );
DisConnect ( m_adoRsMaxReferenceID );
if ( m_adoRsMaxReferenceID ->GetRecordCount () > 0 )
{
_variant_t v = m_adoRsMaxReferenceID ->GetCollect ( 0L );
if ( v.vt != VT_NULL )
{
strReferenceID = v.bstrVal ;
m_adoRecordset ->PutCollect ( "媒体文件名", strMedianame.AllocSysString () );
// m_adoRecordset ->Update ();
}