>
>Hi Alan, thanks for response. My application will be installing on Win95 only. I've try to register the OCX manually using RegSvr32, but it give "unable to load 'mscomm32.ocx'" I thought it's used to register .DLL only not .OCX, but I think this is not true. I'm sure my .OCX is exist and not corrupted. Can Setup wizard do the registration for us during installation if I distribute the .Ocx .Dll & regsvr32 together will my apllication. BTW, I'm using VFP 3.0 on Win95. TIA.
To manually register an OCX use the olecontainer object, select ocx and then choose new/add button. It will register it in the registry.
If you put the ocx files in the main directory of your app and select the ocx button on the description in the project manager, they will be automatically registered when you exe is installed.
Note however, many ocx's have a user form and a designer form. The user form is freely distributable, but the designer form which you need to add the ocx object to a form/formset, is not.
HTH