Thanks in Advance
Arvind Singh
mapi...@hotmail.com
arvind <mapi...@hotmail.com> пишет в
сообщении:ByazxlI$$GA...@forums.sybase.com...
Thanks,
Anand Kumar
arvind <mapi...@hotmail.com> wrote in message
news:ByazxlI$$GA...@forums.sybase.com...
What you say is correct but if my EXE is running at client place then
what I am looking at is how dynamically I can crosscheck the registeration
of OCX at the window which is using the OCX without the end user getting
and error and register only if required by using regsvr.exe
Regards
Anand Kumar <kumara...@hotmail.com> wrote in message
news:y95fI2I$$GA....@forums.sybase.com...
Declare the following:
Function long DllRegisterServer() Library "myobject.OCX"
In your script:
long ll_rc
ll_rc = DllRegisterServer()
if ll_rc < 0 then
MessageBox("", "Could not register OLE class ( myobject )")
return -1
end if
Good luck!
Arvind
mapi...@hotmail.com
Jim Leary <jle...@mindspring.com> wrote in message
news:uw2ZQvX$$GA....@forums.sybase.com...
Every OCX (at least every OCX I've ever worked with) contains an
externally-callable function "DllRegisterServer". I think they have to have
it, though I don't know that for sure, because I think it's what Windows
uses to register the OCX. Just declare an external function to it:
FUNCTION long RegisterMPGB() library "<progress bar OCX filename>" alias for
"DllRegisterServer"
Of course, you can name it whatever you want. Anyway, call that function,
and the OCX will register itself, and you're on your way. Just make sure
you don't call it if the OCX is registered - you can get strange results.
On most systems, I've had no problems, but on others, it actually registers
the OCX a second time, and then you'll never get it to work without hacking
the registry by hand.
Hope this helps...
Scott McChesney
mcche...@uihc.uiowa.edu
arvind wrote in message ...