Is there a way to convert VB forms to VC?

  • Thread starter Thread starter Marc Reinig
  • Start date Start date
M

Marc Reinig

I have a program written in Visual Studio 2003 Visual Basic. I would like
to move it to Visual C++. Is there an automated or relatively automated way
of doing that, or do I need to recreate all the windows by hand?

Thanks in advance,

Marco
 
Thanks for the response.

This seems to convert to from VB to C#, which I have never used. What is
the relation between C# and C++?

Thanks again,

Marco
 
c# is older version
c++ is better than c# but faster than c#.
better use vc.net
 
Marc Reinig said:
I have a program written in Visual Studio 2003 Visual Basic. I would like
to move it to Visual C++.

/Why?/
 
I have code written in VB.NET and Code written in C. I need to consilidate
the projects into individual projects. I would like to have a project that
is relatively self contained rather than part written in VB and part written
in C (DLL's). Some of the C code also needs to be used in other OS's that
don't support VB.

--
Marco
________________________
Marc Reinig
UCO/Lick Observatory
Laboratory for Adaptive Optics
 
* Marc Reinig:
[top-posting]

Don't top-post.
I have code written in VB.NET and Code written in C. I need to consilidate
the projects into individual projects. I would like to have a project that
is relatively self contained rather than part written in VB and part written
in C (DLL's). Some of the C code also needs to be used in other OS's that
don't support VB.

If the code is well-structured then you can use it directly from Managed
C++.

What is the problem?
 
what is really the most annoying thing on usenet??? people complaining about
how someone else tries to help! top post, bottom post, interleaved post,
all are great as long as they contribute to the thread.

now of course i should write that the most really annoying thing is people
complaining about people complaining... but i'll leave that to your
imagination.

Alf P. Steinbach said:
* Marc Reinig:
[top-posting]

Don't top-post.
I have code written in VB.NET and Code written in C. I need to consilidate
the projects into individual projects. I would like to have a project that
is relatively self contained rather than part written in VB and part written
in C (DLL's). Some of the C code also needs to be used in other OS's that
don't support VB.

If the code is well-structured then you can use it directly from Managed
C++.

What is the problem?

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
 
Are you saying that in a single project, I can intermingle C++ and VB using
managed code? I've never dealt with that feature.

Marco
________________________
Marc Reinig
UCO/Lick Observatory
Laboratory for Adaptive Optics
 
Unfortunately Marc, I cannot provide an answer to your question, but ...

Alf P. Steinbach said:
Troll, go away.

Pot ... meet kettle ...

I couldn't resist.
 
* Marc Reinig:
Are you saying that in a single project, I can intermingle C++ and VB using
managed code? I've never dealt with that feature.

You can use Managed C++ classes from VB.NET, and vice versa; I think
you're well aware of that and simply trolling.
 
* Craig:
Unfortunately Marc, I cannot provide an answer to your question, but ...

Then you should not be posting.

Pot ... meet kettle ...

I couldn't resist.

When you can't resist the urge of namecalling it usually means you have
low self-esteem. Sometimes there are other reasons, typically also of a
personal nature. On what grounds are you calling me "pot" or "kettle"?
 
My last post was not top posted. Seems to me you're an obsessive compulsive
on the topic and are more interested in being the local style police and
calling people trolls than in providing help. If you don't like my posting
style, don't respond.
 
Hi Marco,

We can use the VB.NET code in VC++.NET(managed code).
In fact, after the .NET code has been compiled(whatever VB,NET C#.NET and
so on), they will be compiled into MSIL code which is kind of Assembly
language based on .NET framework, in this level whether it is written with
VB,NET C# or else is not important as long as they are managed code.

But unmanaged code(e.g. pure C++) can not access to the managed code
directly, we need expose the mananged code as a COM Server, so that the
unmanaged code can access it as COM. But we still need .NET framework
support to run the manged code as a COM server.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
c++ is better than c# but faster than c#.
better use vc.net

Older version? What are you talking about?

C# is a managed language like VB.NET. It has all the features of VB.NET and
a couple of extras (VB.NET will probably get those extra features next
version around).

C++ on the other hand is an unmanaged language (but there is a C++ Managed
version too) which you to write native code from VS.NET.

VB.NET, C#.NET, etc all the .NET languages compile to an intermediatary
language for the .NET runtime... so theoretically writing for C++ should be
faster and often is.

The drawback? C++ is more difficult to write for and you need to becareful
in regards to garbage collection, memory access, etc, because all of these
features are no handled by C++ and you must do it yourself.
 
(e-mail address removed) (Alf P. Steinbach) wrote in @news.individual.net:
Some of the C code also needs to be used in other OS's that

If the code is well-structured then you can use it directly from Managed
C++.

What is the problem?

But managed C++ only runs on Windows doesn't it? What happens if he wants
to compile for Linux or Solaris?
 
(e-mail address removed) ("Peter Huang") wrote in
But unmanaged code(e.g. pure C++) can not access to the managed code
directly, we need expose the mananged code as a COM Server, so that the
unmanaged code can access it as COM. But we still need .NET framework
support to run the manged code as a COM server.

Can't you use the DECLARE FUNCTION command in VB to tap into Windows DLLs?
While not as nice as a COM server, wouldn't this save you some time?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top