Click here to Skip to main content
15,885,782 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Back in VS2017, When referencing an Activex/OCX two files were created and referenced on Visual Studio

Interop.XYZLib.dll
AxInterop.XYZLib.dll

from there I was able to create a wrapper around AxInterop.XYZLib.dll that exposed the methods and properties of the OCX as if they were native.

After installing VS2019 only Interop.XYZLib.dll is generated. Even if I go back to VS2017 the behavior is the same, only one is generated, and trying to use it causes a catastrophic failure.

Thank you

What I have tried:

Other answers suggest to use AxImp.exe, I tried, only to have an error saying "Did not find a registered ActiveX control in ...", that's confusing since the OCX is registered with RegSvr32.exe, any ideas?
Posted
Updated 10-Jul-20 5:24am
Comments
MadMyche 9-Jul-20 11:27am    
Why did you delete the original question?
lenniscata 9-Jul-20 11:28am    
I wanted to change the title to make it clearer.
OriginalGriff 9-Jul-20 11:33am    
You can edit questions using the "Improve question" button at the bottom (wave the mouse over your question and it'll appear) and edit the text, title, tags, and "what I have tried" sections.

Deleting questions looks like a "I didn't get the answer I wanted" fit of pique, and generally doesn't get you any improvements. It does annoy some of us though ...
lenniscata 9-Jul-20 11:40am    
Ok, got it, thank you,
MadMyche 9-Jul-20 11:34am    
That's what the Improve Question widget is for

1 solution

The most correct answer is, don't use activex... It's a known security risk and is to be avoided at all costs.

EDIT 2020.12.24 =======================

I can tell by the number of reputation points I lost (2) as a result of the recent down-vote, that the down-voter was a low-reputation CP user who probably has little/no experience actually writing enterprise-level code. So to that individual, listen up, and learn.

Active-X is a KNOWN security risk, and is even outright banned from use by the entirety of the DoD software development as a result.

The only browser that supports it is IE, and since MS has essentially abandoned IE, and Flash is no longer supported in many modern browsers, there's even less impetus for its continued use.

Find another way.
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900