Can't Open VB6 Project - actbar.ocx and dll error - vb6

When i tried to open my existing vb6 project in win7, it show actbar.ocx error. Then i register actbar.ocx in SysWOW64 folder and try to open again, it show "could not open all dll" error.
Anybody who ever encountered this error before?
Thanks

Related

MSI Installer fails with error: Assembly Install [GAC] at RemoveDirectoryAndChildren, line 393

I created an installer using Wix toolset which worked fine, until I opened 2 instances of setup.exe. The installation fails to install an assembly into the GAC:
"Error 1935. An error occurred during the installation of an assembly 'MyAssembly,version="3.2.xxxx.xxxxx",culture="neutral",publicKeyToken="xxxxxxxxxxx",processorArchitecture="MSIL". Please refer to Help and Support for more information. HRESULT: 0x80131043. assembly interface: IAssemblyCacheItem, function: Commit, component: {xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx}
Assembly Install: Failing with hr=80070005 at RemoveDirectoryAndChildren, line 393".
I think an MSI Transaction remained open, locking up a directory with a corrupt ACL.
Rebooting fixed this problem once, however I ran "Setup.exe" with "Setup.exe /?" open at the same time.
So, which folder is locked up? It's not one from my application. Is it a temp folder created during the installation of a dll into the GAC?
It turns out to be a confluence of errors (on my part):
A transaction was open from a system change that had not been rebooted. The installer recovered once, but not twice.
The build order was running the previously built msi.
The actual error was a misconfigured Component attribute.

error LNK1104: cannot open file 'libeay32.lib'

I am trying to have run an opensource project in visual studio 2013. In which I am getting this linker error. I did some google search and found that this library is from open ssl. But I am not getting how to resolve this error.
'libeay32.lib' has been added in a project and the same project has error.
Please help me !!
It appears the lib file can't be found. You can add the directory where the libeay32.lib is stored to the "Additional Library Directories" in your project properties.
If it still doesn't work, turn on Verbose logging - https://msdn.microsoft.com/en-us/library/wdsk6as6.aspx - and re-build. This will show you all library paths that are searched for the library and that may give you a clue.
you can move libeay32.lib to your source code directory

fatal error LNK1104: cannot open file '[...]\ReMod3D.exe'

When I was using the Visual Studio 2010 and run my simulator, I got this error:
fatal error LNK1104: cannot open file 'C:\Users[...]\ReMod3D\AIProject1World\ReMod3D.exe
The weird thing is that this error will disappear if I try to run it again after putting the VS2010 aside for a few minutes. I have checked the task manager and found no program like ReMod3D.exe is running in the background when I got this error. Anyone know what is happening?
I find the solution! That is because my explorer is always locking the .exe file......the vs2010 cannot rebuild the .exe file because it's locked! The reason that the file is locked is that I somehow disable my application experience service. I started it again and everything is fine now.

Register comdlg32.dll gets Regsvr32: DllRegisterServer entry point was not found

I have Windows 7, 64-bit.
I'm trying to register a .dll (comdlg32.dll) using regsvr32. But I get an error that says the dll is read but the DLLRegistryServer entry point is not found.
I have run the command under both System32 and SysWOW64 and I have run my commands with "Run As Administrator".
My old MSComDlg.CommonDialog component is no longer working with 64-bit.
comdlg32.dll is not a COM DLL and cannot be registered.
One way to confirm this for yourself is to run this command:
dumpbin /exports comdlg32.dll
You'll see that comdlg32.dll doesn't contain a DllRegisterServer method. Hence RegSvr32.exe won't work.
That's your answer.
ComDlg32.dll is a a system component. (exists in both c:\windows\system32 and c:\windows\syswow64) Trying to replace it or override any registration with an older version could corrupt the rest of Windows.
I can help more, but I need to know what MSComDlg.CommonDialog is. What does it do and how is it supposed to work? And what version of ComDlg32.dll are you trying to register (and where did you get it)?
comdlg32.dll is not really a COM dll (you can't register it).
What you need is comdlg32.ocx which contains the MSComDlg.CommonDialog COM class (and indeed relies on comdlg32.dll to work). Once you get ahold on a comdlg32.ocx, then you will be able to do regsvr32 comdlg32.ocx.
Registering DLL for Fundsite
Outdated or missing comdlg32.ocx runtime library can be the problem of causing this error.
Make sure comdlg32.ocx file is not corrupted otherwise Download the File comdlg32.ocx (~60 Kb Zip).
Download the file and extract the comdlg32.ocx to your the Windows\System32 folder or Windows\SysWOW64. In my case i started with Windows\System32 but it didn’t work at my end, so I again saved in Windows\SysWOW64.
Type following command from Start, Run dialog:“c:\windows>System32\regsvr32 Comdlg32.ocx “ or “c:\windows>SysWOW64\regsvr32 Comdlg32.ocx ”
Now Comdlg.ocx File is register and next step is to register the DLL
Copy the Fundsite.Text.Encoding. dll into .Net Framework folder for 64bit on below path
C:\Windows\Microsoft.NET\Framework64\v2.0.50727
Then on command prompt and go to directory C:\Windows\Microsoft.NET\Framework64\v2.0.50727 and then run the following command as shown below.
This will register the dll successfully.
C:\Windows\Microsoft.net\framework64\v2.0.50727>regasm "Dll Name".dll
Have you unistalled your Internet Explorer?
I did, and I had the same issues, if so, you have to:
Reactivate IE (Control Panel -- Programs and Features -- Turn Windows features on or off).
restarting the computer
(important!) running Windows Update to get all available updates for Microsoft Explorer
restarting the computer (again)
Finally it works!
I have faced the same issue with COMDLG32.OCX and MSFLXGRD.OCX in Windows 10 and Visual Studio 2010. It's an MFC application.
Then I downloaded its zip file from the google after extracting copy them at following paths:
C:\Windows\System32 (*For 32-bit machine*)
C:\Windows\SysWOW64 (*For 64-bit machine*)
Then run Command Prompt as an Administrator then run the following commands:
For Windows 64-bit systems c:\windows\SysWOW64\ regsvr32 comdlg32.ocx
c:\windows\SysWOW64\regsvr32 msflxgrd.ocx (My machine is 64-bit configuration)
For Windows 32-bit systems c:\windows\System32\ regsvr32 comdlg32.ocx
c:\windows\System32\regsvr32 msflxgrd.ocx
On successfully updation of the above cmds it shows succeed message.
Information about missing entry point error installing legacy VB6 compiled applications on Windows 10 which I hope could be useful to someone.
Missing OCX files can be found in the "OS\System folder" of the Visual Basic 6.0 installer package.
Today I copied the relevant OCX file (from our network) to the local computer
And then I typed the commands below, as administrator, which normally work to register it.
cd \windows\syswow64
regsvr32.exe /u mscomctl.ocx
regsvr32.exe /i mscomctl.ocx
(add the path to the locally copied file for the /i command)
However today I got errors from both these regsvr32.exe commands.
The second error was giving the DllImport missing entry point error which is similar to the error mentioned by the original poster.
To resolve, one of the things I tried was leaving out the switch -
regsvr32.exe mscomctl.ocx
To my surprise it then said it was successful.
To confirm, the application started up properly afterwards.
SOLUTION OF Regsvr32: DllRegisterServer entry point was not found,
Go to systemdrive(generally c:)\system32 and search file "Regsvr32.exe"
Right click and click in properties and go to security tab and click in advanced button.
Click in owner tab and click edit and select administrators and click ok.
Click in permissions
Click in change permissions.
Choose administrators and click edit and put tick on full control and click ok.
Similarly, choose SYSTEM and edit and put tick on full control and click ok and click in other dialog box which are opened.
Now .dll files can be registered and error don't come, you should re-install any software whose dll files was not registered during installation.
I also had the similar problem while registering myinfo.dll file in windows 7. Following work for me:
Create a short cut on your desktop
C:\Windows\System32\regsvr32.exe c:\windows\system32\myinfo.dll
right click on the short cut just created and select as Run as administrator.

Error HRESULT E_FAIL has been returned from a call to a COM component. in visualStudio2010

Hello i have a silverlight application when i tried to run it it will give me error like
Error HRESULT E_FAIL has been returned from a call to a COM component.
same code i have run on other PC then it's working fine
Details of Error
"Unhandled Error in Silverlight Application \nCode: 1001 \nCategory: RuntimeError \nMessage: AG_E_UNKNOWN_ERROR \nMethodName: \n"
reinstall visual studio but still got this same error.
Can anyone tell me why this happened?
In My case. i moved the referenced dll's out of the folder:
C:\Program Files (x86)\Microsoft SDKs\Silverlight\v4.0\PivotViewer\Aug10
the error was occuring when i referenced a pivotViewer dll called System.Windows.Pivot
I have a win 7 64 machine.
This seems to resolve the issue for me.
Solution:
This error comes because of Caching of Visual Studio
Delete the Cache.
You can delete the project cache at "Program Files\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplatesCache", then run "devenv /setup" to build the cache again to see if it helps.
enter link description here
I had separate module on my project, this error occurred in one of the module that has design view (xaml). After numerous tryouts, finally removed error module and re-add it and clean and build resolved the issue.

Resources