Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Get MFC Application to work on other machines

Posted on 1998-07-16
7
Medium Priority
?
332 Views
Last Modified: 2013-11-20
I am making a MFC application in version 5.0  I want to run it on someone else's laptop.  However, that laptop has version 1.5 on it (and he does not want to upgrade it at this time).  My program works great on my machine with 5.0 and I have tried it on other computers that do not have C++ installed and it works great on those machines, too.  However, it will not work on machines that have version 1.5 installed.  I have tried it on 2 different machines with version 1.5 and I get the same result.  One thing that I need to mention is that I am putting the debug version on the other machine b/c when I compile it as a release version, the program crashes on my machine.  Since I need this to work soon to show the program to someone else, I am just using the debug version.

When I start the execution of the code from the CView screen, a dialog box says that an assertion error has occured.  THis is what it says:

Debug Assertion Failed!
Program: programname.exe
File: tooltip.cpp
Line: 383

The execution of my code begins by selecting a menu that I call "Start".  If I select it with the mouse then the debug assertion dialog box appears.  However, if I select the Start with the ALT-S key then the program works great for a while.  However, it eventually crashes with the same error.  It appears to be linked to the mouse somehow.  Alsot, isn't tooltip.cpp used for the message that pops-up from the mouse pointer when it is over a toolbar?

I need help soon.
0
Comment
Question by:stchsc
7 Comments
 

Expert Comment

by:sram
ID: 1319321
Cant Do it Read some books
0
 
LVL 2

Expert Comment

by:lucidity
ID: 1319322
Try compiling your program with MFC as a static library
0
 

Author Comment

by:stchsc
ID: 1319323
I tried statically linking the program and the computer with version 1.5 gives me this error when I run it:

The trans1.exe file is linked to missing export OLEAUT32.DLL-420

I guess this is some sort of windows error.  I don't know what is wrong.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:stchsc
ID: 1319324
I tried statically linking the program and the computer with version 1.5 gives me this error when I run it:

The trans1.exe file is linked to missing export OLEAUT32.DLL-420

I guess this is some sort of windows error.  I don't know what is wrong.
0
 
LVL 23

Accepted Solution

by:
chensu earned 100 total points
ID: 1319325
First, you need to make a release version in order to distribute your application according to Microsoft. That's a legal problem. Second, you need to redistribute some DLLs that come with Visual C++, see the file \DEVSTUDIO\VC\Redist\Redistrb.wri on the Visual C++ CD.

And, for the tooltip, I guess you are using the new common control version that the other computer does not have it installed. Try installing it at http://www.microsoft.com/ie.
0
 

Author Comment

by:stchsc
ID: 1319326
What do you mean by new common control version?  Is that referring to the Visual C++ package or to Windows? What effeects will installing what you said have on the computer?
0
 
LVL 23

Expert Comment

by:chensu
ID: 1319327
There are several versions of common control. That's referring to Windows. They come with different versions of IE. I am not sure whether you are using the new one. You can download the latest version at
http://www.microsoft.com/msdn/downloads/files/40comupd.htm
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question