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

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


OLE Automation Server and DAO

Nick Shanny -- nshanny@msn.fullfeed.com
Tuesday, January 02, 1996

Hello,

I have created a sample application using NT 3.51 server/ VC 4.0 with
patch applied. I use the app wizard to create an OLE automation server
and include database header files. The name of the program is 'testme'
and the interface is testme.document. I have no problem compiling the
app and using object view to inspect the interface.

I then create a CDaoWorkspace object and a CDaoDatabase object within
the InitInstance method and recompile.  I can run the program from VC
4.0 without a problem and the database is opened without error.

If I use the object view program and dbl-click on the testme.document
entry I receive the following error sporadically(?). Sometimes it works
correctly, othertimes I get the following error:

CoGetClassObject() failed. 
Ole service could not communicate with the object server.
CO_E_OBJSRV_RPC_FAILURE ($80080006)

If I remove the creation of the CDaoDatabase object, everything works
as planned. What is going on here?

Nick Shanny
nshanny@fullfeed.com



Nick Shanny -- nshanny@msn.fullfeed.com
Thursday, January 04, 1996

Hi there,

Is it possible to create an OLE Automation Server and have that 
server utilize DAO? I am having some problems with it and 
receive the following error:

CO_E_OBJSRV_RPC_FAILURE. 

This only happens when I create a CDaoDatabase Object. I can run 
the app. alone just fine, but invoking it as a server fails.

Nick Shanny




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