Re: VB Gui, VC++ core funtionality communication...
John <John@discussions.microsoft.com> wrote:
I have application which have VB GUI and VC++ Core
functionality. In this, they are communicating through files. This is
the main drawback of this application.
How can I avoid this?
Wrap your C++ core in a COM component(s), use these wrappers directly
from the UI. This is probably the path of least resistance.
Can I create threads using VB GUI application? Does VB supports?
Probably, but it's likely to be a pain in the neck at best. Consider
asking in microsoft.public.vb.general.discussion or
microsoft.public.vb.winapi .
Is VC++ supports GUI like VB? (fastness, look & feel,.. etc)
Well, you can definitely write a GUI application in C++. The
architecture is quite different from that of a VB program - if you don't
have any experience with C++ GUI development, prepare for a rather steep
learning curve. Yes, it can be made to look exactly like a VB program,
if that's your goal. As to "fastness", it will perform no slower than a
similar VB program, but it will likely take much longer to write
(depending on your expertise).
Is .NET good than this?
An application written in VB.NET or C# will have no easier time
interacting with native C++ pieces than does classic VB app. If C++ code
is exposed as COM object(s), then both classic VB and .NET apps could
use it equally well.
One option is to write an application in C++/CLI (a dialect of C++ that
compiles into .NET applications). C++/CLI is supposed to allow one to
both a) use WinForms to quickly create GUI applications, and b) interact
easily with legacy C++ code, either by producing a mixed managed/native
assembly, or by compiling old C++ code as managed (which is supposed to
Just Work (TM) most of the time). I haven't tried this myself, and I've
seen conflicting reports on the feasibility of this technique.
If you are interested in going C++/CLI way, consider reading Stan
Lippman's articles in MSDN Mag:
http://msdn.microsoft.com/msdnmag/find/?type=Au&phrase=Stanley%20B.%20Lippman&words=exact
in particular the "Netting C++" series in which he converts a legacy C++
application to C++/CLI.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925