How to register OCX?

zhaozj2021-02-16  45

In the process of writing a program, there are often some more good controls. In your own program, we must first know how to register the OCX control. The following uses the Formula control as an example:

Register on the Formula ONE component on the target machine

The registration is implemented in the programming, the code is as follows:

1) Define functions in Local External Function:

Function Long DllRegisterServer () library "vcf15.ocx"

2) Add the following code in the constructor event of the Formula One control:

Long LL_RC

LL_RC = DLLREGISTERSERRERVER ()

IF ll_rc> = 0 THEN

Super :: Event constructor ()

END IF

转载请注明原文地址:https://www.9cbs.com/read-26088.html

New Post(0)