type librarys ( msword2000)

hello
i imported msword2000 type library (.olb) file using tlibimp and the resulting library contained well over 100 delphi reserved words in procedures
stuff like:

procedure foo( const : string; object : variant; type : olevariant; end : integer;)

obviously when i tried to use it delphi wasnt too happy ;-)
so why it create a file using reserved words?
is this normal?ive never noticed it before..
is there a better importer etc ..so i dont have to go through 10million lines changing half the procedures.
your comments on the matter are welcome
i was thinking of importing more olbs but i think i'll wait ..
Regards Barry
LVL 17
intheAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

yk030299Commented:
listen
0
aacrgCommented:
listening...
0
florisbCommented:
Hello inthe,

I'm afraid I don't understand your question correctly; what is tlibimp?

If I import f.e. the Word library with Project | import type library | create unit, the created _tlb starts with some lines like:
//   Hint: Member 'End' of 'Range' changed to 'End_'
So functions look like this, without reserved words:
    procedure SetRange(Start: Integer; End_: Integer); safecall;
No changing needed at all.

I once got a tip just to use file | open and set the file type to library for the most complete way to view a library you import.

Good luck!
Floris.
0
Become a Certified Penetration Testing Engineer

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

aacrgCommented:
Which Delhpi version are you using???
0
intheAuthor Commented:
i used the library importer in delphi bin(cant remember name off hand something like tlibimp.exe),
i tried it off the delphi menu and the file not present..
im off for a meeting back later .,maybe you have idea?
ps:
D4.03 c/s

0
florisbCommented:
File not present in Delphi menu? Add should help?

And why not import the way I suggested?

You answered some pretty complicated questions of mine, I expect you're not looking for a Word-automation example?

tlibimp.exe is a mystery for me... ...never heard of it.
0
intheAuthor Commented:
hi floris ,
you dont have tlibimp.exe in your delphi bin ?
oh well ,maybe your version is standard or professional ?
tlibimp is a command line type library importer.can import files of type word.olb and creates a word_tlb file.
how do you suggest i do it
(i tried add in delphi importer but i cant add a .olb file)
i suppose what i need to know is what files should i import to get ALL the  _tlb files for word2000 ,outlook2000 and the other office2000 programs etc ..?
some are present i the delphi "import activeX control" some are not..

Examples of automation (the more the better)i dont do it much so bit of learning (i know the basics and have several examples but all they do is create a document and type "hello" or something they dont do anything very in depth.)
actually the problem arose when i was answering another question and discovered this.
i want to learn more about it so i will raise the points before accepting a answer and for examples as well
but only if you have them(dont go spending amounts of time on it as i can wait if your busy)..
first i need all the _tlb files ;-)

0
florisbCommented:
Delphi:

Menu: Project | Import Type Library
gives me a list with also msWord9.olb in it, I can create a unit from it here.
(Delphi 5, professional, was the same in Delphi 4).

In this olb functionality to f.e. open a document from a temlate, insert text / pictures / tables, to saveas, print, perform a mailmerge (!).
I don't know about other library's you could use for Word.

Outlook: msoutl9.olb, using the Import Type Library option of Delphi you see all registered lib's on your computer.

What kind of examples do you need (then I'll check what I have).

I could post or mail the olb after I imported it (.pas), if that doesn't work in your Delphi.

greetings,
Floris.



0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
intheAuthor Commented:
ahhh ha ,
import activex control
import type libarary

yeh i picked the wrong one ,no wonder i couldnt import any olb's ;-)
have got them all now,havent compiled them yet but will do later..
have you worked with any _tlbs other than word or outlook?
frontpage one maybe? i suppose they all similar to use..
cheers,


0
intheAuthor Commented:
if you dont mind send some examples that do some different stuff to
BorgsAssimilate@Aol.Com
(just when you have the time)
0
florisbCommented:
I'll do that.

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.