BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Of Type Libraries and *_TLB.pas

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
Wayne Herbert
Guest





PostPosted: Fri Jan 30, 2004 4:00 pm    Post subject: Of Type Libraries and *_TLB.pas Reply with quote



OK... thanks to Avatar Zondertau for opening up the door to me for
noting that earling binding and components will solve my problem (I
owe you a beer).

Now, I have read how a type library must be installed and the file
Word_TLB.pas created. However, Word is already installed in my Delphi
5, and there is a Word2000.dcu in my Imports directory. There is no
Word_TLB.pas file to be found there.

If I click on the "Create Unit", I get the error message, "A class
named TWordApplication is already installed. So:

a) is Word2000.dcu the compiled equivalent of the Word_TLB.pas file?
b) where is the type IWordApplication defined? Not in what I am using
right now.

Thanks.

Back to top
Avatar Zondertau
Guest





PostPosted: Fri Jan 30, 2004 4:14 pm    Post subject: Re: Of Type Libraries and *_TLB.pas Reply with quote



Quote:
Now, I have read how a type library must be installed and the file
Word_TLB.pas created. However, Word is already installed in my Delphi
5, and there is a Word2000.dcu in my Imports directory. There is no
Word_TLB.pas file to be found there.

If I click on the "Create Unit", I get the error message, "A class
named TWordApplication is already installed. So:

a) is Word2000.dcu the compiled equivalent of the Word_TLB.pas file?

It may be, i haven't installed it. I prefer the generated version. I think
you should disable it's package in the "Component => Install packages" list.
Unfortuantely i don't know the name of the package, but it should be there.

Quote:
b) where is the type IWordApplication defined? Not in what I am using
right now.

I was wrong with the name (or you could say the wrappper generator is - it
doesn't follow Borland's own naming conventions). You can choose:
WordApplication or _Application.



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.