Using MFC (ODBC) in windows NT service 
Author Message
 Using MFC (ODBC) in windows NT service

I use MFC classes for doing database access .

So far I tested my app as a console application no problem.

As I run the code as windows NT service, I get an exception when calling
CRecordSet::Open ( the actual exception occur in CDatabase::Connect)

00:31:59.499:Data source name not found and no default driver specified
00:31:59.499<State:IM002,Native:0,Origin:[Microsoft][ODBC Driver Manager]
00:31:59.519.Error: CDatabase create for CRecordset failed.

Any insights, suggestions, thoughts will be greatly appreciated.

Fri, 09 Sep 2005 06:40:24 GMT
 [ 1 post ] 

 Relevant Pages 

1. MFC ODBC and NT Services

2. Using MFC DB support in NT Service

3. Is it possible to create an NT Service using MFC

4. NT Service using MFC

5. Windows NT service problems using Oracle OCI 7.3

6. Help: Using ODBC in NT Service

7. Using ODBC within an NT Service application

8. Works In MFC Dialog App - Not In NT Service

9. MFC exceptionin NT service

10. Java program using ODBC as an NT Service

11. Starting capture as an NT Service on Windows NT

12. WA-SEATTLE-147562--Visual Basic-C-C++-MFC-VB Script-Javascript-Perl-Windows NT-I

Powered by phpBB® Forum Software