How to restore missing reference to mso97.dll? 
Author Message
 How to restore missing reference to mso97.dll?

Hi,
How can I restore automaticaly (using VBA code) a "broken" reference to a
particular *.dll file?
I want to be sure that the computer is searched for the 'missing' file
before giving an error.
Is there a possibility of trapping these kind of errors?
Thanks, Jeroen

--
Remove NOSPAM from my email adres!
J. Ticheler
Specialist Forestry, GIS and Remote Sensing



Mon, 13 Nov 2000 03:00:00 GMT  
 How to restore missing reference to mso97.dll?

The easiest way to make sure that your database will re-establish its
references is to use the reflibpaths key in the registry.

In order to find a file to write the correct information you can always use
the SearchTreeForFile API call

'********************Code Start *************
Private Const NO_ERROR& = 0

Declare Function SearchTreeForFile Lib "ImageHlp.dll" (ByVal lpRoot As
String, ByVal lpInPath As String, ByVal lpOutPath As String) As Long
'Recursively searches for a file starting at SearchPath
'Does not return all files matching fName, just first one
'in search path
Function SearchFile(ByVal fName As String, ByVal SearchPath As String) As
String
Dim iNull As Integer
Dim lpBuffer As String
Dim lResult As Long

SearchFile = ""
lpBuffer = String$(1024, 0)
lResult = SearchTreeForFile(SearchPath, fName, lpBuffer)
If lResult <> NO_ERROR Then
  If InStr(lpBuffer, vbNullChar) > 0 Then
    SearchFile = Left$(lpBuffer, InStr(lpBuffer, vbNullChar) - 1)
  End If
End If
End Function
'********************Code Start *************

If you want some more information on the reflibPaths key drop me a line and
I'll forward a database which will show the principle of setting values in
the key.

Quote:

>Hi,
>How can I restore automaticaly (using VBA code) a "broken" reference to a
>particular *.dll file?
>I want to be sure that the computer is searched for the 'missing' file
>before giving an error.
>Is there a possibility of trapping these kind of errors?
>Thanks, Jeroen

>--
>Remove NOSPAM from my email adres!
>J. Ticheler
>Specialist Forestry, GIS and Remote Sensing



Mon, 13 Nov 2000 03:00:00 GMT  
 How to restore missing reference to mso97.dll?

Hi I'm Rick and I have a really stupid but rather frustrating problem, here
it goes...  I assist in running a 1200+computer network using office 97... I
know office has a problem with animated pointers and I up to this point had
no problem correcting this problem, however i have problems now>>>  i can
not for the life of me get any of them to work on about 75 or more of the
stations and i have 75 people asking me about them everyday.  I would be
very happy if some one can tell me what may be the problem..  We are not
installing the Access 97 because it does not work well with the e-mail. can
that have anything to do with it? I Have uninstalled them reinstalled
them.please help
i has thinking that maybe direct X drivers could solve the problem what do

for your help.
Rick Bailey



Sun, 26 Nov 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. mso97.dll and msword8.olb

2. Use MSO97.DLL-CommandBar in VB5???

3. Missing DLL References

4. Missing DLL References

5. Missing DLL that's not missing -sortof.

6. VB COM project reference works, but dll reference does not

7. MSVBVM50.DLL file is linked to missing export OLEAUTO32.DLL:421

8. Error 20540 missing or out of date export dll for u2fxls.dll

9. files missing u25store.dll u25total.dll

10. Missing ODAPIxx.dll and pdbbtrv.dll ??

11. MSVBVM50.DLL is linked to missing export OLEAUT32.DLL

12. MISSING REFERENCES

 

 
Powered by phpBB® Forum Software