Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Implements clause, what the heck's up with it?
Message
From
13/02/2002 11:03:03
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Implements clause, what the heck's up with it?
Miscellaneous
Thread ID:
00619515
Message ID:
00619515
Views:
49
When running the following code I get the error: Type Library word.application not found.
PUBLIC ow AS WORD.APPLICATION
oWordEvents = NEWOBJECT("WordEvents")
ow=NEWOBJECT("word.application")
?"Word",EVENTHANDLER(ow,oWordEvents)
ow.VISIBLE = .T.
ow.ACTIVATE
ow.Documents.ADD

DEFINE CLASS WordEvents AS SESSION OLEPUBLIC

IMPLEMENTS ApplicationEvents2 IN "word.application"
PROCEDURE ApplicationEvents2_Quit() AS VOID
	* add user code here
	=MESSAGEBOX("quit")
ENDPROC
.
.
.
ENDDEFINE
However, everthing works just fine when I change the Implements line at follows:
IMPLEMENTS ApplicationEvents2 IN "c:\program files\microsoftoffice\office\msword9.olb"
Why can't I use the TypeLib???

TIA, John
Next
Reply
Map
View

Click here to load this message in the networking platform