Solved

Get MFC Application to work on other machines

Posted on 1998-07-16
7
330 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

 

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 50 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

Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

Question has a verified solution.

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

630 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