add functionality to the compiled OCX

We have an old OCX that is used in an old VB application. Both are currently not supported by the developer. and the source code is also not available. OCX contains a function that calculates the value, and now we have to change the calculation formula. Is there a way to override the method and create a news ocx with the same functionality?

Edit: ocx contains a date picker that uses mscomctl2.ocx, our formula is based on the selected date, so if we can find a solution to change the date after the selection, we can achieve our need.

+3


source to share


2 answers


There is another way: it is safe to use only if you are the owner of this ocx file. You can use the vb decompiler to get the source code from your ocx file so you can modify and create new source code. Here is a decompiler



http://www.vb-decompiler.org/

0


source


You can decompile the OCX, use hooks, patch memory, or rewrite it entirely as pointed out in other comments and answers.

But first, I'll try to make a wrapper around your OCX. If your functionality replaces some functionality, or adds before or after, a wrapper (AKA Proxy template) is your best option.



An example of this technique is DLL files around dx3d, which uses OpenGL.

0


source







All Articles