Solved

DLL depenancies and Windows XP

Posted on 2002-05-29
8
161 Views
Last Modified: 2013-11-20
I wrote a program  using VC++6 in a Windows 2000 Server environment. I want to run it on Win XP...the dependancies are MFC42.DLL,MSVCRT.DLL,KERNEL32.DLL,USER32.DLL,GDI32.DLL,OLE32.DLL,OLEPRO32.DLL,MSVCP60.DLL. If I use these in XP, XP does not start, and I must reinstall it. Any ideas ?Thanks!
0
Comment
Question by:pigeonbr
8 Comments
 
LVL 12

Expert Comment

by:migel
ID: 7041568
Hi!
DO NOT distribute
KERNEL32.DLL USER32.DLL GDI32.DLL OLE32.DLL OLEPRO32.DLL since they are SYSTEM  and varies in the diferent Win OSes!.
ADD in the installator first two and last librraies from your list and always will be OK!
0
 
LVL 30

Expert Comment

by:Zoppo
ID: 7041599
0
 

Expert Comment

by:goodami
ID: 7042173
Build the Exe using Static Link and then try to Run it on WinXP

GoodAmi
0
 

Author Comment

by:pigeonbr
ID: 7043225
Hi migel:

Ok...if I try to copy these dll's from the Visual Studio's CD to the target computer, they are being used by windows and therefore, I get an error, share violation...file in use....the files are there...maybe not the same versions, ..how do I copy the files if wondows is using them ?
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:pigeonbr
ID: 7043279
All:
On another machine with XP, as well as a P120 with Win98, all works except when I click to call up a dialog box which should display an MSFlexGrid control....nothing happens...no errors,..nothing...the dialog just doesn't materialize...the rest of the program works...The MFC42.dll and MSVCRT.dll are present in Windows\System.....what's wrong? Missing another DLL for the MSFLEXGRID Class ??
0
 
LVL 22

Expert Comment

by:ambience
ID: 7043625
yes perhaps or maybe the FlexGrid dll is present but not registered successfuly.
0
 
LVL 12

Accepted Solution

by:
migel earned 100 total points
ID: 7043814
hmm
you must keep in mind all ActiveX components that your app use and register all appropriate libs in to the target computer by regsvr32 ....
In your case any install builder software can greatly assist you.
0
 

Author Comment

by:pigeonbr
ID: 7044392
thanks...had forgotten to put the control on the target computer and then register it...stupid, but don't do it often enough to remember everything...thanks for the reminder again!
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

705 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now