Click here to Skip to main content
12,298,406 members (45,070 online)
   

Database

 
AnswerRe: Colin Angus Mackay ???? Pin
David Rawheiser23-Mar-05 9:18
sussDavid Rawheiser23-Mar-05 9:18 
GeneralSql stored procedure vs triggers vs functions Pin
jinnyb22-Mar-05 5:55
memberjinnyb22-Mar-05 5:55 
GeneralRe: Sql stored procedure vs triggers vs functions Pin
Colin Angus Mackay22-Mar-05 7:13
memberColin Angus Mackay22-Mar-05 7:13 
GeneralRe: Sql stored procedure vs triggers vs functions Pin
jinnyb22-Mar-05 9:34
memberjinnyb22-Mar-05 9:34 
GeneralRe: Sql stored procedure vs triggers vs functions Pin
Edbert P.22-Mar-05 18:53
memberEdbert P.22-Mar-05 18:53 
GeneralADO inside win32 services goes boom Pin
Peter Mares22-Mar-05 3:08
memberPeter Mares22-Mar-05 3:08 
GeneralRe: ADO inside win32 services goes boom Pin
Chris Austin22-Mar-05 17:25
memberChris Austin22-Mar-05 17:25 
GeneralRe: ADO inside win32 services goes boom Pin
Peter Mares22-Mar-05 19:51
memberPeter Mares22-Mar-05 19:51 
Hey, thanks for the reply.

I found the problem. When running under the SCM as a service, the SCM obviously takes the "entry point" nominated in the dispatch table that is passed into StartServiceCtrlDispatcher( ) and puts it into another thread. Since I was calling CoInitialize BEFORE this, COM never got initialized, or so it seemed. Simply putting CoInitialize into the entry point function sorted me out.

As an aside, I am slightly curious why, before the fix, calls the ADO Connection::Open( ) function SUCCEEDED and the CreateInstance( ) function returned what seems to be a valid interface pointer to the Connection object - weird.

Anyhow, atleast its sorted out Big Grin | :-D

Thanks,
Peter


controlSHIFT
[Glossary Manager] [AfterThought Backup Lite]

All good things were meant to be improved
GeneralQuery Date Field Type In Access Pin
Ajibawo22-Mar-05 0:16
memberAjibawo22-Mar-05 0:16 
GeneralRe: Query Date Field Type In Access Pin
Colin Angus Mackay22-Mar-05 7:14
memberColin Angus Mackay22-Mar-05 7:14 
GeneralRe: Query Date Field Type In Access Pin
Edbert P.22-Mar-05 18:55
memberEdbert P.22-Mar-05 18:55 
GeneralRe: Query Date Field Type In Access Pin
Ajibawo22-Mar-05 22:09
memberAjibawo22-Mar-05 22:09 
GeneralRe: Query Date Field Type In Access Pin
Edbert P.23-Mar-05 11:07
memberEdbert P.23-Mar-05 11:07 
GeneralPackage And Deployment Wizard Pin
Salman.21-Mar-05 22:48
memberSalman.21-Mar-05 22:48 
GeneralRe: Package And Deployment Wizard Pin
rwestgraham22-Mar-05 10:58
memberrwestgraham22-Mar-05 10:58 
Generaldataset or datareader Pin
jinnyb21-Mar-05 20:41
memberjinnyb21-Mar-05 20:41 
GeneralRe: dataset or datareader Pin
Colin Angus Mackay21-Mar-05 21:03
memberColin Angus Mackay21-Mar-05 21:03 
QuestionWhich is faster? Pin
Yulianto AKA goodmast3r21-Mar-05 15:16
memberYulianto AKA goodmast3r21-Mar-05 15:16 
AnswerRe: Which is faster? Pin
Christian Graus21-Mar-05 15:32
memberChristian Graus21-Mar-05 15:32 
GeneralViewing stored procedures Pin
Its due when21-Mar-05 2:58
memberIts due when21-Mar-05 2:58 
GeneralRe: Viewing stored procedures Pin
Colin Angus Mackay21-Mar-05 3:09
memberColin Angus Mackay21-Mar-05 3:09 
GeneralRe: Viewing stored procedures Pin
Scott Serl21-Mar-05 10:22
memberScott Serl21-Mar-05 10:22 
Generaldiff between managed providers and ole-db provider Pin
satishrg20-Mar-05 19:16
membersatishrg20-Mar-05 19:16 
GeneralRe: diff between managed providers and ole-db provider Pin
Colin Angus Mackay21-Mar-05 3:12
memberColin Angus Mackay21-Mar-05 3:12 
Generalthank you very much Pin
satishrg21-Mar-05 10:48
membersatishrg21-Mar-05 10:48 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160525.2 | Last Updated 27 May 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid