15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


DAO and console apps

Carlos Mengotti -- cmengot@wintermute.ran.es
Thursday, March 07, 1996

env. NT 3.51 softpack 3 Visual C 4.0 server softpack 3 Visual C++ 4.0
and Saic HTTP server

Hi out there.
Perhaps it's a silly question I'm develloping a CGI as a console app
and using the DAO classes to access a Access database.
When the CGI it's called from a browser in the 
with the following error: The title of the window it's 
"OleMainThreadWndName:CgiBuscon.exe Application Error"
The message is "The instruction at "0x5f885cff" referenced memory at
"0x000000b8". The memory could not be "writen".
The silly question: Can I use the DAO classes in a console app? or I'am
making a programming mistake?

Many Thank's

Carlos Morales Mengotti



Bill Brisky -- billbris@microsoft.com
Friday, March 08, 1996

I too wanted to try DAO as a console app.  Anyways, as I dug into the 
headers, etc., I found that DAO is tied to running as a WinApp.  First 
of all, the whole CDaoRecordView (I think that is correct), is in the 
same header which then requires the inclusion of CView, etc., etc.  
Just for grins, I #ifdef'd that section out and tried again.  It turns 
out that further down the line DAO makes reference to "theApp" which 
instantly relies on CWinApp, and console apps are screwed.

If I missed something here, someone please speak up.  I have an idea 
for a pretty cool utility that would work much better as a command-line 
tool rather than a full-blown Windows app (believe, it or don't).

B.
----------
| From: Carlos Mengotti  
| To:  <"mfc-l@netcom.com">;  
| Subject: DAO and console apps
| Date: Thursday, March 07, 1996 3:07AM
|
| X-Received: from xmtp6 by red-47-msg with receive; Thu, 7 Mar 1996 
18:17:56 -0800
| X-Received: from RED-04-IMC by xmtp6 with recvsmtp; Thu, 7 Mar 1996 
18:17:50 -0800
| Received: by red-04-imc.itg.microsoft.com with Microsoft Exchange 
(IMC 4.0.829.1)
| 	id <01BB0C52.66E313F0@red-04-imc.itg.microsoft.com>;
| Thu, 7 Mar 1996 18:17:53 -0800
| Received: from netcom15.netcom.com by
| red-06-imc.itg.microsoft.com with Microsoft Exchange (IMC
| 4.0.829.1)
| 	id FQ8CXBZN; Thu, 7 Mar 1996 18:15:51 -0800
| Received: by netcom15.netcom.com (8.6.13/Netcom)
| 	id QAA21972; Thu, 7 Mar 1996 16:56:00 -0800
| Message-ID:
| 
| X-MS-TNEF-Correlator:
| 
| X-Mailer:  Microsoft Exchange Server Internet Mail Connector Version 
4.0.829.1
| Encoding: 18 TEXT, 52 UUENCODE
| X-MS-Attachment: WINMAIL.DAT 0 00-00-1980 00:00
| X-MsXMTID: xmtp6960308021750RECVSMTP[01.52.00]00000080-29780
|
| env. NT 3.51 softpack 3 Visual C 4.0 server softpack 3 Visual C++ 4.0
| and Saic HTTP server
|
| Hi out there.
| Perhaps it's a silly question I'm develloping a CGI as a console app
| and using the DAO classes to access a Access database.
| When the CGI it's called from a browser in the
| with the following error: The title of the window it's
| "OleMainThreadWndName:CgiBuscon.exe Application Error"
| The message is "The instruction at "0x5f885cff" referenced memory at
| "0x000000b8". The memory could not be "writen".
| The silly question: Can I use the DAO classes in a console app? or I'am
| making a programming mistake?
|
| Many Thank's
|
| Carlos Morales Mengotti
|
|
| 






| Вернуться в корень Архива |