Home All Groups Group Topic Archive Search About

How can I use these files in VB6?

Author
4 Jul 2009 9:47 PM
Tom Steinmeyer
Hello,

I have a C++ project, but I don't know much C++. I would like to have
the application in VB6 for better understability and debugging. The
project consists of about 10 .dsw files (C++), and they compile to .lib.
Can anybody please tell me if it's possible to use them in VB6, maybe
like a DLL or so?
The project is rather huge, and rewriting it would be an awful lot of work.

Thank you.
Tom

Author
4 Jul 2009 11:07 PM
Ralph
Show quote Hide quote
"Tom Steinmeyer" <t.steinme***@hotmail.com> wrote in message
news:u0cUJGP$JHA.4692@TK2MSFTNGP02.phx.gbl...
> Hello,
>
> I have a C++ project, but I don't know much C++. I would like to have
> the application in VB6 for better understability and debugging. The
> project consists of about 10 .dsw files (C++), and they compile to .lib.
> Can anybody please tell me if it's possible to use them in VB6, maybe
> like a DLL or so?
> The project is rather huge, and rewriting it would be an awful lot of
work.
>
> Thank you.
> Tom

You didn't say what kind of "lib" the project compiles to.

But yes, a VC++ programmer should be able to convert or wrap a ".lib" file
into a regular 'WinAPI' Dll, or an ActiveX component either of which could
be used from a VB application.

-ralph
Author
4 Jul 2009 11:08 PM
dpb
Tom Steinmeyer wrote:
>
> Hello,
>
> I have a C++ project, but I don't know much C++. I would like to have
> the application in VB6 for better understability and debugging. The
> project consists of about 10 .dsw files (C++), and they compile to .lib.
> Can anybody please tell me if it's possible to use them in VB6, maybe
> like a DLL or so?
> The project is rather huge, and rewriting it would be an awful lot of work.

Assuming the code structure is such it would be amenable to be contained
in a DLL, there's no reason you couldn't recast that portion as a DLL,
no.  You would, I think (others can correct me if I'm overstepping my
knowledge of C++ which is undoubtedly even less than yours :) ) have to
build an interface C-style wrapper using stdcall to interface to VB or
do that in the C++ code itself.

Other than that, "piece o' cake"!  :)

--
Author
5 Jul 2009 2:18 AM
Nobody
"Tom Steinmeyer" <t.steinme***@hotmail.com> wrote in message
news:u0cUJGP$JHA.4692@TK2MSFTNGP02.phx.gbl...
> Hello,
>
> I have a C++ project, but I don't know much C++. I would like to have the
> application in VB6 for better understability and debugging. The project
> consists of about 10 .dsw files (C++), and they compile to .lib.
> Can anybody please tell me if it's possible to use them in VB6, maybe like
> a DLL or so?
> The project is rather huge, and rewriting it would be an awful lot of
> work.

Is this an open source project? If so, can you post the link?

What does this project do? Perhaps there is a VB equivalent.

Do you have VC? If so, which version?

Finally, open one of the DSW files with Notepad, and post the version number
which is in the first line.