Says missing DLL but I am not missing it.

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
mondomunchies
Newbie
Newbie
Posts: 2
Joined: Sat Nov 15, 2008 4:07 pm

Says missing DLL but I am not missing it.

Post by mondomunchies »

I am trying to run a program that needs MFC42.DLL. I downloaded the dll from a site and put it in the system32 folder, but it still did not recognize it. I changed the permissions to be more lenient but that did not help either. So I found and used

winetricks vcrun6 mfc42

After doing this I made a terrible mistake. To make sure that it really added MFC42.dll and was not still the file I downloaded from the internet I decided to delete MFC42.dll and rerun winetricks. But winetricks said that vcrun6 and mfc42 were already installed so they did nothing.

Now I have no MFC42.DLL and I'm afraid my program would not recognize it if I did have one.

What do I do?!? Thanks.
mondomunchies
Newbie
Newbie
Posts: 2
Joined: Sat Nov 15, 2008 4:07 pm

Post by mondomunchies »

This was the error I got

err:module:import_dll Library MFC42.DLL (which is needed by L"Z:\\home\\ross\\.wine\\drive_c\\Program Files\\Program_Folder\\T4CLauncher.dll") not found
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

Did you cd to the directory where the exe is located before trying to run it?

http://wiki.winehq.org/FAQ#head-3b297df ... b8edc21619
walt

Says missing DLL but I am not missing it.

Post by walt »

mondomunchies wrote:
I am trying to run a program that needs MFC42.DLL. I downloaded the
dll from a site and put it in the system32 folder, but it still did
not recognize it. I changed the permissions to be more lenient but
that did not help either. So I found and used

winetricks vcrun6 mfc42

After doing this I made a terrible mistake. To make sure that it
really added MFC42.dll and was not still the file I downloaded from
the internet I decided to delete MFC42.dll and rerun winetricks. But
winetricks said that vcrun6 and mfc42 were already installed so they
did nothing.

What do I do?!? Thanks.
Just guessing, but try:
wine regsvr32 /u MFC42.DLL
That should unregister the file and then winetricks may reinstall it.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Says missing DLL but I am not missing it.

Post by vitamin »

mondomunchies wrote: err:module:import_dll Library MFC42.DLL (which is needed by L"Z:\\home\\ross\\.wine\\drive_c\\Program Files\\Program_Folder\\T4CLauncher.dll") not found
Either 'cd' into directory with program, use 'start /unix' to start it or copy that dll into system32.
walt wrote: Just guessing, but try:
wine regsvr32 /u MFC42.DLL
No, that dll does hot register itself.
James McKenzie

Says missing DLL but I am not missing it.

Post by James McKenzie »

mondomunchies wrote:
This was the error I got

err:module:import_dll Library MFC42.DLL (which is needed by L"Z:\\home\\ross\\.wine\\drive_c\\Program Files\\Program_Folder\\T4CLauncher.dll") not found

I know that Vitamin has stated to copy MFC42.dll into the system32
directory, but you may also need to copy it into the program directory
as well. Some Windows programs ship with this file included with them
and expect to find it in the product installation directory. Sadly,
Wine cannot and should not fix this.

James McKenzie
Locked