Mega Search
23.2 Million


Sign Up

Make a donation  
The need to register the OCX and its behavior? [Edit]  
News Group: embarcadero.public.delphi.multimedia

My app uses OCX (Flash and/or VLC*), and i'm not to sure about how it'll behave when distributed to users.

A) is it possible to use the OCX file from the local directory, instead of placing and registering it in windows?

B) what happens with a 2nd (newer) version of the OCX being registered in windows? And what if its older, can i downgrade?

C) how can i have my application detect the OCX is present and of the correct version?
I have seen exceptions occur when OCX is missing. Perhaps thats a good trigger for my program to install/register its own OCX.

D) how real is the chance of Adobe breaking backwards compatibility in the OCX? (should my application be able to downgrade the OCX?)

Thanks!
*) I would rather use libvcl.dll for VLC but i can not get it to work in Delphi. NB - If anyone knows of a DLL solution to Flash, i'd like to hear.

PS - I understand its this simple to register a OCX: (but i ask these questions to understand their behavior)
- http://delphi.about.com/od/windowsshellapi/l/aa040803a.htm
- http://www.greatis.com/delphicb/tips/lib/registry-regocx.html

Edited by: N Depred on Jul 12, 2012 12:30 AM

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 12-Jul-2012, at 3:31 AM EST
From: N Depred
 
Re: The need to register the OCX and its behavior? [Edit] [E  
News Group: embarcadero.public.delphi.multimedia
Thanks Remy!
> {quote:title=Remy Lebeau (TeamB) wrote:}{quote}
> N wrote:
> > I would rather use libvcl.dll for VLC but i can not get it to work
> > in Delphi.
> 
> Why not?
The libvcl wrappers i tried so far had errors i could not put my finger on (often in the form of EAccessViolation exceptions).

I since got vlclib working in Delphi, using http://wiki.videolan.org/Using_libvlc_with_Delphi which hooks straight into the API.

I would rather use a fool-proof wrapper component though, like http://sourceforge.net/projects/paslibvlc/

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 13-Jul-2012, at 5:56 AM EST
From: N Depred