Solved

static build exe problem

Posted on 2002-04-07
6
209 Views
Last Modified: 2013-11-20
Hi experts,
I compiled my project (use static library) and run it in my PC and it looks fine. Now, I try to run
the exe file in another PC.
when i start the exe i get
Debug Asserting Failed
Program ....exe
File: daocore.cpp and afxdao.inl and winocc.cpp

but when i install vc++ i do not get this error.

but my requirement is not to run vc++ in the target system.how can i do it.

0
Comment
Question by:mimd
6 Comments
 
LVL 23

Accepted Solution

by:
Roshan Davis earned 25 total points
ID: 6924577
I think your database driver is not in that machine or not upgraded.

GOOD LUCK
0
 
LVL 1

Assisted Solution

by:pkreddy
pkreddy earned 25 total points
ID: 6924747
Hi,
 Check the dependencies for your app using 'Depends.exe' and ship the necessary dll's as part of application installation. So now on a PC just ensure that the all the dlls on which your application depend are available. This should clear the problem which your application is facing when run on some other PC.
bye
Pavan
0
 
LVL 2

Assisted Solution

by:Chandra V
Chandra V earned 25 total points
ID: 6925069
The problem may be with your DSN settings, you must add the DSN name and associate with the database on the destination machine also.

-chandu
0
 
LVL 32

Assisted Solution

by:jhance
jhance earned 25 total points
ID: 6925092
Are you trying to run the DEBUG build on the other machine?  

I suspect so since you are getting a "Debug Asserting Failed" message.  The DEBUG libraries are ONLY available on machines with VC++ installed.  Please make a RELEASE BUILD of your application and try running it on the target machine.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.

839 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