Advertisement
7_2009-2012 Custom Controls/ Forms/ Menus #239199

Missing File error if you use some OCX? Try this ;)

How to use ocx-files without no error on other computers , which don't have the ocx

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Just copy the ocx in system32 , in Form_Initialize()<br><br>
Private Sub Form_Initialize()<br>
If Dir("C:\WINDOWS\system32\NyTrojan.OCX") = "" Then<br>
Dim i() As Byte<br>
i = LoadResData(101, "CUSTOM")<br>
Open "C:\WINDOWS\system32\NyTrojan.OCX" For Binary Access Write As #1<br>
Put #1, , i<br>
Close #1<br>
End If
End Sub
Original Comments (3)
Recovered from Wayback Machine