🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.xml
Article #3

XMLDocument

#3
From: FBM
Date: Fri, 29 Jun 2007 18:11
16 lines
1563 bytes
Hi all!

I'm using C++Builder6.

I've developped a service application and I am trying to use XMLDocument 
component. When I called LoadFromFile (of XMLDocument) member function, I 
got an Exception saying CoInitialize hadn't been called yet.
Then I placed a call to CoInitialize at the beginning of the main service 
thread, which returned S_OK. When I finally called LoadFromFile I got the 
error
    System error: -2146697210 (DE_E_OBJECT_NOT_FOUND)
If I make a normal windows application that does the same as the service 
application, it works fine.
What could be worng service application?

Thanks FBM.
Technical Details
Message-ID: <46854b46$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!feeder3.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news2.euro.net!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efdc8,6d9a009567ec4664,start
X-Google-Attributes: gid1efdc8,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "FBM" <fbonales@world-affair.com>
Newsgroups: borland.public.csharpbuilder.xml
Subject: XMLDocument
Date: Fri, 29 Jun 2007 13:11:31 -0500
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 200.67.143.179
Message-ID: <46854b46$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1183140678 200.67.143.179 (29 Jun 2007 11:11:18 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!feeder3.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news2.euro.net!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail