473,385 Members | 1,311 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

VC .net vs C++ code

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
May 29 '07 #1
2 1546
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
May 29 '07 #2

"Allen Maki" <al*******@sbcglobal.netwrote in message
news:Y0******************@newssvr25.news.prodigy.n et...
>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
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


May 29 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

51
by: Mudge | last post by:
Please, someone, tell me why OO in PHP is better than procedural.
9
by: bigoxygen | last post by:
Hi. I'm using a 3 tier FrontController Design for my web application right now. The problem is that I'm finding to have to duplicate a lot of code for similar functions; for example, listing...
4
by: jason | last post by:
Hello. Newbie on SQL and suffering through this. I have two tables created as such: drop table table1; go drop table table2; go
16
by: Dario de Judicibus | last post by:
I'm getting crazy. Look at this code: #include <string.h> #include <stdio.h> #include <iostream.h> using namespace std ; char ini_code = {0xFF, 0xFE} ; char line_sep = {0x20, 0x28} ;
109
by: Andrew Thompson | last post by:
It seems most people get there JS off web sites, which is entirely logical. But it is also a great pity since most of that code is of such poor quality. I was looking through the JS FAQ for any...
5
by: ED | last post by:
I currently have vba code that ranks employees based on their average job time ordered by their region, zone, and job code. I currently have vba code that will cycle through a query and ranks each...
0
by: Namratha Shah \(Nasha\) | last post by:
Hey Guys, Today we are going to look at Code Access Security. Code access security is a feature of .NET that manages code depending on its trust level. If the CLS trusts the code enough to...
18
by: Joe Fallon | last post by:
I have some complex logic which is fairly simply to build up into a string. I needed a way to Eval this string and return a Boolean result. This code works fine to achieve that goal. My...
37
by: Alan Silver | last post by:
Hello, Newbie here, so please forgive what is probably a basic question ... I see a lot of discussion about "code behind", which if I have understood correctly, means that the script code goes...
171
by: tshad | last post by:
I am just trying to decide whether to split my code and uses code behind. I did it with one of my pages and found it was quite a bit of trouble. I know that most people (and books and articles)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.