请教ATL数据库操作问题
--------------------Configuration: AccountSvr - Win32 Debug--------------------
Creating Type Library...
Microsoft (R) MIDL Compiler Version 5.01.0164
Copyright (c) Microsoft Corp 1991-1997. All rights reserv
...............
Linking...
Creating library Debug/AccountSvr.lib and object Debug/AccountSvr.exp
Performing registrationAccountSvr.dll - 0 error(s), 1 warning(s)
--------------------Configuration: AccountSvr - Win32 Unicode Debug--------------------
Creating Type Library...
Processing C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\urlmon.idl
urlmon.idl
Processing C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\msxml.idl
.......................
Linking...
Creating library DebugU/AccountSvr.lib and object DebugU/AccountSvr.exp
Performing registrationAccountSvr.dll - 0 error(s), 1 warning(s)
--------------------Configuration: AccountSvr - Win32 Release MinSize--------------------
Creating Type Library...
Microsoft (R) MIDL Compiler Version 5.01.0164
Copyright (c) Microsoft Corp 1991-1997. All rights reserved.
................................
Linking...
Creating library ReleaseMinSize/AccountSvr.lib and object ReleaseMinSize/AccountSvr.exp
LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
ReleaseMinSize/AccountSvr.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.AccountSvr.dll - 2 error(s), 1 warning(s)
--------------------Configuration: AccountSvr - Win32 Release MinDependency--------------------
Creating Type Library...
Microsoft (R) MIDL Compiler Version 5.01.0164
Copyright (c) Microsoft Corp 1991-1997. All rights reserved.
....................................
Linking...
Creating library ReleaseMinDependency/AccountSvr.lib and object ReleaseMinDependency/AccountSvr.exp
LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
ReleaseMinDependency/AccountSvr.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.AccountSvr.dll - 2 error(s), 1 warning(s)
--------------------Configuration: AccountSvr - Win32 Unicode Release MinSize--------------------
Creating Type Library...
Microsoft (R) MIDL Compiler Version 5.01.0164
Copyright (c) Microsoft Corp 1991-1997. All rights reserved.
.............................
Linking...
Creating library ReleaseUMinSize/AccountSvr.lib and object ReleaseUMinSize/AccountSvr.exp
LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
ReleaseUMinSize/AccountSvr.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.AccountSvr.dll - 2 error(s), 1 warning(s)
--------------------Configuration: AccountSvr - Win32 Unicode Release MinDependency--------------------
Creating Type Library...
Microsoft (R) MIDL Compiler Version 5.01.0164
Copyright (c) Microsoft Corp 1991-1997. All rights reserved.
.....................
Linking...
Creating library ReleaseUMinDependency/AccountSvr.lib and object ReleaseUMinDependency/AccountSvr.exp
LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
ReleaseUMinDependency/AccountSvr.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.AccountSvr.dll - 2 error(s), 1 warning(s)为啥在编译时Debug可以通过,-------Release不能通过
如果去掉m_pConnection->Open((const char *)connectBuffer,"","",-1);
在编译时Debug和Release都可以通过
--------------------Configuration: AccountSvr - Win32 Debug--------------------
Creating Type Library...
Microsoft (R) MIDL Compiler Version 5.01.0164
Copyright (c) Microsoft Corp 1991-1997. All rights reserv
...............
Linking...
Creating library Debug/AccountSvr.lib and object Debug/AccountSvr.exp
Performing registrationAccountSvr.dll - 0 error(s), 1 warning(s)
--------------------Configuration: AccountSvr - Win32 Unicode Debug--------------------
Creating Type Library...
Processing C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\urlmon.idl
urlmon.idl
Processing C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\msxml.idl
.......................
Linking...
Creating library DebugU/AccountSvr.lib and object DebugU/AccountSvr.exp
Performing registrationAccountSvr.dll - 0 error(s), 1 warning(s)
--------------------Configuration: AccountSvr - Win32 Release MinSize--------------------
Creating Type Library...
Microsoft (R) MIDL Compiler Version 5.01.0164
Copyright (c) Microsoft Corp 1991-1997. All rights reserved.
................................
Linking...
Creating library ReleaseMinSize/AccountSvr.lib and object ReleaseMinSize/AccountSvr.exp
LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
ReleaseMinSize/AccountSvr.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.AccountSvr.dll - 2 error(s), 1 warning(s)
--------------------Configuration: AccountSvr - Win32 Release MinDependency--------------------
Creating Type Library...
Microsoft (R) MIDL Compiler Version 5.01.0164
Copyright (c) Microsoft Corp 1991-1997. All rights reserved.
....................................
Linking...
Creating library ReleaseMinDependency/AccountSvr.lib and object ReleaseMinDependency/AccountSvr.exp
LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
ReleaseMinDependency/AccountSvr.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.AccountSvr.dll - 2 error(s), 1 warning(s)
--------------------Configuration: AccountSvr - Win32 Unicode Release MinSize--------------------
Creating Type Library...
Microsoft (R) MIDL Compiler Version 5.01.0164
Copyright (c) Microsoft Corp 1991-1997. All rights reserved.
.............................
Linking...
Creating library ReleaseUMinSize/AccountSvr.lib and object ReleaseUMinSize/AccountSvr.exp
LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
ReleaseUMinSize/AccountSvr.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.AccountSvr.dll - 2 error(s), 1 warning(s)
--------------------Configuration: AccountSvr - Win32 Unicode Release MinDependency--------------------
Creating Type Library...
Microsoft (R) MIDL Compiler Version 5.01.0164
Copyright (c) Microsoft Corp 1991-1997. All rights reserved.
.....................
Linking...
Creating library ReleaseUMinDependency/AccountSvr.lib and object ReleaseUMinDependency/AccountSvr.exp
LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
ReleaseUMinDependency/AccountSvr.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.AccountSvr.dll - 2 error(s), 1 warning(s)为啥在编译时Debug可以通过,-------Release不能通过
如果去掉m_pConnection->Open((const char *)connectBuffer,"","",-1);
在编译时Debug和Release都可以通过
解决方案 »
- 一个对话框的问题,有点难!
- 怎样在.txt文件中查找并定位一字符串,然后读取数据,数据是用,分割,且有指数形式
- VC中做一流程图程序。连线显示问题。
- ◆◆◆求用vc编写的类似windows画图的程序原码.............
- 请大家帮助我解决这样一个windows服务的问题?
- VC通过串口操作Modem的惊天发现,想的脑袋都快裂了!救命!
- 急啊,这个怎么回事啊?
- 问一下请经验丰富的高手
- 请问这么在程序中修改ListBox的大小和位置??
- idl中的属性关键字restricted到底是怎么用的?msdn解释没看懂
- 请问如何固定单文档的窗口大小~~
- 请教先贤指点:C++和VC界面编程 的经典书籍----电子版(请带我入门!)在线等待!
Project->setting->C++->PreProcessorPreProcessor Definitions中, 去掉_ATL_MIN_CRT.
horris(僧推月下门)讲的方法如何实现???
给个例子好吗?:)
我是菜鸟+懒人!