Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE Errors with VFP, Word 97 and Win NT
Message
From
07/10/1998 14:04:19
 
 
To
06/10/1998 13:13:28
Bob Lucas
The WordWare Agency
Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00144029
Message ID:
00144684
Views:
30
>>>>Folks,
>>>> I am having a bear of a time with this situation.. I have an existing application, works just fine running it under Win 95. What is does is open a fox table and build a few Word docs with the data from the table.
>>>>
>>>>Now my office went and replaced my old 200 mhz machine with a shiny new 400 mhz PII machine with Win NT on it and the same program blwos up on this line of code:
>>>>
>>>>loWord = create('word.application')
>>>>
>>>>I am getting an ole error returned that is below:
>>>>
>>>>OLE error code 0x8007001: Incorrect Function..
>>>>
>>>>Anyone have an idea, beyond patching VFP, I have the latest patches installed.
>>>>
>>>>Could it be that Word needs another patch?? (I have SP 1 for Office installed??)
>>>>
>>>>Thanks!
>>>>
>>>>Tony Miller
>>>
>>>
>>>I think there is one digit missing in your error code. can you recheck it?
>>>I also think it may be a 'cannot create object' error that is occuring because of missing permissions. NT can act very funny.
>>
>>Bob,
>> Excuse me?? What permissions would I be missing for NT on my local machine?? I am pretty sure the error code I listed is acurate, since I was seeing for a few hours yesterday..
>>
>>Where would I need to check/correct the permissions on my NT workstation??
>>
>>Thanks!
>>
>>Tony Miller
>
>There is a file that comes with C++ (which I don't use!) called WINERR.h that lists all or most of the errors that are generated. It is sometimes possible to debug the error code. The file isn't that straight forward. The error codes though are 32 bits which requires an extra character in your OLE Error code. We recently ran into a problem where a user on an NT machine couldn't do a createobject on an ACCESS object (using a middle tier com object) because, while he had proper permission, the process that was actually doing the createobject, didn't. Using DCOMCNFG on the ACCESS dll got it working.
>
>I also remember reading something where REGCLEAN (not version 4.1a) wiped out some registry keys that are not update with an install of OFFICE. Apparently these keys are added with the install of WIN95 and if they are not there OLE doesn't work. If you check the microsoft site on REGCLEAN there is also a file that will put those keys back.

Bob,
Re: errors.. Never used regclean on this machine, it was wiped from the dealer and had NT installed, and then applications I use were installed (VFP, Office...).

Re: DCOMCNFG.. I ran this and checked the settings for Word, and found that the settings were correct for my user id, I am setup as the admin on the machine in question..

Funny thing is, the same type error occured today, when I tried firing up multiple copies of Word through NT explorer today.. That t could not open a document called (filename was a small square box)...

Any other ideas?

Thanks!

Tony Miller
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform