473,320 Members | 2,041 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,320 software developers and data experts.

use the conventional C++ code with the managed 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

Thanks.

Allen
May 29 '07 #1
0 1004

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

Similar topics

3
by: Sai Kit Tong | last post by:
I posted for help on legacy code interface 2 days ago. Probably I didn't make it clear in my original mail. I got a couple of answers but none of them address my issues directly (See attached...
0
by: Doru Pacurari | last post by:
Hello everyone, Background information: OS: Win 2000 Server Development environment: Microsoft C++ .NET, version 7.1.3088, BUT code written in conventional C++ Problem:
2
by: asanford | last post by:
We use StackWalk(StackWalk64) from dbghelp.dll to walk our callstacksas needed, using the various Sym* methods (SymGetSymFromAddr, SymGetLineFromAddr) to resolve source file, function name, and...
1
by: Sparhawk | last post by:
Hi, my company is going to migrate a large VC++ application to .NET to make use of Windows Forms (the old class library is not updated any more). We are not planning to migrate the rest of the...
3
by: Thorsten | last post by:
HI I'm a C# developer and unfortunately I have to write now some code in managed and unmanaged C++. In this area I'm Newbie and therefore please forgive me if this is a really simple...
2
by: Mark Goldin | last post by:
I'd like to build a .NET app. that will be a mixture .NET and conventional technologies. Here how I see it. 1. HTML pages are static (predesigned) pages. They use JavaScript to handle user...
88
by: Peter Olcott | last post by:
Cab you write code directly in the Common Intermediate language? I need to optimize a critical real-time function.
0
by: =?Utf-8?B?QU1lcmNlcg==?= | last post by:
..NET suggests but does not enforce a conventional signature for events, namely two parameters 'sender as object' and 'e as XxxEventArgs'. If you deviate from this convention, things work fine,...
3
by: Klaus | last post by:
Hi, I have an existing VC 6 MFC application which communicates asynchronly with a VC 2005 managed code dll. I use an unmanaged base class with virtual functions to access methods in the MFC...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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...

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.