Created application using VS2015 on Windows 10 64 bit system, on this system it works fine, but when i run same application on Windows 7 64 bit machine get an assembly reference exception.
Tried installing CRforVS runtime installer or redist packages but no use.
Can anybody tell me how to resolve this exception.
Thanks,
Related
I am trying to create a 64 bit application that will run on Windows Server (I am testing with Windows Server 2008 R2 64 bit). My development environment is Visual C++ 2010 on Windows 7 64 bit. Right now I am experimenting with a very simple "hello world" console application. In the properties of my test app, the platform is "Active (x64)". This compiles and links fine, and on my Win7 development machine, works fine. When the program is running, I can go to Task Manager and see that it is a 64 bit application.
However when I run that executable on Windows 2008, I immediately get "the application was unable to start correctly (0xc000007b)". I saw some advice to run Dependency Checker. The result of this is "Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module. Error: Modules with different CPU types were found.". All of the dependent modules (e.g. kernel32.dll, msvcr100.dll) have the CPU type set to x86.
Only my main exe has the CPU set to x64. Is that the problem? Why does this run on my Win7 system but not Server 2008, and what can I do to correct the problem?
I have a VB6 application which needs VB6 Service pack 6 for running and debugging. When I try to install VB6, the installation doesn't complete successfully and it hangs at the end. But we can still open VB6 and compile the code. Service Pack 6 doesn't run successfully. Because of this there are issues while running the code.
One such issue is unable to read data from MS Access (.mdb files). Error Message: "Couldn't find installable ISAM"
My OS is Windows 10 Pro 64 bit.
The subject says it all...
I am not, however, asking if the VB5 IDE will install and run on Vista/Windows 7 - just the project output.
Thanks
[UPDATE]
I found some more information that seems to show that not only will VB5 apps run under Windows 7 (x64) - but the IDE does too.
http://www.vbforums.com/archive/index.php/t-619859.html
[UPDATE]
Thanks Jay, It makes sense that these programs wont run on x64 (any O/S) - I don't know how the vbforums member got it running on Win7 x64.
Yes, it does. I have several applications(.exe files) compiled with VB5, which I can run on my 64 Bit W7 machine without any extra setting.
I have been trying to install and run a program written in vb 6.0 on windows 7. It was working fine installing and running in windows xp. The error message after installing and running it say that
Run-time error 339" : Component voice.ocx or one of its dependencies not correctly registered: a file is missing or invalid.
This program has voice recording things.
I manually register that ocx component but still error that shown like
The module "voice.ocx" failed to load.
And I try to install VB run-time and still shows the same error. I believe that Windows 7 support vb 6.0 programs.
One thing here I am not sure of is that the ocx component I have is whether 16 or 32 bit version. I don't think we cannot register 16 bit version ocx in windows 7.
And I also try to install and run in compatibility mode or even as administrator. I think it is a platform related issue? And it might be some other work-around. So, I appreciate your hints or clues on this program runnable in windows 7.
Thanks in advance.
Regards,
SEE
Just encase anyone else sees this.. here is what I did
I knew the program was running on Windows XP, with visual basic installed. I had only been given the exe and the MDB. So I created a virtual machine (stick with me) of Windows XP, installed visual basic and test the app. It was fine. Then I downloaded a dependency tool called Dependency Walker from http://www.dependencywalker.com/. I installed this in the virtual machine and asked it to open my exe.
Once this was loaded I ignored the warnings and asked it to start profiling. I ran the app, stepped through everything I could see, then exited the application. This left me with a log of the DLLs that had been accessed. Slowly I went through these checking if they existed on my windows 7 setup, when one was missing I copied it to my application directory and then from an elevated command prompt run "regsrv32 [missing_name.dll]" until there were no files which my windows 7 desktop didn't have.
the application then worked fine! This may not work all the time, because of the way third party OCX's or DLLs have been written. But it may help someone out.
Few of old Win32 components are not supported in Windows 7. There are possibilities of failure of a VB Program in Windows 7.
But there are some possible ways to fix those.
Check the following links to avail the same.
http://www.personalcomputerfixes.com/general-errors/how-to-successfully-fix-the-339-runtime-error/
http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/8cb5ab97-8407-4e49-8db6-30dcef87cbd1/
http://yang.articlesbase.com/operating-systems-articles/simple-solutions-on-how-to-fix-runtime-error-339-1830111.html
I have developed several programs with VB5 on a WinXP32 machines and then installed them on Windows 7 (32 and 64) PCs without problems.
This applications use different OCXs (16 and 32 bit version) and till now I never get problem with them. Thus I do not think that the VB5 or Vb6 could have any issue on Windows 7 machines.
On the other hand I would point out the module "voice.ocx" and investigate if it can run on a windows 7 pc, because as Katturaja sais some old ocx have problem on win7. To do that, I would create a simply VB6 project that uses voice.ocx (just an Hallo-World"), then create the installation pack and finally try to install on a clean win7 machine (for example a virtual machine). In this way you could isolate the problem.
I hope this could help you.
I have a developed a C++ application using 32 bit and it create a executable file. This project has uses some external library like window socket 32bit, Qt GUI and boost library. The dll is located at same directory with the executable.
I wonder how can i run this application on window 7.
MY window 7 version is Home Premium 64 bit. Therefore, i cannot install the XP mode from Virtual PC but some one them reported that using Sun virtual box is functional.
I have try to troubleshoot the executable file using program compatibility but the problem doesn't solve.
Any program that can check external dependencies and identified the issues of running my program on window 7 ?
Please help.
Thanks.
64 bit editions of windows can run 32 bit applications fine. You just need to install the 32 bit versions of the needed libraries and it will work.