Windows DLLs should be working.
zao at acc.umu.se
Mon Jan 11 00:40:12 EST 2010
On Mon, Jan 11, 2010 at 05:31:58AM +0000, Andrew Suffield wrote:
> On Mon, Jan 11, 2010 at 05:31:46AM +0100, Lars Viklund wrote:
> > > If you want to get this working with COM, then building an assembly
> > > out of the DLLs is probably mandatory. So that's looking like the way
> > > to go.
> > If memory serves me right, you can register a COM DLL anywhere on the
> > system, it's just that modern DLLs tend to be placed SxS.
> What we're (hypothetically) dealing with here is a COM component
> calling code from these non-COM DLLs. I'm not sure you can expect that
> to work right without wrapping everything in assemblies to express the
> dependency. Documentation on this appears to be sparse.
> > SxS is not inherently tied to any technology like COM or .NET. You can
> > trivially deploy anything into SxS.
> Handy to know; I wasn't sure about that one, never having tried it.
> > Also, do not forget people who do not have administrative priviledges.
> > If it turns out it's impossible to install a private GHC into a
> > directory you have rights to, I would consider that a major regression.
> Well, it's not a regression if you don't get dynamically-linked binary
> support in that mode, since that's never worked before. There's no
> reason why static linking wouldn't continue to work. I'm not sure if
> there is any sensible way to dynamically link binaries in this
> scenario (I can't think of one). It may be a "Windows doesn't do this"
> The intersection of the sets "people who don't have administrator
> privileges on this machine" and "people who want to compile
> dynamically-linked binaries of things written in Haskell on this
> machine" may be empty.
For building, it's not a major problem.
I'm wondering about the implications for deploying running applications built
against a dynamic Haskell.
As long as deploying privately (copy to application directory) works,
that would be sufficient.
In that case, having the versions explicitly in the filenames would be
beneficial to avoid picking up the wrong version of the RTS DLLs from a
carelessly set %PATH%.
Lars Viklund | zao at acc.umu.se | 070-310 47 07
More information about the Cvs-ghc