|
-
Mar 31st, 2004, 01:12 PM
#1
Thread Starter
Hyperactive Member
Check if .dll exists (non-path specific)
I'm wondering if its possible to detect if a DLL is registered, or in a directory where it would be found (System, System32, Windows, etc.)
cjqp
When your answer is the Arc Sin of 1.015, you should check your Pythagorean triple.
-
Mar 31st, 2004, 02:07 PM
#2
Re: Check if .dll exists (non-path specific)
Originally posted by cjqp
I'm wondering if its possible to detect if a DLL is registered, or in a directory where it would be found (System, System32, Windows, etc.)
cjqp
you could try to late bind an object to the DLL and catch the error like
VB Code:
Public Function IsDllRegistered()
On Error Goto EH:
Dim MyObject as Object
Set MyObject = CreateObject("MyDll.MyClass")
Set MyObject = Nothing
IsDllRegistered = True
Exit Function
EH:
IsDllRegistered = False
End Function
of course depending on what exatcly you are looking to do, this may or may not suit your needs
-
Mar 31st, 2004, 02:27 PM
#3
Thread Starter
Hyperactive Member
What I'm trying to do is have microsoft's TTS engine in my program, but not require the user to install it. I want to have it automatically disabled if the engine isn't installed.
cjqp
When your answer is the Arc Sin of 1.015, you should check your Pythagorean triple.
-
Mar 31st, 2004, 02:39 PM
#4
how come? TTS is freely distributable, you can include it in your app
-
Mar 31st, 2004, 02:42 PM
#5
Thread Starter
Hyperactive Member
Yeah, but this is more of a school assignment, this is a quick-impress-the-teacher type thing. I don't want to force its install.
cjqp
When your answer is the Arc Sin of 1.015, you should check your Pythagorean triple.
-
Mar 31st, 2004, 02:53 PM
#6
Originally posted by cjqp
Yeah, but this is more of a school assignment, this is a quick-impress-the-teacher type thing. I don't want to force its install.
cjqp
well I am not sure what object you would create for TTS I dont have it installed here at work... but you could probably use my method that I posted above to check
substitute
CreateObject("MyDll.MyClass")
for whatever the object and class are for TTS
CreateObject("MSTTS.Engine") 'whatever the TTS object really is
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|