Try this...
lcFullPath = 'c:\subdir\some.ocx'
DECLARE INTEGER DllRegisterServer IN (lcfullpath) AS DllRegisterServer
IF dllregisterserver()<>0
* Failed! Probably bad path
ELSE
* Success!
ENDIF
Mike Copeland
Dave Crozier wrote:
Has anyone in this wonderful throng of people had any success using regsvr32 to
register an OCX programmatically in VFP.
I have a routine that used to run brilliantly on XP but it just fails on Win 7
despite giving the indication that all is OK. I am sure it is to do with
elevated permissions and UAC.
The additional problem is also to decide whether to copy the OCX into the Windows\System,
or Windows\System32 or Windows\SYSWOW64 folder before registering it as the OCX's
required are held on a network share, but that is just a nicety just to package the OXC
installation up into a one off "if it isn't there then install it" routine.
I would ideally like to use only inbuilt VFP commends (DLL Calls etc) and not
have to shell out to the command window on both 32 and 64 bit operating system
versions.
Thanks in anticipation.
Dave
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.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.