Similar Threads
1. 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_ATTRIBUTES@@@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,
2. CDatabase Transactions
3. Catching CDatabase Exceptions?
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() function. This brought up the question of
capturing the exceptions that are thrown by the CDatabase object. Is there
a way for me to trap it in my code and use my own error-handling mechanism?
I tried putting it in a try...catch block with no success. As always, any
ideas are appreciated!
By the way, the *only* things I'm using MFC for are the CDatabase and
CRecordset objects. Does anyone out there know of any well-tested,
"light-weight" wrappers for ODBC? (I'm stuck with ODBC for this project,
BTW). The only functions I'm using in the CDatabase and CRecordset are
ExecuteSQL() and retrieving a "scalar" value (i.e., I'm reading a single
row, single column table) via the CRecordset. I'd like to get away from MFC
completely, but also don't want to have to write my own ODBC wrappers if I
can avoid it.
Thanks!
4. [newbie]: CDatabase problem
5. Access CRecordset and CDatabase database
Hi,I want to use class CRecordset to add some record to several tables
in access 2003???I have registered an ODBC database,and create a
CRcordset by ClassWizard.Now I can't add records to the table which I
have opened?? I am confused about this peoblem.
thank you.
6. Access CRecordset and CDatabase database
7. Accessing Stored Procedure using CDatabase and CRecordset
Hi all,
Is it possible to do a oBulkFieldExchangefor getting a bulk of records
from a stored procedure, which takes a value as input and use that value in
the herepart to filter a electquery.
Or how can I use CDatabase and CRecordet to access different Stored
Procedures, which do different actions, like just return a record set ,
return many UTPUTvalue or just ETURNa string, etc. ?
Is there any documentation related to this available ?
Thanks in advance...
Umesh
8. ADO vs CDatabase