I tried sending a program I made to my girlfriend and she can't run it. An error pops up saying there's a missing dll. I'm using visual c++ .net and using the mfc stuff, nothing too weird. This seems kinda a noob question, sorry! :-)
I tried sending a program I made to my girlfriend and she can't run it. An error pops up saying there's a missing dll. I'm using visual c++ .net and using the mfc stuff, nothing too weird. This seems kinda a noob question, sorry! :-)
I is impossible to tell you what to do unless you provide some info on the program you sent her. What dll is it she's missing? She may have an older version of windows or something.
msvcp60.dll or something like that... It should be in C:\Windows\System
Programmer's Law:
If your program doesn't work, look for the part that you didn't think was
important.
That's the one Derek. But why doesn't she have it? We both have win xp. What happens if I make a program for a customer and they dont have that file? Do I need to make an install package that always checks for that?
Thanks for help
I think its installed with the compiler. You'll have to give her the .dll too if you want her to be able to run your program.
And I think you'd have to make the dll part of the install file...
Last edited by Derek5272; 05-07-2003 at 10:13 PM.
Programmer's Law:
If your program doesn't work, look for the part that you didn't think was
important.
Look through the projects options. There should be a linkage switch for the MFC. You linked it dynamically, which means it has to be on your target platform. This will only be the case if prior installations put it there, it's not on a normal, blank windows system. If you need to be sure your application runs on systems without MFC preinstalled, link statically.
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.
msvcp60.dll has nothing to do with MFC, it's the dll version of MS's standard C++ library.
Anyway, there should be a tool called "Dependency Viewer" (depends.exe) in the tools directory of Visual Studio. Start it, load your MFC exe file into it and then choose "Profile..." (or something like that). The viewer will start your app and monitor exactly which DLLs your app needs.
Most of those it lists come with windows, but it will give you an idea what you might need to distribute with your app.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
(First post here, hi guys )
Are you giving her the release build of the program ? Because the debug version of those DLLs is not (and shouldn't really) installed by default.
This is for VS 6, but it shouldn't be too different
Project ---> Settings ---> instead of Use MFC in a Shared DLL, change it to Use MFC in a Static Library
the executable will be 1 meg + tho doign it this way.
Send her to windowsupdate.microsoft.com and have her download the .NET framework.
.Net framework doesn't matter for MFC. The only way it could was if he needed the GDI+ dll.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
I was guessing that the .NET framework would include the required DLLs for running anything compiled in VC.NET, including MFC programs.
Unfortunately I haven't had any experience with .NET yet... I took a chance at being wrong, oh well.
No, the .Net framework is only for Managed applications, things compiled from C#, VB.Net or Managed C++ (and the various minor .Net languages).
Everything else VC++ compiles is plain old machine code.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
>>Are you giving her the release build of the program ?
Theres your problem i guarantee it.
I dont quite understand what you mean by release build. I just build it and give her the .exe file.