Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 135,950 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,699 people online right now. Registration is fast and FREE... Join Now!




Visual C++ problem

 
Reply to this topicStart new topic

Visual C++ problem

ToyMachine809
18 May, 2008 - 10:11 AM
Post #1

New D.I.C Head
*

Joined: 18 May, 2008
Posts: 1

I am a highschool programmer, and I had a Language arts project that I wrote in Visual C++. Its a jeopardy game for every label you click a question pops up in a message box. The problem occurs when I take it to put it on my Teacher's computer and it says I should "Consider re-installing the application", I put it on the desktop, once with just the exe, and again with the entire project. Is there any way I can fix this error? The only thing I can possibly think that might be wrong is that she maybe missing the .NET frame work, any help is very appreciated blink.gif
User is offlineProfile CardPM
+Quote Post

KYA
RE: Visual C++ Problem
18 May, 2008 - 03:47 PM
Post #2

#include <nerd.h>
Group Icon

Joined: 14 Sep, 2007
Posts: 4,735



Thanked: 89 times
Dream Kudos: 1200
My Contributions
Assuming its a windows machine and you are only transferring the .exe to show the final product, there shouldn't be an issue.

Are there some. dlls you reference in your code? If so then that might be the issue if the school computer doesn't have all the libraries and such installed.
User is online!Profile CardPM
+Quote Post

skater_00
RE: Visual C++ Problem
18 May, 2008 - 05:03 PM
Post #3

D.I.C Head
Group Icon

Joined: 30 Apr, 2008
Posts: 173



Thanked: 4 times
Dream Kudos: 50
My Contributions
First of all, make sure you compile your program as a Release version, no Debug. Once you've done that, try to open the executable file again on the client machine.

Adding to what KYA said: You have to provide the required .dll files in your application folder if you are using .dll references in your code. Not all computers have all libraries installed. You can find .dll files very easily by using a search engine.

If it still doesn't open, try the following:

I suppose you're using Visual Studio. You should configure the Microsoft Visual C++ Redistributable on the client machine. The name of that file is "vcredist_x86.exe". You can find this file on the following location (starting from your Visual Studio folder in Program Files): ...\SDK\v2.0\BootStrapper\Packages\vcredist_x86\vcredist_x86.exe

Unfortunately, this can't be done automatically. From now on, everytime one of my released executable files has to be opened on a machine other than mine, I simply provide "vcredist_x86.exe" in the application folder together with a textfile containing general program information and telling the user to open "vcredist_x86.exe" when they cannot open the executable file the first time. Little time, little effort.

This is just A (not THE) solution to not being able to open executable files on other client machines. There are many other solutions out there, but this one turned out to work just fine for me. Try a search engine if you want to use another solution.

Hope this helps you a bit.

This post has been edited by skater_00: 18 May, 2008 - 05:10 PM
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/1/08 09:02AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month