以下是Inf文件,请大家帮看看
========================= ocxtest.inf ========================
[version]
signature=="$CHINA$"
AdvancedINF=2.0
[Add.Code]
AudioRecordEx.dll = AudioRecordEx.dll
avcodec.dll = avcodec.dll
decode.dll = decode.dll
dhdvr.dll = dhdvr.dll
dllh264.dll = dllh264.dll
ParaTimer.dll = ParaTimer.dll
render.dll = render.dll
dhnetsdk.dll = dhnetsdk.dll
ocxtest.ocx = ocxtest.ocx
[AudioRecordEx.dll]
file-win32-x86=thiscab
[avcodec.dll]
file-win32-x86=thiscab
[decode.dll]
file-win32-x86=thiscab
[dhdvr.dll]
file-win32-x86=thiscab [dllh264.dll]
file-win32-x86=thiscab [ParaTimer.dll]
file-win32-x86=thiscab [render.dll]
file-win32-x86=thiscab
[dhnetsdk.dll]
file-win32-x86=thiscab [ocxtest.ocx]
clsid={4FCAE43F-9212-4ECE-A804-D25D792CCEE1}
FileVersion=1,0,0,1
RegisterServer=yes
; ====================== end of ocxtest.inf =====================
========================= ocxtest.inf ========================
[version]
signature=="$CHINA$"
AdvancedINF=2.0
[Add.Code]
AudioRecordEx.dll = AudioRecordEx.dll
avcodec.dll = avcodec.dll
decode.dll = decode.dll
dhdvr.dll = dhdvr.dll
dllh264.dll = dllh264.dll
ParaTimer.dll = ParaTimer.dll
render.dll = render.dll
dhnetsdk.dll = dhnetsdk.dll
ocxtest.ocx = ocxtest.ocx
[AudioRecordEx.dll]
file-win32-x86=thiscab
[avcodec.dll]
file-win32-x86=thiscab
[decode.dll]
file-win32-x86=thiscab
[dhdvr.dll]
file-win32-x86=thiscab [dllh264.dll]
file-win32-x86=thiscab [ParaTimer.dll]
file-win32-x86=thiscab [render.dll]
file-win32-x86=thiscab
[dhnetsdk.dll]
file-win32-x86=thiscab [ocxtest.ocx]
clsid={4FCAE43F-9212-4ECE-A804-D25D792CCEE1}
FileVersion=1,0,0,1
RegisterServer=yes
; ====================== end of ocxtest.inf =====================
[ocxtest.ocx]
file-win32-x86=thiscab // 加上此句,就可以了
clsid={4FCAE43F-9212-4ECE-A804-D25D792CCEE1}
FileVersion=1,0,0,1
RegisterServer=yes