Click here to Skip to main content
16,010,473 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDynamic queries - can't use CRecordset Pin
BlackDice8-Jul-04 11:53
BlackDice8-Jul-04 11:53 
GeneralRe: Dynamic queries - can't use CRecordset Pin
palbano8-Jul-04 12:18
palbano8-Jul-04 12:18 
GeneralRe: Dynamic queries - can't use CRecordset Pin
BlackDice9-Jul-04 2:42
BlackDice9-Jul-04 2:42 
GeneralEnumProcessModules failure Pin
drivendriver8-Jul-04 11:28
drivendriver8-Jul-04 11:28 
GeneralSCSI Controller BIOS Pin
jdvanatta8-Jul-04 10:45
jdvanatta8-Jul-04 10:45 
GeneralUsing CAviFile to open MJPG .avi Pin
JPB158-Jul-04 10:03
JPB158-Jul-04 10:03 
GeneralDB problem with VC++(API applications) Pin
Amr Abdel-Mohsen8-Jul-04 9:32
Amr Abdel-Mohsen8-Jul-04 9:32 
GeneralRe: DB problem with VC++(API applications) Pin
Antti Keskinen8-Jul-04 10:13
Antti Keskinen8-Jul-04 10:13 
There are lots of examples considering in using databases with the help of MFC or ATL. However, there are not many when it comes to plain Win32 programming, mostly because it becomes quite difficult.

For starters, I'd suggest you take a few hours off and digest the MSDN topic "ODBC Programmer's Reference" found here. This topic hosts all the concepts, functions, structures and whatever you need to utilize a database in pure Win32.

A whole lot easier (and nowadays more useful) approach is to use ATL/COM (ADO) to access the data source. This way, you don't need to resort to MFC overhead, but you can use pre-made or pre-configured components to fetch and send data from a datasource without much hassle. A few examples can be found here on Code Project from this link. Be careful, as we are only interested in ADO data access. There are many other articles in other sections at this area also, but many of them utilize MFC as their base.

The last resort, of course, is to use MFC. It's simple, it's efficient, it's easy to use.

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralBetter CFormView Pin
Zenix28-Jul-04 9:32
Zenix28-Jul-04 9:32 
GeneralRe: Better CFormView Pin
Antti Keskinen8-Jul-04 9:58
Antti Keskinen8-Jul-04 9:58 
GeneralRe: Better CFormView Pin
Zenix28-Jul-04 10:15
Zenix28-Jul-04 10:15 
GeneralRe: Better CFormView Pin
David Crow8-Jul-04 10:31
David Crow8-Jul-04 10:31 
GeneralRe: Better CFormView Pin
Zenix28-Jul-04 11:18
Zenix28-Jul-04 11:18 
GeneralRe: Better CFormView Pin
David Crow9-Jul-04 4:33
David Crow9-Jul-04 4:33 
GeneralRe: Better CFormView Pin
Zenix29-Jul-04 4:45
Zenix29-Jul-04 4:45 
GeneralWinsock Programming problem! Pin
Alex H 19838-Jul-04 8:47
Alex H 19838-Jul-04 8:47 
GeneralRe: Winsock Programming problem! Pin
palbano8-Jul-04 10:07
palbano8-Jul-04 10:07 
GeneralOpenGL problem Pin
Philemon Arthur8-Jul-04 8:30
Philemon Arthur8-Jul-04 8:30 
GeneralRe: OpenGL problem Pin
Orhun Birsoy8-Jul-04 12:26
Orhun Birsoy8-Jul-04 12:26 
GeneralRe: OpenGL problem Pin
Philemon Arthur8-Jul-04 12:44
Philemon Arthur8-Jul-04 12:44 
GeneralRe: OpenGL problem Pin
Orhun Birsoy9-Jul-04 6:50
Orhun Birsoy9-Jul-04 6:50 
GeneralRe: OpenGL problem Pin
Philemon Arthur9-Jul-04 7:14
Philemon Arthur9-Jul-04 7:14 
General[GDI+]Runtime of LockBits() and how to achieve throughput of 48mb/sec Pin
redmop8-Jul-04 6:36
redmop8-Jul-04 6:36 
QuestionCenter text vertically in CEdit? Pin
DanYELL8-Jul-04 6:30
DanYELL8-Jul-04 6:30 
AnswerRe: Center text vertically in CEdit? Pin
David Crow8-Jul-04 9:32
David Crow8-Jul-04 9:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.