Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OLE error codes in VFP 9

Status
Not open for further replies.

grahamrhind

Technical User
Jul 8, 2003
99
A1
I have suddenly started getting a number of OLE error codes in VFP 9 which I cannot find reported later than VFP 6. The DLL compiles without problem. Compiling the program accessing it to an APP sometimes gives the error "Library file c:\grc\grctools_dll\grctools.dll is invalid". At other times it compiles without error.

The DLL has not been changed and has worked up to now (the program accessing it has changed).

On a line such as:

oTEMP=CREATEOBJECT("grctools.grctools"

I now get a "OLE error code 0x80004005:Unspecified error". I have also had:

"OLE error code 0x80004005:Unknown COM status code"

and

"OLE error code 0x8000ffff: Catastrophic failure"

I have tried the same programs on another PC with the same results. I have restored the DLL from backup. Panic is setting in ....

Any ideas?
 
:) That was my post too - seems I have a monopoly on DLL issues.

In this case, though, the problem was different as was the solution. Moving the "set library to" line down in the coding is what caused this error. Moving it back to the top of the file resolves the issue. It seems surprising to me that this error isn't better handled, but there we are ...
 
I should have noticed that :) Glad you figured it out.

Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top