VB6 ActiveX DLL expose forms IIS - iis

Is it possible to call VB6 form through activex dll using ASP.net. I am able to call the activex dll (vb6) and test it locally with success. The DLL has a class that has From1.Show vbModal. When deploying the application IE just spins. I have registered the DLL as well. Any advice? Or can this not be completed?

Unfortunately for you, you simply cannot do what you are trying to do, unless you have access to the DLL source and can remove the use of Forms.

Related

VB6 (32bit) custom DLL registered in 64bit Windows 10, but cant initate ActiveX object

I have a 32bit VB6 Custom DLL which I was using all along until Excel 2013, Win-7. Now after moving to Excel 2016 on Win-10, the Excel file is rendered un-usable. I have done the Registration of that old DLL file on Win-10 via PowerShell (Admin mode) and it says registration successful. However, when the module in Excel executes creating the Object via CreateObject, it says ActiveX cannot create Object.
Another surprise that when I try to reference the VB6 DLL from (in Excel) Tools -> Reference, i can reference it and I can access the Class/Functions, but still when I try to execute it, it says the same error about ActiveX.
what else do I need to do in Windows-10 to have it run ?
32 bit programs can only load 32 bit dlls. 64 bit programs can only load 64 bit dlls. This is important. In COM which VB6 and Excel do, you can do non compatible bitness by forcing the wrong bitness dll into dllhost. All calls are marshalled with EXE servers. See https://learn.microsoft.com/en-us/windows/win32/com/registering-the-dll-server-for-surrogate-activation (note goggle sabotages searches for Windows).

How to create an all browser support activex control installer?

I have created activex control using MFC in visual c++ 2008.
As activex supported only by IE....
I want to create installer that can run my activex no matter which OS or which browser.
Please suggest me how to create an installer?
ActiveX is only supported via Internet Explorer. Depending on your needs, something like a pure HTML + Javascript website or possibly a Flash component might work.

Register COM Interop dll using InstallShield

I am trying to register COM Interop dlls using Installshield from last 10 days but still found no luck. Here's the issue:
I have an Installscript project with some ActiveX controls and dlls. Now I want to replace some ActiveX with .NET com Interop dlls created on VS2010 using C#.net. I am registering those
com Interop dlls using batch file.
So the Issue is , If VS2010 is installed on the client machine then application works properly but If .NET Framework is Installed on the client machine instead of VS2010 , dlls get registered but application doesn't work and throws an error "Make sure the Object is entered in the system registry".
Any idea on what I am doing wrong? Any help will be appreciated.
Thanks in advance.

Deploying Com Interop into sharepoint server

I have a com interop dll (zkemkeeper.dll) that i have to register and use, i wonder how can i deploy that to the SharePoint server using SharePoint package?
You cannot deploy COM or COM Interop DLL to SP farm by SP solution. You need to install the component on every SP server in the farm by other means.
Create an MSI installer to be executed on every machine. MSI can be rolled out automatically too.
Provide a PowerShell script to be executed on every machine. PowerShell can be run remotely too.
Deploy a timer job with your solution that would be executed after the installation automatically or manually and would write to the registry the necessary COM stuff.
The first two options are my favourite because they shouldn't cause technical problems at the customer. The third one appears to promise installation without visiting every machine but the Timer Service user identity would need permission to write to the local registry which may not always be granted; and you'd have to resort to 1. or 2. anyway.
You should think about switching over to ASP.NET or .NET components on the long term. There are many components available in pure .NET that can be deployed by SP solutions. You can also consider pure HTML/JavaScript controls. I would probably go for the option 1. and invest the saved time to other architecture without the COM Interop.
--- Ferda
If you are using Sharepoint 2010, see How to: Add and Remove Additional Assemblies.
See also:
Deploying custom dll's in SharePoint 2010
Visual Studio - SharePoint 2010 - Include Assembly > Quick Question
Include 3rd party dll in the Sharepoint project while packaging the wsp
visual studio does not copy assembly into gac
How to install a WSP that has dependant assemblies?
Interop.zkemkeeper.dll regsvr32 error or InitializeComponent
Then you need done the step following:
Go to the website: http://www.zktechnology.com
Download ->Software Download->ZK Access for C3 panels
Extract files
Install
Open visual studio -> Solution Project->references-> Add Interop.zkemkeeper.dll
Good luck

Excel dll addin does not load

I will try to make an Excel dll add-in. But I have started with the example called 'generic' in the SDK (http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=23242), compiled it and tried to load it in Excel. But nothing happens. If I start Excel with VS2010 debugger it doesn't even shows that Excel loads the dll. None of the addin functionality is available, and if I set breakpoints in the dll and then start Excel as debug target, no breakpoint is ever hit. Actually, they remain with the "empty-circle", meaning that to the knowledge of the debugger the dll has not been loaded.
I have carefully checked the security settings, and there is nothing that could inhibit the addin functionality there.
Any ideas?
I'm working with Excel 2010.
Definitely sounds like security settings to me. Maybe you should see if http://xll.codeplex.com works for you.

Resources