PDA

View Full Version : writing a VB Component/ActiveX control in C++


daisycutter
03-24-04, 10:06 PM
Does anyone know how I can write a Visual Basic component or function in C++ and then incoporate it in because I am making a file sharing app and I need to use some of my C++ functions.

hyjacked
03-25-04, 06:39 PM
I'm not sure if you can or if it's even possible.

If you are using VB6, then I highly doubt it's possible, unless there is a VB library out there that lets you call C++ functions.

As far as VB.NET goes, it might be more possible, worst case you would need to convert it to C#, which is a lot closer to C++ than VB is.

Best of luck, if you make any progress be sure to post back for the rest of us.

daisycutter
03-25-04, 08:24 PM
I dont me making some code and then putting it in VB I mean making a control or DLL and then using it in your project in the way you would include a reference or component, I know this is possible.

hyjacked
04-13-04, 12:42 PM
I'm guessing that there is a function or command that allows you to export it as a dll, then you woud link it in as you would any other.

I'm not sure how to do it exactly though since I've never done it before.