lPicCnt += 1;
CString strPicName;
strPicName.Format("%d",lPicCnt);
CString strName = "c:\\";
CString strBmp = ".bmp";
strPicName = strName + strPicName + strBmp;
TS_GrabImageFile ((LPTSTR)(LPCTSTR)strPicName);
CString strJpg = ".jpg";
CString strPicName;
strJpgName.Format("%d",lPicCnt);
strJpgName = strName + strJpgName + strJpg;CImage* m_Image;
//m_Image.Destroy();
m_Image->Load(strPicName.GetBuffer(strPicName.GetLength()));
HRESULT hResult = m_Image->Save(strJpgName.GetBuffer(strJpgName.GetLength()));我抓取了一幅图像,然后接着把它转换成jpg格式的,可怎么又连接错误?
我把
// 关闭 MFC 对某些常见但经常被安全忽略的警告消息的隐藏
#define _AFX_ALL_WARNINGS#include <afxwin.h> // MFC 核心和标准组件
#include <afxext.h> // MFC 扩展
#include <afxdisp.h> // MFC 自动化类#include <afxdtctl.h> // Internet Explorer 4 公共控件的 MFC 支持
#include <atlimage.h>//********************************CImage头文件#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // Windows 公共控件的 MFC 支持
可怎么老是出现
正在编译...
0322Dlg.cpp
e:\av800\SDK\Samples\0322\0322\0322Dlg.cpp(49) : warning C4312: “类型转换” : 从“DWORD”转换到更大的“const char *”
e:\av800\SDK\Samples\0322\0322\0322Dlg.cpp(454) : warning C4267: “参数” : 从“size_t”转换到“int”,可能丢失数据
e:\av800\sdk\samples\0322\0322\0322dlg.cpp(316) : warning C4700: 使用的局部变量“m_Image”尚未初始化
正在链接...
LIBCD.lib(dbgheap.obj) : error LNK2005: _malloc 已经在 msvcrtd.lib(MSVCR71D.dll) 中定义
LIBCD.lib(dbgheap.obj) : error LNK2005: _free 已经在 msvcrtd.lib(MSVCR71D.dll) 中定义
LIBCD.lib(crt0dat.obj) : error LNK2005: _exit 已经在 msvcrtd.lib(MSVCR71D.dll) 中定义
LIBCD.lib(crt0dat.obj) : error LNK2005: __exit 已经在 msvcrtd.lib(MSVCR71D.dll) 中定义
LIBCD.lib(crt0dat.obj) : error LNK2005: __cexit 已经在 msvcrtd.lib(MSVCR71D.dll) 中定义
LIBCD.lib(crt0dat.obj) : error LNK2005: __c_exit 已经在 msvcrtd.lib(MSVCR71D.dll) 中定义
LIBCD.lib(crt0init.obj) : error LNK2005: ___xc_z 已经在 msvcrtd.lib(cinitexe.obj) 中定义
LIBCD.lib(crt0init.obj) : error LNK2005: ___xc_a 已经在 msvcrtd.lib(cinitexe.obj) 中定义
LIBCD.lib(crt0init.obj) : error LNK2005: ___xi_z 已经在 msvcrtd.lib(cinitexe.obj) 中定义
LIBCD.lib(crt0init.obj) : error LNK2005: ___xi_a 已经在 msvcrtd.lib(cinitexe.obj) 中定义
LIBCD.lib(crt0.obj) : error LNK2005: __amsg_exit 已经在 msvcrtd.lib(MSVCR71D.dll) 中定义
LIBCD.lib(atox.obj) : error LNK2005: __atoi64 已经在 msvcrtd.lib(MSVCR71D.dll) 中定义
LIBCD.lib(strcat.obj) : error LNK2005: _strcpy 已经在 msvcrtd.lib(MSVCR71D.dll) 中定义
msvcrtd.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) 已经在 LIBCD.lib(typinfo.obj) 中定义
msvcrtd.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) 已经在 LIBCD.lib(typinfo.obj) 中定义
msvcrtd.lib(MSVCR71D.dll) : error LNK2005: __setmbcp 已经在 LIBCD.lib(mbctype.obj) 中定义
LINK : warning LNK4098: 默认库“msvcrtd.lib”与其他库的使用冲突;使用 /NODEFAULTLIB:library
LINK : warning LNK4098: 默认库“LIBCD”与其他库的使用冲突;使用 /NODEFAULTLIB:library
LIBCD.lib(crt0.obj) : error LNK2019: 无法解析的外部符号 _main ,该符号在函数 _mainCRTStartup 中被引用
Debug/0322.exe : fatal error LNK1120: 1 个无法解析的外部命令生成日志保存在“file://e:\av800\Sdk\Samples\0322\0322\Debug\BuildLog.htm”中
0322 - 18 错误,5 警告
---------------------- 完成 --------------------- 生成: 0 已成功, 1 已失败, 0 已跳过
CString strPicName;
strPicName.Format("%d",lPicCnt);
CString strName = "c:\\";
CString strBmp = ".bmp";
strPicName = strName + strPicName + strBmp;
TS_GrabImageFile ((LPTSTR)(LPCTSTR)strPicName);
CString strJpg = ".jpg";
CString strPicName;
strJpgName.Format("%d",lPicCnt);
strJpgName = strName + strJpgName + strJpg;CImage* m_Image;
//m_Image.Destroy();
m_Image->Load(strPicName.GetBuffer(strPicName.GetLength()));
HRESULT hResult = m_Image->Save(strJpgName.GetBuffer(strJpgName.GetLength()));我抓取了一幅图像,然后接着把它转换成jpg格式的,可怎么又连接错误?
我把
// 关闭 MFC 对某些常见但经常被安全忽略的警告消息的隐藏
#define _AFX_ALL_WARNINGS#include <afxwin.h> // MFC 核心和标准组件
#include <afxext.h> // MFC 扩展
#include <afxdisp.h> // MFC 自动化类#include <afxdtctl.h> // Internet Explorer 4 公共控件的 MFC 支持
#include <atlimage.h>//********************************CImage头文件#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // Windows 公共控件的 MFC 支持
可怎么老是出现
正在编译...
0322Dlg.cpp
e:\av800\SDK\Samples\0322\0322\0322Dlg.cpp(49) : warning C4312: “类型转换” : 从“DWORD”转换到更大的“const char *”
e:\av800\SDK\Samples\0322\0322\0322Dlg.cpp(454) : warning C4267: “参数” : 从“size_t”转换到“int”,可能丢失数据
e:\av800\sdk\samples\0322\0322\0322dlg.cpp(316) : warning C4700: 使用的局部变量“m_Image”尚未初始化
正在链接...
LIBCD.lib(dbgheap.obj) : error LNK2005: _malloc 已经在 msvcrtd.lib(MSVCR71D.dll) 中定义
LIBCD.lib(dbgheap.obj) : error LNK2005: _free 已经在 msvcrtd.lib(MSVCR71D.dll) 中定义
LIBCD.lib(crt0dat.obj) : error LNK2005: _exit 已经在 msvcrtd.lib(MSVCR71D.dll) 中定义
LIBCD.lib(crt0dat.obj) : error LNK2005: __exit 已经在 msvcrtd.lib(MSVCR71D.dll) 中定义
LIBCD.lib(crt0dat.obj) : error LNK2005: __cexit 已经在 msvcrtd.lib(MSVCR71D.dll) 中定义
LIBCD.lib(crt0dat.obj) : error LNK2005: __c_exit 已经在 msvcrtd.lib(MSVCR71D.dll) 中定义
LIBCD.lib(crt0init.obj) : error LNK2005: ___xc_z 已经在 msvcrtd.lib(cinitexe.obj) 中定义
LIBCD.lib(crt0init.obj) : error LNK2005: ___xc_a 已经在 msvcrtd.lib(cinitexe.obj) 中定义
LIBCD.lib(crt0init.obj) : error LNK2005: ___xi_z 已经在 msvcrtd.lib(cinitexe.obj) 中定义
LIBCD.lib(crt0init.obj) : error LNK2005: ___xi_a 已经在 msvcrtd.lib(cinitexe.obj) 中定义
LIBCD.lib(crt0.obj) : error LNK2005: __amsg_exit 已经在 msvcrtd.lib(MSVCR71D.dll) 中定义
LIBCD.lib(atox.obj) : error LNK2005: __atoi64 已经在 msvcrtd.lib(MSVCR71D.dll) 中定义
LIBCD.lib(strcat.obj) : error LNK2005: _strcpy 已经在 msvcrtd.lib(MSVCR71D.dll) 中定义
msvcrtd.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) 已经在 LIBCD.lib(typinfo.obj) 中定义
msvcrtd.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) 已经在 LIBCD.lib(typinfo.obj) 中定义
msvcrtd.lib(MSVCR71D.dll) : error LNK2005: __setmbcp 已经在 LIBCD.lib(mbctype.obj) 中定义
LINK : warning LNK4098: 默认库“msvcrtd.lib”与其他库的使用冲突;使用 /NODEFAULTLIB:library
LINK : warning LNK4098: 默认库“LIBCD”与其他库的使用冲突;使用 /NODEFAULTLIB:library
LIBCD.lib(crt0.obj) : error LNK2019: 无法解析的外部符号 _main ,该符号在函数 _mainCRTStartup 中被引用
Debug/0322.exe : fatal error LNK1120: 1 个无法解析的外部命令生成日志保存在“file://e:\av800\Sdk\Samples\0322\0322\Debug\BuildLog.htm”中
0322 - 18 错误,5 警告
---------------------- 完成 --------------------- 生成: 0 已成功, 1 已失败, 0 已跳过
解决方案 »
- 深圳作软件很强的公司求介绍
- 求助!想在VC的listcontrol上面显示sql数据,采用ODBC连接
- A程序开启进程B,B进程删除A的问题
- 网上下了个mfc示例,但是我找不到入口函数 winmain 呀?
- evc中,可以使用vector吗?
- 关于最大化的问题
- 检测完后运行测试是系统为什么重起?
- SoS!!!如何实现由数据库读出的_variant_t 型变量,变换成char 型(not CString)的???
- 添加Activex Control时发现,VC6.0 GALLERY文件夹中为空,VISITA系统,怎样解决?
- 在vs2003下跑多线程程序,容易报错中断,但是程序并没有错误,直接点运行又可以继续执行
- 界面
- 如何实现在视窗中同时显示多个对话框或者多个图片?谢谢您的热心帮助!
LIBCD.lib(dbgheap.obj) : error LNK2005: _malloc 已经在 msvcrtd.lib(MSVCR71D.dll) 中定义
LIBCD.lib(dbgheap.obj) : error LNK2005: _free 已经在 msvcrtd.lib(MSVCR71D.dll) 中定义
LIBCD.lib(crt0dat.obj) : error LNK2005: _exit 已经在 msvcrtd.lib(MSVCR71D.dll) 中定义
LIBCD.lib(crt0dat.obj) : error LNK2005: __exit 已经在 msvcrtd.lib(MSVCR71D.dll) 中定义
LIBCD.lib(crt0dat.obj) : error LNK2005: __cexit 已经在 msvcrtd.lib(MSVCR71D.dll) 中定义
LIBCD.lib(crt0dat.obj) : error LNK2005: __c_exit 已经在 msvcrtd.lib(MSVCR71D.dll) 中定义
LIBCD.lib(crt0init.obj) : error LNK2005: ___xc_z 已经在 msvcrtd.lib(cinitexe.obj) 中定义
LIBCD.lib(crt0init.obj) : error LNK2005: ___xc_a 已经在 msvcrtd.lib(cinitexe.obj) 中定义
LIBCD.lib(crt0init.obj) : error LNK2005: ___xi_z 已经在 msvcrtd.lib(cinitexe.obj) 中定义
LIBCD.lib(crt0init.obj) : error LNK2005: ___xi_a 已经在 msvcrtd.lib这样的连接错误是什么原因呢?
ul = ReadSNDig ();
if (ul)
{
SN.Format ("SN:%d",ul);
CardID += SN;
SetDlgItemText (IDC_INFO,CardID);
}#ifndef __READ_SN__
#define __READ_SN__#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */void ReadSN(char * SNBuf, int *len);
unsigned long ReadSNDig ();
#ifdef __READ_SN__
}
#endif /* __cplusplus */#endif /* __READ_SN__ */
ul = ReadSNDig ();
if (ul)
{
SN.Format ("SN:%d",ul);
CardID += SN;
SetDlgItemText (IDC_INFO,CardID);
}就没问题,这是什么原因呢