A reference to WinSparkle.dll could not be added. Please make sure
that the file is accessible, and that it is a valid assembly or COM
component.
Is it possible to use WinSparkle from a .NET application?
Adam
On Tue, 2010-03-02 at 09:52 -0800, adam wrote:
> Is it possible to use WinSparkle from a .NET application?
Yes, although so far in theory only. WinSparkle.dll itself is not an
assembly (yet -- see http://winsparkle.org/ticket/7), you have to use it
through P/Invoke. The API is still very simple, so you shouldn't have
any trouble here.
BTW, any C# bindings code, or even hearing back from you about how it
went, would be most welcome...
Regards,
Vaclav
On Mar 2, 1:12 pm, Vaclav Slavik <vsla...@fastmail.fm> wrote:
> Hi,
>
> On Tue, 2010-03-02 at 09:52 -0800, adam wrote:
> > Is it possible to use WinSparkle from a .NET application?
>
> Yes, although so far in theory only. WinSparkle.dll itself is not an
> assembly (yet -- seehttp://winsparkle.org/ticket/7), you have to use it
> through P/Invoke. The API is still very simple, so you shouldn't have
> any trouble here.
>
> BTW, any C# bindings code, or even hearing back from you about how it
> went, would be most welcome...
>
> Regards,
> Vaclav
>
> signature.asc
> < 1KViewDownload
Curious: So why didn't you?
thanks,
Vaclav
Because there was no immediate way to get started with .NET, and my
quick cost-benefit analysis told me that it would be faster to throw
together my own code rather than learn how to use P/Invoke on the
WinSparkle dll. I believe my analysis was correct, though I think I
would have gotten a nicer solution with WinSparkle.
Adam
--
Founder, langolab.com
ad...@langolab.com
312-375-9879
Skype: aduston
On Tue, 2010-03-09 at 13:56 -0500, Adam Duston wrote:
> Because there was no immediate way to get started with .NET, and my
> quick cost-benefit analysis told me that it would be faster to throw
> together my own code rather than learn how to use P/Invoke on the
> WinSparkle dll.
I see. Sorry, I assumed it's simple enough, otherwise I'd have given you
an example:
using System;
using System.Runtime.InteropServices;
class WinSparkle
{
[DllImport("WinSparkle.dll")]
public static extern void win_sparkle_init();
[DllImport("WinSparkle.dll")]
public static extern void win_sparkle_cleanup();
}
Anyway, there will be proper .NET wrapper in 0.2.
Regards,
Vaclav
Please send a notification when this is out and I'll take a look and
possibly switch over to it.
Adam
> signature.asc
> < 1KViewDownload
Is it possible to use WinSparkle from a .NET application?