Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / May 2007

Tip: Looking for answers? Try searching our database.

VC .net vs C++ code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Allen Maki - 29 May 2007 05:31 GMT
I would be pleased if someone gives me a general idea; how I am going to do
this.  I am using visual  C++ .NET 2003.

I made a simple program using conventional C++ code.  This program accepts
data from the user, does some calculations and outputs the result back to
the user using the console.

Now, I want to use the .NET Framework to interact with the user through
Forms, Dialog Boxes and Controls.

I managed to create all the forms that I need to interact with the user and
they work very well together.  But, now I want to use the first program that
I made from conventional C++ with .NET Framework.  In other words I want the
user to input data (through Forms and controls) and then I want to
manipulate the data mathematically (using the conventional C++ code) and out
put the result (through other Forms and controls).

So my question is how can I use the conventional C++ code with the managed
code and which file(s) am I going to use?  For example, I have the following
files:-

References:

..

..

Source Files:

AssemblyInfo.cpp

Form1.cpp

Form2.cpp

Form3.cpp

Stdafx.cpp

Header Files:

Form1.h

Form2.h

Form3.h

Resource.h

Stdafx.h

Resource Files:

..

..

..

ReadMe.txt

Allen
Jochen Kalmbach [MVP] - 29 May 2007 06:56 GMT
Hi Allen!

> So my question is how can I use the conventional C++ code with the managed
> code

The easiest way is to just add your "normal" c++ files to your
windows-forms project and call the function which will do the calculation.

Greetings
  Jochen
Ben Voigt - 29 May 2007 14:52 GMT
>I would be pleased if someone gives me a general idea; how I am going to do
>this.  I am using visual  C++ .NET 2003.

Don't.  The free express edition of VC++ 2005 is to be preferred over the
full version of 2003, and VC++ 2005 Pro is a quantum leap over 2003, any
edition.

> I made a simple program using conventional C++ code.  This program accepts
> data from the user, does some calculations and outputs the result back to
[quoted text clipped - 55 lines]
>
> Allen

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.