how to override dll

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
bill lam

how to override dll

Post by bill lam »

I notice that there are some proxy dll inside system32 eg. comctl32.dll, What is
the correct procedure to override it? Is that OK that just to copy my native
comctl32.dll to overwrite that dll and then run winecfg to set the override tab?
And if that proxy dll was overwritten, how to restore to use built-in version?

regards,
Dan Kegel

how to override dll

Post by Dan Kegel »

On Sun, Mar 9, 2008 at 11:57 PM, bill lam <[email protected]> wrote:
I notice that there are some proxy dll inside system32 eg. comctl32.dll, What is
the correct procedure to override it? Is that OK that just to copy my native
comctl32.dll to overwrite that dll and then run winecfg to set the override tab?
Yes, although for that dll you also have to delete the
fake manifest in windows/winsxs for the dll in question.
I encourage you to try using winetricks when possible,
as it gets its dlls straight from microsoft.com, and handles
the winsxs detail for you. So:
wget http://kegel.com/wine/winetricks
sh winetricks cc580
But my question is: why override comctl32? What app
are you running, and why does it need native comctl32?
And if that proxy dll was overwritten, how to restore to use built-in version?
Aw, the safest way is to blow away the .wine directory
and reinstall your apps. That's what I do.
- Dan
bill lam

how to override dll

Post by bill lam »

Dan Kegel wrote:
But my question is: why override comctl32? What app
are you running, and why does it need native comctl32?
I tried but fail to install emeditor, and I don't know if comctl32 matter.

Will winetricks also work if I only had the dll instead of installation package
on disk.
Nghia T Ha

how to override dll

Post by Nghia T Ha »

how do I get out of this mailling????????????????




bill lam <[email protected]>
Sent by: <[email protected]>
03/10/2008 04:01 AM

To
Dan Kegel <[email protected]>
cc
<[email protected]>
Subject
Re: [Wine] how to override dll






Dan Kegel wrote:
But my question is: why override comctl32? What app
are you running, and why does it need native comctl32?
I tried but fail to install emeditor, and I don't know if comctl32 matter.

Will winetricks also work if I only had the dll instead of installation
package
on disk.


________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service._______________________________________________________________



This electronic message contains information from NewPage
Corporation or subsidiary companies, which may be confidential,
privileged or otherwise protected from disclosure. The
information is intended to be used solely by the recipient(s)
named. If you are not an intended recipient, be aware that
any review, disclosure, copying, distribution or use of this
transmission or its contents is prohibited. If you have
received this transmission in error, please notify NewPage
immediately at [email protected].
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-us ... chment.htm
Alan McKinnon

how to override dll

Post by Alan McKinnon »

On Monday 10 March 2008, Nghia T Ha wrote:
how do I get out of this mailling????????????????
Do you mean how do you unsubscribe from the mailing list?

Like all sane mailing list programs, mailman provides headers that tell
you exactly how to do it, and a sane mail client should provide this
functionality easily, like on the right click menu. You use
Thunderbird, I dunno how that one does it.

The headers are these (included in every mail sent from wine-users):

Precedence: list
List-Id: Wine Users Mailing List <wine-users.winehq.org>
List-Unsubscribe: <http://www.winehq.org/mailman/listinfo/wine-users>,
<mailto:[email protected]?subject=unsubscribe>
List-Archive: <http://www.winehq.org/pipermail/wine-users>
List-Post: <mailto:[email protected]>
List-Help: <mailto:[email protected]?subject=help>
List-Subscribe: <http://www.winehq.org/mailman/listinfo/wine-users>,
<mailto:[email protected]?subject=subscribe>


Just send a blank mail to the unsubscribe address, or visit the URL
provided.

--
Alan McKinnon
alan dot mckinnon at gmail dot com
bill lam

how to override dll

Post by bill lam »

Dan Kegel wrote:
Aw, the safest way is to blow away the .wine directory
and reinstall your apps. That's what I do.
What will the effect if the fake dll is overwritten but then I set the dll other
than native or remove it from library override tab in winecfg? I see winecfg
does not give any warning message.
Dan Kegel

how to override dll

Post by Dan Kegel »

On Mon, Mar 10, 2008 at 7:48 AM, bill lam <[email protected]> wrote:
Dan Kegel wrote:
Aw, the safest way is to blow away the .wine directory
and reinstall your apps. That's what I do.
What will the effect if the fake dll is overwritten but then I set the dll other
than native or remove it from library override tab in winecfg?
The builtin DLL is usually used in that case, as you would expect.
There are two details that can interfere:
1) if the Wine DLL is written to defer to the Windows one,
then the only way to avoid using the Wine one is to delete
the Windows one. (And then some apps that expect a file
there will miss the fake one Wine used to have before you
overwrote it.)
2) If the Wine DLL had an sxs manifest, you'll need to restore
that. The only one this happens for now is comctl32.
- Dan
bill lam

how to override dll

Post by bill lam »

Dan Kegel wrote:
the Windows one. (And then some apps that expect a file
there will miss the fake one Wine used to have before you
overwrote it.)
In what circumstance (or what api called) will it need a fake dll in system32?

regards,
Dan Kegel

how to override dll

Post by Dan Kegel »

On Mon, Mar 10, 2008 at 8:16 AM, bill lam <[email protected]> wrote:
Dan Kegel wrote:
the Windows one. (And then some apps that expect a file
there will miss the fake one Wine used to have before you
overwrote it.)
In what circumstance (or what api called) will it need a fake dll in system32?
If the app explicitly looks for the file, e.g. by doing CreateFile
or FindFirstFile on it.
bill lam

how to override dll

Post by bill lam »

Dan Kegel wrote:
If the app explicitly looks for the file, e.g. by doing CreateFile
or FindFirstFile on it.
Thanks for explanation.

regards,
Locked