Marco:
>Sorry, my english is not good...Not a problem. And you can always ask here in the UT in the Spanish VFP section.
>I have a problem with ocx, it's mscal.ocx, i want to registry in Windows 2003 Server, but i can't !!.
>
>The code writing for register component is:
>run /n command.com /k regsvr32.exe "c:\ocx\mscal.ocx" && this code its in method click()
>
>In windows 2000 Pro i don't have a problem, only in Windows2003 Server. The message of error is:
>Error de DllRegisterServer en c:\ocx\mscal.ocx
>Code error: Ocx0000005
>
>well... i writing in button begin/eject: regsvr32 c:\ocx\mscal.ocx, and is not funtionality...So you want to register the ActiveX component and it works for you in Win2000 but not in Win2003. You get a C005 which is basically a GPF (Windows way of telling you that it has a problem that it cannot deal with).
Some questions:
- Why do you register with RUN /n .... from Click() ? You should register it only once,preferably not from your program but from the installation you create with a program like InstallShield or similar.
- Are you or the using trying this an admin in the problem computer?
- Do you have MS Office installed in that computer?
Here is some information on this problem. Although they refer to Win2K they might help:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;236529http://www.foxite.com/archives/0000024110.htm