🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.win32
Article #2059

Re: HELP: How to use MFC Database classes w/o Windowing

#2059
From: Kit Kauffmann
Date: Wed, 11 Oct 1995 11:37
33 lines
1630 bytes
In article <45grhq$53u@park.interport.net> slee@interport.net (Stuart Lee) writes:

>I'm writing essentially a command-line program that works with
>databases.  I'm trying to get a handle on using VC++ and the database
>classes of MFC, but there doesn't seem to be a straight forward
>explanation of how to use MFC without all those windowing classes
>which I do not need.

>Can anyone explain how I can use VC++ and MFC to write non-windowing
>(ie. Command-line) apps? 

>I've got both VC++ 1.51 and 2.0 but will probably use 2.0.

>Any references to literature in this matter would also be appreciated.
>All the books I've seen on VC++ and MFC assume that your app will have
>a GUI.

>Thanks.


You may wish to consider using raw ODBC (that is what the MFC DB classes 
wrap), or (as we did) writing a (simple) C++ wrapper to simplify using ODBC.

Using "raw" ODBC can provide advantages, like direct access to native server 
(non-ODBC) functionality, as well as distancing yourself from MFC.

HTH!


Kit Kauffmann - kitk@mudshark.sunquest.com
AKA 73363,447 (Compu$erve)

Finger me for my public key
Technical Details
Message-ID: <kitk.1897.000BA126@mudshark.sunquest.com>
Path: arc1-ca.pugleaf.net!kitk.sunquest.com!kitk
References: <45grhq$53u@park.interport.net>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!kitk.sunquest.com!kitk
From: kitk@mudshark.sunquest.com (Kit Kauffmann)
Newsgroups: comp.os.ms-windows.programmer.win32,comp.os.ms-windows.programmer,comp.lang.c++
Subject: Re: HELP: How to use MFC Database classes w/o Windowing
Date: Wed, 11 Oct 1995 11:37:41
Organization: Sunquest
Message-ID: <kitk.1897.000BA126@mudshark.sunquest.com>
References: <45grhq$53u@park.interport.net>
NNTP-Posting-Host: kkauffma.sunquest.com
X-Newsreader: Trumpet for Windows [Version 1.0 Rev A]