Solved

Get MFC Application to work on other machines

Posted on 1998-07-16
7
329 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Change owner from userA to server Local Administrators 7 74
sumDigits challenge 9 178
EvenOdd challenge 10 160
Modbus - whats the maximum I can store in one register? 4 84
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…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Suggested Courses

734 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