🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.language.objectpascal
Article #94

Message methods

#94
From: Richard Bibby
Date: Mon, 26 Jan 2004 09:26
33 lines
1879 bytes
Hello,

I have an application that generates Crystal Reports document. Along the way
it creates an xml document (TXMLDocument) and a com object.

This app works fine... and i have a single procedure call that does all the
hard work.

The problem occurs when i start to use the wm_copydata message.

I want other apps to be able to send a message to mine so that they can use
my app as a sort of  "crystal reports print server"

I have create a message method connected to the wm_copydata message.  The
message identifies the document to be printed.

However i am getting all sorts of problems in the wm_copydata message
method.  It does not appear to like my call to create a  xml document.

The second line here throws an exception:

        //create DOM document instance
        Reply := TXMLDocument.Create( nil );
        Reply.Active := true ;


Reply is declared as IXMLDocument.

I can place this code anywhere in my app, and it works. It just doesn't work
in the wm_copydata message method.


Any ideas?
Technical Details
Message-ID: <4014dcf8$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109d30,b2a3f9ffd0393f5c,start
X-Google-Attributes: gid109d30,public
X-Google-ArrivalTime: 2004-01-26 01:40:05 PST
From: "Richard Bibby" <richard.bibby@profdoc.se>
Newsgroups: borland.public.delphi.language.objectpascal
Subject: Message methods
Date: Mon, 26 Jan 2004 10:26:07 +0100
Lines: 35
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 217.31.174.3
Message-ID: <4014dcf8$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1075109112 217.31.174.3 (26 Jan 2004 01:25:12 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail