>>>I thought I read somewhere (VFP Help?) that you could use an ActiveX control without registering it as long as the OCX file is in the current directory. I can't find that statement now. Anyone know if that is correct?
I don't think so.
If your app has admin rights you can register the ActiveX control yourself with RegSvr32 ocxFile or by calling DllRegisterServer in the DLL directly via Declare. But you need admin rights for that and you should check whether the control is installed before doing that.
Other than that manifest files are pretty straight forward, but you have to register each and every interface/clsid you need to access which with ActiveX controls could be problematic since there might be quite a few.
+++ Rick ---
>>>
>>
>>It's not that simple. You have to use application manifest file to "register" it for your application
http://msdn.microsoft.com/en-us/library/ms973913.aspx.
>
>I did some testing, and this is what I'm seeing: If an ActiveX control is not registered and VFP can find the OCX file, VFP will register it for you. In Windows Vista/7, this means you have to run VFP as admin. Not what I was hoping for, but this must be what I read before.