I managed to get it working with the following code:<div><br></div><div><div>using(SWMgr mgr = new SWMgr())</div><div>using(SWModule module = mgr.getModule("ESV"))</div><div>using(SWKey key = new SWKey("jas 1:18"))</div>
<div>{</div><div> module.setKey(key);</div><div> Console.WriteLine (module.RenderText());</div><div>}</div><div><br></div><div>I wouldn't go as far as to say that I have working c# bindings, I only have a very small subset working. I was planning on publishing what I have on bitbucket under GPL3.</div>
<div><br></div><div>I must confess that as a C# developer I have no understanding of how to use make or how to integrate what I have with the rest of your repository and build system.</div><br><div class="gmail_quote">On Sun, Aug 12, 2012 at 4:22 AM, Peter von Kaehne <span dir="ltr"><<a href="mailto:refdoc@gmx.net" target="_blank">refdoc@gmx.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Sat, 2012-08-11 at 20:25 +1200, Daniel Hughes wrote:<br>
<br>
> I'm trying to use sword from c#. I have used swig to generate a<br>
> wrapper for just enough of sword to open a module and render some<br>
> text.<br>
<br>
</div>If you have working C# bindings, could you update the existing ones?<br>
There is a not totally infrequent question on this mailing list for<br>
those.<br>
<br>
That aside, I second the other response. No need to go into the details<br>
of module construction, if you use SWMgr.<br>
<span class="HOEnZb"><font color="#888888"><br>
Peter<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
_______________________________________________<br>
sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a><br>
<a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>
Instructions to unsubscribe/change your settings at above page<br>
</div></div></blockquote></div><br></div>