PDA

View Full Version : Registering fussy OCXs III



NewsArchive
04-20-1997, 12:00 AM
The following entries are in the ..\Objs\Vb4\swdepend.ini file for
Buttonmaker and OlectraChart OCXs. Buttonmaker registers fine, but not
OlectraChart. Also, I insure that the DLL is added before the OCX following
ISXP convention. Still no luck. If there is a RIGHT way, I haven't found it
yet. Is there anyone out there distributing OlectraChart components with
ISXP who has solved this problem?

[BTN32X10 OCX]
Register=$(DLLSelfRegister)
Src=<WINSYSDIR>
Uses1=BTN32X10.OCX
Uses2=OCX Runtime Support
Uses3=OC30.DLL

[OLCH2X32 OCX]
Register=$(DLLSelfRegister)
Src=<WINSYSDIR>
Uses1=OLCH2X32.OCX
Uses2=OLCH2D32.DLL
Uses3=OCX Runtime Support

NewsArchive
04-21-1997, 12:00 AM
The section name has to match the file name exactly. The
space you had between the filename and the extension was
why Express didn't recognize that the files had to be Self
Registered. The buttonmaker OCX would have had the
OLESelfRegister string within its VersionInfo. The entry you
need to make in the swdepend.ini should look like this:

[OLCH2X32.OCX]
Register=$(DLLSelfRegister)

You might have got misled by the other entries in the swdepend.ini
which had section names like the one you had made. These sections
are for Express Objects and you'll notice that no such section has the
$(DLLSelfRegister) value. Moreover there is no point in putting the
Src & Usesx entries under the section you create since these are
only applicable to Express Objects. You'll have to add the dependencies
for the OCXs manually.

CORRADO <corrado@bpa.missouri.edu> wrote in article
<01bc4d83$86f096e0$09d1ce80@MU.missouri.edu>...
> The following entries are in the ..\Objs\Vb4\swdepend.ini file for
> Buttonmaker and OlectraChart OCXs. Buttonmaker registers fine, but not
> OlectraChart. Also, I insure that the DLL is added before the OCX
following
> ISXP convention. Still no luck. If there is a RIGHT way, I haven't found
it
> yet. Is there anyone out there distributing OlectraChart components with
> ISXP who has solved this problem?
>
> [BTN32X10 OCX]
> Register=$(DLLSelfRegister)
> Src=<WINSYSDIR>
> Uses1=BTN32X10.OCX
> Uses2=OCX Runtime Support
> Uses3=OC30.DLL
>
> [OLCH2X32 OCX]
> Register=$(DLLSelfRegister)
> Src=<WINSYSDIR>
> Uses1=OLCH2X32.OCX
> Uses2=OLCH2D32.DLL
> Uses3=OCX Runtime Support
>
>
>
>
>
>

NewsArchive
04-22-1997, 12:00 AM
Rajesh,

You identified the problem exactly!

Thanks
CJC