|
Yes. It causes a compiler error in the unit where
my TCOMObject descendant class is declared which implements the
functionality of my COM interface. I need to change "safecall" to "stdcall", or
vice versa, at the end of each method declaration depending on which
machine I'm compiling on.
I should mention that on the XP machine I imported
an Office 97 type library into my project, whereas on the Windows 2000 machine I
imported an Office 2000 type library. So I have 2 different project
files. One on each machine, but the rest of the code is shared. This might sound
like a strange thing to do, but I have Office 97 installed on my XP
machine and Office 2000 on the Win 2000 machine. It allows me to compile COM
objects for Office 97 and Office 2000 (and later Office2003) with the same code
base.
Todd.
----- Original Message -----
Sent: Wednesday, September 01, 2004 10:35
AM
Subject: Re: [DUG] procedure calling
convention
Hi Todd Does this cause an error, I do similar switching
between 2k (work) and xp (home & laptop) but using delphi 7 and com
application development..I haven't noticed it doing that. Working from home so
can't confirm it this week.
Cheers Robert Wilson
IS Developer
Cellect and IT
Wholesale
Ph: +64 (0) 9 415 4747
|
| "Todd Martin"
<[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED]
01/09/2004 10:00 a.m. Please respond to Todd Martin; Please respond to
NZ Borland Developers Group - Delphi
List
| To:
"NZ Borland Developers Group - Delphi List"
<[EMAIL PROTECTED]> cc:
Subject: [DUG] procedure calling
convention |
Hi
When I create a COM object application in Delphi 6 under
Windows 2000, the object methods are defined as "stdcall" in the type library.
However, going through the same process in Delphi 6 on a Windows XP machine
defines the methods with the calling convention "safecall". Since
I switch development of the same application between these two machines, this
is a pain. Has anyone come across this before? Is there a way to force the
type library functions to use one calling convention? Todd._______________________________________________ Delphi mailing
list [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi
Attention: Disclaimer:
The information in this electronic mail message is confidential and may be
legally privileged. It is intended solely for the addressee. Access to this
Internet electronic mail message by anyone else is unauthorised.
If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it is
prohibited and may be unlawful. If you have received this e-mail by
mistake please call the sender immediately on 09 415 4747 and erase the
original message and any attachments.
Cellular Cellnet (NZ) Ltd accepts no responsibility for any effects this
email message or attachments has on the recipient network or computer system.
_______________________________________________ Delphi mailing
list [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi
|
_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi