473,385 Members | 1,736 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,385 software developers and data experts.

CDATABASE Query

5
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 undefined" even though i have used the header file <afxdb.h>. Can anyone help me out of this as i am stuck at this point . Am i missing something here any lib files pls let me know as i have tried everything
Jan 16 '09 #1
4 4815
weaknessforcats
9,208 Expert Mod 8TB
CDataBase is an MFC class. Perhaps you could post your code showing the #include and where you reference CDataBase. The header you mention is the correct header.
Jan 16 '09 #2
navraj
5
Hi
Thanks for the Reply well there aint much code what i did was to create a sample win32 application from the VC++ 6 wizard and then I derived a CMyDataBase Class from the CDataBase class and named this as CMyDataBase.h and then implented the CMyDatabase.cpp file where i #included the CMyDataBase.h file and tried to implement the functions but whenever i tried to compile, it gave me an error CDataBase: base class undefined
Jan 19 '09 #3
Banfa
9,065 Expert Mod 8TB
The class is CDatabase not CDataBase
Jan 19 '09 #4
navraj
5
Thanks a lot boss a simple spelling mistake i had done it solved my problem
Jan 20 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: jaysonsch | last post by:
Hello! I am having some problems with a database query that I am trying to do. I am trying to develop a way to search a database for an entry and then edit the existing values. Upon submit, the...
29
by: shank | last post by:
1) I'm getting this error: Syntax error (missing operator) in query expression on the below statement. Can I get some advice. 2) I searched ASPFAQ and came up blank. Where can find the "rules"...
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...
3
by: Harvey | last post by:
Hi, I try to write an asp query form that lets client search any text-string and display all pages in my web server that contain the text. I have IIS 6.0 on a server 2003. The MSDN site says...
1
by: | last post by:
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...
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...

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.