473,408 Members | 1,854 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

CDatabase error

Dear All,

I am trying to use CDatabase class and include the class <afxdb.h>, but the
following error occurs,

Linking...
nafxcwd.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator
new(unsigned int)" (??2@YAPAXI@Z) already defined in libcpd.lib(newop.obj)
nafxcwd.lib(thrdcore.obj) : error LNK2019: unresolved external symbol
__endthreadex referenced in function "void __stdcall AfxEndThread(unsigned
int,int)" (?AfxEndThread@@YGXIH@Z)
nafxcwd.lib(thrdcore.obj) : error LNK2019: unresolved external symbol
__beginthreadex referenced in function "public: int __thiscall
CWinThread::CreateThread(unsigned long,unsigned int,struct
_SECURITY_ATTRIBUTES *)"
(?CreateThread@CWinThread@@QAEHKIPAU_SECURITY_ATTR IBUTES@@@Z)
Debug/20050722.SecondTrial.exe : fatal error LNK1120: 2 unresolved externals

I dunno what is going on, is there anyone can help me a hand?

Thanks,
Nov 17 '05 #1
1 2023
solved,
to include _AFCDLL dependency

<---> ¦b¶l¥ó news:Og**************@TK2MSFTNGP12.phx.gbl ¤¤¼¶¼g...
Dear All,

I am trying to use CDatabase class and include the class <afxdb.h>, but the following error occurs,

Linking...
nafxcwd.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator
new(unsigned int)" (??2@YAPAXI@Z) already defined in libcpd.lib(newop.obj)
nafxcwd.lib(thrdcore.obj) : error LNK2019: unresolved external symbol
__endthreadex referenced in function "void __stdcall AfxEndThread(unsigned
int,int)" (?AfxEndThread@@YGXIH@Z)
nafxcwd.lib(thrdcore.obj) : error LNK2019: unresolved external symbol
__beginthreadex referenced in function "public: int __thiscall
CWinThread::CreateThread(unsigned long,unsigned int,struct
_SECURITY_ATTRIBUTES *)"
(?CreateThread@CWinThread@@QAEHKIPAU_SECURITY_ATTR IBUTES@@@Z)
Debug/20050722.SecondTrial.exe : fatal error LNK1120: 2 unresolved externals
I dunno what is going on, is there anyone can help me a hand?

Thanks,

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Nilesh | last post by:
Hello, I am using MFC classes Cdatabase & Crecordset to open the data source & do all the updates, everything seems to be working, However, as soon as I try exiting the application, it gives me...
13
by: deko | last post by:
I use this convention frequently: Exit_Here: Exit Sub HandleErr: Select Case Err.Number Case 3163 Resume Next Case 3376 Resume Next
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
9
by: Mike C# | last post by:
Hi all, 'Nother question. I have a piece of code that is using the MFC CDatabase object to connect to a database. It executes a SQL statement against SQL Server using the ExecuteSQL()...
3
by: Mike C# | last post by:
Hi all, Have a quick question. I have an app that connects to SQL Server via the MFC CDatabase class. I'm doing bulk loading using the ODBC bulk opns extensions for SQL Server. When I try to...
1
by: karol1208 | last post by:
I use method ExecuteSQL (CDatabase class) to execute the query like this: "DECLARE @p3 int EXEC myfunction 'mytable', 1, @p3 output select @p3". The query is executed currently - the data base...
1
by: magix | last post by:
Hi, I'm using Visual C++ and doing INSERT process into mdb file May I know if it is possible to use Absolute path to specifiy mdb file ? where mdb file is at the same directory as the...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
4
by: navraj | last post by:
Hi Evreybody I am trying to use the CDatabase class in my dll to connect to SQL but it keeps throwing me an error "CDatabase is not a class or namespcae" or the error "CDataBase : base class...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.