<br><br><div><span class="gmail_quote">On 12/12/06, <b class="gmail_sendername">Daniel Amelang</b> &lt;<a href="mailto:daniel.amelang@gmail.com">daniel.amelang@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 12/12/06, Jelmer Baas &lt;<a href="mailto:Baas@speerit.nl">Baas@speerit.nl</a>&gt; wrote:<br>&gt; Hello List,<br>&gt;<br>&gt;<br>&gt; For a CAD-like program made in Visual Basic, I'm looking for an object<br>&gt; which allows me to draw lines very quickly. After reading about Cairo, I
<br>&gt; got interested.<br><br>That's great, it's always good to see cairo getting used in more<br>applications. Having said that, if you're looking for the fastest way<br>to draw lines in VB, cairo may not be what you're looking for. Sure,
<br>it can draw lines quickly (and likely fast enough for your purposes),<br>but the focus here is on a lot more than that. And that &quot;a lot more&quot;<br>is probably going to interest you also.<br><br>&gt; Would there be any way to use the objects in VB? I can't register the
<br>&gt; DLLs and can't use the LIBs, so I have no idea where to start ...<br>&gt;<br>&gt; If you help me get started, I will translate the include files to VB and<br>&gt; post them so that Cairo can ship them, too. (Perhaps with a simple
<br>&gt; example?)<br><br>Out of curiousity, where did you get the cairo dll? Here?<br><br><a href="http://www.gimp.org/~tml/gimp/win32/downloads.html">http://www.gimp.org/~tml/gimp/win32/downloads.html</a><br><br>Notice that what you get from the above link isn't an ActiveX dll,
<br>which is what VB needs to interface with cairo nicely. The cairo dll<br>just has plain old C functions, so you can either interface with it<br>like you would the Win32 API (declare each function/structure you use<br>etc), or you can go through the effort of creating a ActiveX DLL that
<br>wraps cairo's functionality in nice COM objects. To do that last<br>approach would require quite a bit of work, but the result would be<br>pretty cool, and I think you'd make a number of windows developers<br>happy.<br>
<br>Now, if you downloaded the mono cairo dll (useful for <a href="http://VB.NET">VB.NET</a><br>programming) described here:<br><br><a href="http://www.mono-project.com/Drawing">http://www.mono-project.com/Drawing</a><br>
<br>that's another story. You'll have to take it up with the mono guys on<br>the gtk-sharp list, as only they really know what they did.</blockquote><div><br>Note that the Mono.Cairo.dll could be used by regular VB via COM Interop if you register the assembly with regasm (
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cpgrfAssemblyRegistrationToolRegasmexe.asp">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cpgrfAssemblyRegistrationToolRegasmexe.asp
</a>). I haven't tried this personally but I see no reason why it wouldn't work.<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt; If anything needs to be changed in the current code of Cairo, I don't<br>&gt; believe it's much work, right?<br><br>No, nothing should have to change within cairo.<br><br>Dan<br>_______________________________________________
<br>cairo mailing list<br><a href="mailto:cairo@cairographics.org">cairo@cairographics.org</a><br><a href="http://cairographics.org/cgi-bin/mailman/listinfo/cairo">http://cairographics.org/cgi-bin/mailman/listinfo/cairo</a>
</blockquote><div><br>- Jonathan <br></div><br></div><br>