I've compiled the DLL on a Windows 2000 box with VFP 9 SP 1. Copied to Program Files\Common Files on a Vista box (UAC enabled). Registered with RegSvr32.exe in Administrator CMD.EXE.
I get the following: --------------------------- Error --------------------------- PROGRAM: FRM_SETUP.INIT LINE: 14 ERROR: 1426 MESSAGE: OLE error code 0x80004005: Unspecified error. --------------------------- OK --------------------------- That line of code is the CreateObject(). I can create the object in the IDE, it fails in the runtime. I decided to start the runtime as Administrator. It now works as a standard user too. I noticed I have a new file in the folder For example I start with this: C:\Program Files\Common Files\MyApp\MyAppsDLL.dll And end with this C:\Program Files\Common Files\MyApp\MyAppsDLL.dll C:\Program Files\Common Files\MyApp\MyAppsDLLr1.dll Looking at the properties of MyAppsDLLr1.dll it is the VFP9R.DLL copied here with this name. To be sure, I deleted MyAppsDLLr1.dll and the problem came back when running as a standard user. I copied the VFP9R.DLL into the folder. Still failed. I renamed the copied VFP9R.DLL to MyAppsDLLr1.dll. Now it works. The original project was created and built on the Vista box. Then added to source control and checked out onto the W2000 box. I've gone to the W2000 box and did the build with "Regenerate Component IDs" checked. Copied the newly built DLL to the Vista box (no MyAppsDLLr1.dll to be found) Registered it with RegSvr32 and now it works as a standard user. Anyone have a suggestion as to why this happened? Tracy _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

