From rdparker at gmail.com Sun Apr 15 20:18:53 2012 From: rdparker at gmail.com (Ron Parker) Date: Sun, 15 Apr 2012 15:18:53 -0500 Subject: [rdnzl-devel] .NET Picture Viewer in RDNZL Message-ID: I've posted a RDNZL port of the .NET Picture Viewer tutorial on github, https://github.com/rdparker/cl-picture-viewer. This was mostly a learning experience for me but I thought it might come in handy for others. It's neither great Lisp nor highly informed .NET code, but it is a complete application. Basically I worked through the C# demo, then peered into the code and hand translated it to what is in the repo. But now I have an idea of how to approach creating a .NET interface for a personal research project. In the course of writing this a couple questions arose. 1. Is there anyway to call BeginInit on a PictureBox without resorting to C++? Attempting [BeginInit (cast picture-box "ISupportInitialize")] results in a cast error similar to the IConvertible message referred to in http://lists.common-lisp.net/pipermail/rdnzl-devel/2007-April/000390.html. 2. Is it possible to override random method in .NET object via RDNZL? As an example in the C# code there is an implementation of Dispose, which I was uncertain if I needed to or how to duplicate it: protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } Edi thank you for writing RDNZL. It has already saved me a lot of time. I'd looked into the managed-unmanaged C++ interop bits of .NET and was not looking forward to writing it all myself. Thanks, Ron Parker From edi at agharta.de Tue Apr 17 11:29:34 2012 From: edi at agharta.de (Edi Weitz) Date: Tue, 17 Apr 2012 13:29:34 +0200 Subject: [rdnzl-devel] .NET Picture Viewer in RDNZL In-Reply-To: References: Message-ID: Ron, thanks for the info and the link. Good to hear that RDNZL is useful to you. I'm afraid that due to my new job I'm not able to work on RDNZL anymore and in fact there weren't any significant updates in eons because I never used it in earnest. I'm rather surprised that it still works at all after all the .NET updates that came after I initially wrote it. Maybe it'd be a good idea if someone else took over maintenance of RDNZL like Hans did for Hunchentoot and other libs of mine. Cheers, Edi. On Sun, Apr 15, 2012 at 10:18 PM, Ron Parker wrote: > I've posted a RDNZL port of the .NET Picture Viewer tutorial on > github, https://github.com/rdparker/cl-picture-viewer. This was mostly > a learning experience for me but I thought it might come in handy for > others. It's neither great Lisp nor highly informed .NET code, but it > is a complete application. > > Basically I worked through the C# demo, then peered into the code and > hand translated it to what is in the repo. But now I have an idea of > how to approach creating a .NET interface for ?a personal research > project. > > In the course of writing this a couple questions arose. > > 1. Is there anyway to call BeginInit on a PictureBox without resorting to C++? > > Attempting [BeginInit (cast picture-box "ISupportInitialize")] results > in a cast error similar to the IConvertible message referred to in > http://lists.common-lisp.net/pipermail/rdnzl-devel/2007-April/000390.html. > > 2. Is it possible to override random method in .NET object via RDNZL? > > As an example in the C# code there is an implementation of Dispose, > which I was uncertain if I needed to or how to duplicate it: > > protected override void Dispose(bool disposing) > { > ?if (disposing && (components != null)) > ? ?{ > ? ? ?components.Dispose(); > ? ?} > ?base.Dispose(disposing); > } > > Edi thank you for writing RDNZL. It has already saved me a lot of > time. I'd looked into the managed-unmanaged C++ interop bits of .NET > and was not looking forward to writing it all myself. > > Thanks, > > Ron Parker > > _______________________________________________ > rdnzl-devel mailing list > rdnzl-devel at common-lisp.net > http://lists.common-lisp.net/cgi-bin/mailman/listinfo/rdnzl-devel > From BConnoy at morrisonhershfield.com Thu Apr 19 13:43:20 2012 From: BConnoy at morrisonhershfield.com (Brian Connoy) Date: Thu, 19 Apr 2012 13:43:20 +0000 Subject: [rdnzl-devel] Generic Methods patch Message-ID: As Edi recently notes, he is unavailable to maintain RDNZL. A few days ago I received from LispWorks a possible RDNZL patch pertaining to Generic Methods. I've not the aptitude to have prepared it myself, nor the time now to thoroughly test it. As LispWorks states, "The Generic Method lookup is currently written in Lisp, which means that it allocates quite a lot. If that becomes a problem, then it could be rewritten in C++ for further support incident(s) and added to the RDNZL.dll (built from rdnzl-cpp)." I'd consider it my small contribution to the Lisp community to offer this patch and pay LispWorks for a C++ rewrite, if necessary. But I need to turn to the rest of you for testing and eventual patching of RDNZL. I'd otherwise pass this along to the RDNZL maintainer ... but they have yet to appoint themself. ;^) For now I suppose the patch could be emailed to those of you interested in trying it out. You are welcome to contact me. Cheers, Brian Connoy -------------- next part -------------- An HTML attachment was scrubbed... URL: