Problem Glut lib work in MS VIsual Studio 2010 - visual-studio-2010

I want to run an openGL program in MS Visual Studio 2010, but it gave me the error "The glut32.dll is missing on your computer. Reinstall the program to fix the problem." I already put the glut32.dll in C:\windows\system32. Do I really need to reinstall MSVS10?

Are you running this on the 64-bit version of Windows? Then copy the DLL to c:\windows\syswow64. Or better yet, in the same directory as your EXE so you don't mess with the operating system directories.

Related

MFC program has runtime error R6025 on certain Windows 7 32 bit computers only and fixes after installing Visual Studio on it

I have a MFC application compiled with Visual Studio 2010.
On a certain computer (32 bit), it had "Runtime error: R6025 pure virtual function call" error message and sometimes a silent close (with no crash).
After convincing the customer to install Visual Studio 2010, the error disappeared automatically. But I don't know why.
The Visual C++ 2010 redistributables (x86) were installed before installing Visual Studio on that PC.
Why installing Visual Studio 2010 on it fixed it even though the redistributables were installed? Maybe the redistributables were corrupted? (If this is possible) Or Visual Studio install other files that can affect?
I need to explain the customer what fixed the error, but I'm not sure.
Is there any safe way to force the application to use the MFC files that I want to avoid these kind of difficult-to-reproduce bugs?
By the way, there was no call to pure virtual function, so I think that there might be some relation to the distributables or some other files.
In my experience, that "call to pure virtual" error sometimes happens when you've built against the wrong version of the Windows SDK by setting the WINVER defines to a higher level of OS than the one you run on.
That doesn't explain why the problem was fixed though so also make sure the redistributables you installed were for the same Service Pack of VS2010 as you used for the build.

.exe gives error MSVCP120.dll is missing for Win7x64

I created .exe using VS2013 and I added it directly to control panel by giving registry path. I built it for x64. It launches perfectly fine for Win8.1x64. But when I launches it on Win7x64 it gives MSVCP120.dll error. If I copy dll it works. But does the dll's are connected directly to .exe? If not how do I attach them?
Your error just means that the MSVC redistributable for VS2013 is missing from the Windows 7 computer. Windows 7 doesn't have this DLL by default.
However, please don't copy DLLs around willy-nilly. You need to make sure the redistributable is installed either as part of your installer or separately by the user. For example, you can have your installer detect the existence or not of the redistributable and alert the user to install it. You could include it with your installation package, which is allowed.
Note that there are 2 versions of the redistributable, for x86 and x64. You need to supply the right one(s) for your application. You can use this link to download the Visual C++ redistributable packages for Visual Studio 2013.
Even if you're using x64, you need to install also x86 version of MSVC redistributable.
I had this problem myself as well. I found that even after installing x64 version of MSVC redistributable, the msvcp120.dll file was missing in SysWOW64 directory. The issue was solved after installing also x86 version.

Visual studio - stand alone application

Hello I have created a DLL file using visual C++ 2010, that runs a C script that i have written.
I have then created a user interface using visual C# 2010 and linked everything together.
On my machine the resulting exe application runs perfectly.
However when i try to put the folder, containing BOTH the exe and the dll, on other computers.. it runs on some computers, but on others it does not.
the error i receive has to do with "Cant find dll file or assembly".
All computers have windows 7 64bit installed.
My question is: Is there a requirement for the application to run? (files or something that should be installed on all machines???)
I have noticed the following (after alot of looking) that:
the computers that run the application HAVE visual studio 2010 installed
the computers that do not run the application DO NOT have visual studio 2010 but have visual studio 2008 installed..
all computers have .NET framework 4.5 installed.
Do you think the visual studio has anything to do with this?!!? isnt the point having a stand alone application is to make the app run on any machine?
Is there a way to fix it so that the app will run on any computer regarding having visual installed or not?
thank you all..
You can use Dependency Walker to check what dll the program can't find.
Just load the .exe into the program.
You might also find that you will need to install the Visual Studio 2010 Redistributable on those computers that you are deploying to.

visual studio 2005 .exe file not running on another computer

I have a visual studio 2005 c++ application running on a windows 7 64 bit machine.I tried to run it on another computer having windows 7 64 bit but when I copied it on to the desktop and runs the .exe file,there was no response.But I dont have the visual studio 2005 ide installed on the new machine and I am currently instaling it. Also, I googled and got lot of confusing answers. Can someone tell me what will be possible problem here?
Try installing the "Microsoft Visual C++ Redistributable Package" on the machine where the executable is not working.
You need to build for Release not Debug to run the application on a PC without Visual Studio. If you're already doing that, try loading the EXE into Dependency Walker on the target machine to see what other libraries might be missing.

Visual Studio 2008 on an External Hard Drive?

My laptop had an install error with Vista Ultimate and now it does not let me run Visual Studio. I was able to install Visual Studio 2008 on my HP TouchSmart without a problem and now I use it on there. I want to be able to travel though. So I was wondering if I take the folder in which Visual Studio was installed and put it on my external hard drive and just run it off of there. Is this possible? I've managed to do it with other programs before.
No this will not work with Visual Studio. You're essentially asking if Visual Studio is xcopy deployable. It unfortunately is not. It relies on many items which are not simply a part of the install folder including ...
Registry Keys
Certain versions of the CLR being installed
Supporting programs and libraries
And many, many other items.
As others have said, because of the dependencies it is not xcopy deployable. Maybe Virtual PC is the answer to your problems.
You can install VS 2008 on some other drive/older in your computer. Bu VS 2008 needs to run some DLL or other files to run in the OS. So you can not install it.
There are many pre-requisites that are installed with VS 2008, so I think that it's not a good idea.

Resources