the example i have looks like this but i couldnt figure out what the rsStudent in the coding was.
if(!rsStudent.Open())
return FALSE;
if(!rsStudent.CanAppend())
return FALSE; // No field values were set
rsStudent.AddNew();
rsStudent.m_Birthdate =...
I am trying to add records to my ODBC MFC program and am using this code
void CPersonalView::OnNewaddress()
{
if(!CPersonalSet.Open())
return FALSE;
if(!CPersonalSet.CanAppend())
return FALSE; // No field values were set
!CPersonalSet.AddNew();
!CPersonalSet.m_Birthdate =...
I have a ODBC access database that im trying to aadd records to but i cannot figure out where to even start I have a book that gives an example but the book is totally backwards from the way I have my stuff setup so I don't even know where to start. If anyone could help me on getting the...
Hi, I have an MFC program using ODBC and that has four classes. DB1Set, DB1View, DB2Set, and DB2View respectively.
What I am trying to do is figure out how to add records to the the project. What I would like to do is try to use the same dialogs that I have now where I can edit them. But I'm...
you dont use DoModal() in my projects i used the function
SelectView() It was the way i learned when i started C++ and I find it easier. The only thing is you need to create the function in your CMainFrame Class. My Code for the selectview function looks like this:
void...
Well what you essentially need to do is create UINT variables for your two views in a seperate header file called OurConstants.h or whatever else you would like to call it.
I don't know exactly what the code looks like but setting the variables goes something like this:
#if...
ok let me clear that up i kinda typed it fast and a little hard to understand. I have a program that is using a database and it is a specific database for the program. I need some type of thing to install the database on the computer and initialize it in windows so that the program will run...
Hi, I an MFC ODBC Program. And I am trying to find out how to or if there is a program already made to load the database into the client computer when the program is first run or when the installer is run. I'm sure there is one but I don't know where to look. If you could help me it would be...
Ok, I see what you mean. I want to know what the basic idea is to adding records. Because that is pretty much the last step to my program.
Tim,
Currently Studying in High School
Hi I am writing a program that works like an address book and have had no problems up until figuring out how I would add records to the recordset. I have the program now so I can update all records and what not but other than that I'm kinda stuck.
The program is in SDI format and consists of...
Hi I’m making an MFC Address Book Program using an OBDC Database in SDI. It has 4 classes hooked up to the Database: CPersonalView, CPersonalSet, CHomeView, CHomeSet.
I have the program setup so you can view and edit the current records in the database. I am trying to set the program up so I...
thanks for all your help but i have already changed CHomeview to public because it would have to be.
But thanks for your help i remember that you do need to use .h files instead of .cpp thanks for all your help.
Hi I'm creating my own type of addressbook program using MFC and OBDC. In my program there are 2 view classes. PersonalView and Homeview. In my MainFrm.cpp file I have this function:
void CMainFrame::SelectView(UINT ViewID)
{
CView* pOldActiveView = GetActiveView;// Get current View
//...
Hey guys im writing an Address Book type programming using a database in MFC and I am trying to make it so that i use tabs in the dialog to switch from personal info to home info. But when I inserted the tab it has 5 tabs and I only need 1. I would like to know how to get rid of thos tabs and...
I am using Visual C++ 6.0 Pro and I am using databases to work on an address book program. I am basing the program off of Outlook/Outlook Express but I do not know how Microsoft keeps all their contacts together. I can't seem to find a seperate database file or anything and it seems weird that...
Help im a newb and dont know how to do much C++ but im learning. I need help compiling OFWIN using Listing OFWIN1 and OFWIN2 for a simple windows program. heres my code:
// OFWIN.CPP Native windows program to display text in a window
#include <windows.h>
long CALLBACK WindowProc(HWND hWnd...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.