Sign in to follow this  
Followers 0

Looking for a vector component (OCX)

7 posts in this topic

Posted

I'm creating a CNC solution in VB.6, and I'm looking for a low-priced vector component (OCX). Any suggestions? :)

Share this post


Link to post
Share on other sites

Posted

Maybe, just maybe, you can create your own. :)

I tried to not be dependant on non-standard controls when I was playing with VB6. I wrote my own, which resulted in more coding for me but less unused code. The final product was lighter.

Share this post


Link to post
Share on other sites

Posted

You mean a mathematical vector library?

Share this post


Link to post
Share on other sites

Posted

I don't see why you need an ocx, which is mostly used for components that interface with the user (GUI), I think you mean a normal COM dll ;). Anyway, a vector library is very easy to implement yourself, most vector libraries are part of much bigger libraries and including them would probably be overkill. The 4 or 5 most used vector operations are like 10 lines to program. Anyway, if it's speed you are looking for it's better to make your own library in C/C++, compile to dll (normal one) and call it from vb. If that is too advanced for you, just program it in vb, but it will be slower.

If you really want to use a fast library and not afraid of all the overhead that comes with it you could use the math library of directx, which has a COM interface.

Share this post


Link to post
Share on other sites

Posted

First of all thank you all for the replies! :)

Creating a vector control by ourselfs it would be really time consuming. We will have to do advanced operations like object snapping, zooming in/out, etc -- it's not just about drawing some lines.. Unfortunately our time frame doesn't allow that. I'm currently trying Avax Vector ActiveX (link)... Does anybody have used it?

Share this post


Link to post
Share on other sites

Posted

I don't think he just means the mathematics, I think he means a whole vector drawing interface?

Share this post


Link to post
Share on other sites

Posted

The normal picturebox control already supports vector drawing via WMF (and GDI), it just sucks at it (Because it's GDI and Visual Basic). If you want high quality drawing you'd want to use GDI+ or something like Cairo/Skia.

GDI+ will be your best bet honestly, although you'll still have to do a bunch of work yourself.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.