I have an MFC application where I have added the first recordset for the application.Now I face problem in adding second recordset for the MFC which means to create new class for retrieving the variables from other database table.I have tried to follow the MSDN links and tutorial on this but as I follow the steps,I faced problem in creating new class.For example I tried to create new class CSubjectSet but it return the error which states file SubjectSet.cpp and CSubjectSet.h does not exist.
Please help if you encountered this problem before or known the cause of this problem.
do not use CRecordSet which is the worst in the world.
u need to know how to use database driver (or MFC classes) to read/write data from/to database.
In my opnion, the best are Cdc... (a set of classes, i.e. CdbDatabase, CdbRecordset etc).
please note: second char is lower case: Cdb..., not CDb...
the head file and lib, dll files are available in VC 5.0 but i can not find them in VC 6.0.
according to Microsoft Docs, database issues of VB is based on these classes.
long way to go to really understand these classes, but you have to go if u really want to do some real things.
Pls Clarify : Signature of each Function would be same or Different.
if function signature are same then here is small code
typedef void (*Hello)(void);
cout<<"hello you are in function one"<<endl;
cout<<"hello you are in function two";
cout<<"hello you are in Function three ";
I am too finding the way for calling function with different signature by same array using Index
I 've created a single document database application in VC++.The problem is that I can not make out how to make an "exit" button which when hit will close the application immediately(i.e,MainFrame will be closed).
I'm trying to figure out exactly how this contexthelp thing is supposed to work.
If I create an MDI or SDI app, it's all "just there" and I can do what I like with it. However I'm currently working on a Dialog Only app, which while giving me the cute little question mark in the title bar beside the minimize box doesn't seem to have anything else built in.
Can anyone give me a few pointers for getting that little questionmark to actually do something? I can't find anything in the msdn library (it only ever seems to mention MDI and SDI). Just something along the lines of:
Insert this code here - it does this
Insert that code there - it does that
Okay, getting there...
The WinHelp (pHelpInfo->dwContextId, HELP_CONTEXTPOPUP); does what it's supposed to (tested by simply putting it in a button), however I still can't get the questionmark on the dialog itself to do anything. I'm starting to feel it's missing something it probably shouldn't be.
The help for WS_EXCONTEXTHELP says:
Includes a question mark in the title bar of the window. When the user clicks the question mark, the cursor changes to a question mark with a pointer. If the user then clicks a child window, the child receives a WM_HELP message.
However, NOTHING happens when I click on the questionmark - no cursor change, nothing.
Am I missing something obvious or is my dialog just insane?
It simulates a PC with certain OS, this means that it's capable as let's say having a second pc, with the given configuration, so one may test his code on a single PC using VMWare instead of testing it on multiple platforms, I had certain bugs in my app, which I encountered on win2000, I made a vmware station with win2000 and got the same problem, made the fix, and it's working, so according to my experience it's great for testing purposes and up to this point for me is 100% accurate
Still waiting for more comments on the subject...
Last Visit: 31-Dec-99 19:00 Last Update: 23-Jan-21 8:47