473,396 Members | 1,917 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,396 software developers and data experts.

managed & unmanaged question

Hi, I'm writing a research simulation program and would like to write it in
c++. It should be as fast as possible and am not sure if it makes a
difference to use managed or unmanaged code. I will have to use it on more
than one computer but most of the time I will be using my own computer.
If, unmanaged code is faster, than what would I have to do to switch
between managed and unmanaged code? Can I just change a simple setting on
the new Microsoft Visual Studio? or would I just have to change the way I
declare variables? I'm not vary familiar with managed code.
thanks
dave
Jul 22 '05 #1
2 1317
In article <U-********************@comcast.com>,
Dave <da*********@hotmail.com> wrote:
Hi, I'm writing a research simulation program and would like to write it in
c++. It should be as fast as possible and am not sure if it makes a
difference to use managed or unmanaged code.


I've never heard of "managed code" in the context of standard C++. A
Google search leads me to believe that it might be a Microsoft thing, in
which case you'd be better off asking about it in one of the
microsoft.public.vc.* or comp.os.ms-windows.programmer.* groups.

--
Jon Bell <jt*******@presby.edu> Presbyterian College
Dept. of Physics and Computer Science Clinton, South Carolina USA
Jul 22 '05 #2
Dave <da*********@hotmail.com> wrote in message
news:U-********************@comcast.com...
Hi, I'm writing a research simulation program and would like to write it in c++. It should be as fast as possible and am not sure if it makes a
difference to use managed or unmanaged code. I will have to use it on more than one computer but most of the time I will be using my own computer.
If, unmanaged code is faster, than what would I have to do to switch
between managed and unmanaged code? Can I just change a simple setting on
the new Microsoft Visual Studio? or would I just have to change the way I
declare variables? I'm not vary familiar with managed code.
thanks
dave

First of all, follow what Jon said.

After saying that, here's what I thought...and it's just my opinion.

Since your goal is doing simulation for research, you better off use any
language which is familiar to you. If you are familiar with C++, then use
C++; if C, then use C. Both should be fast enough for your purpose.

You don't need to switch between managed and unmanaged code since such a
switching always comes with a performance pernality. In Visual Studio .NET,
you can use either VB, C# if its speed satisfies your requirement.
Otherwise, use C++. As you know, use C++ in VS.NET, you can write managed
or unmanaged code as you wish.

Since you doing simulation, it must have lots of calculation instead of GUI
stuff, I assume about this. If this is the case, you may stay in C or C++.
If you do need lots graphic stuff, find some library of graphics.

You said "I will have to use it on more than one computer but most of the
time I will be using my own computer." Do you mean it will run
simultaneously on several computers? Do they need to communicate with each
other? Or will it just runs on computers of different OS? If it's the
latter case write the code and make sure it is portable across platforms.
Start from small and focus on one platform (your own computer) first.

Again, you goal is not mastering a new programming language but use it as a
tool for research. Thus, make sure the process of reaching the goal is
least-resistant. By saying that I mean using whichever language with which
you are familiar and comfortable, and it is fast enough for you.

Hope this help a bit.
Jul 22 '05 #3

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

Similar topics

1
by: Eric Twietmeyer | last post by:
Hello, I'm starting to investigate cs, managed c++ and interoperating with a very large unmanaged code base. We are going to use Windows Forms (written in cs) to replace our old fashioned GUI. ...
5
by: Chris Kiechel | last post by:
I am writing a .NET Windows application and it needs to perform DDE calls to a legacy system. I created a C++ unmanaged class that performs the actual DDE connection and communication. However,...
0
by: Johannes Unfried | last post by:
Problem Best practice needed to marshal STL data from managed code to unmanaged code & vice vers Details managed code is written in managed C++ & accesses the unmanaged code (i.e. lives in a...
4
by: repstat | last post by:
Hi I have a project which is going to be doing some string manipulation which needs to be pretty fast. The user interface is going to be written in C#. I am going to write the string handling...
3
by: zhphust | last post by:
I want to convert a object of a managed class to a unmanaged structure that has the same member with that managed class. Can anybody tell me how i can do it? Thanks in advance. -- zhphust...
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...
9
by: Amit Dedhia | last post by:
Hi All I have a VC++ 2005 MFC application with all classes defined as unmanaged classes. I want to write my application data in xml format. Since ADO.NET has buit in functions available for...
25
by: Koliber (js) | last post by:
sorry for my not perfect english i am really f&*ckin angry in this common pattern about dispose: ////////////////////////////////////////////////////////// Public class...
8
by: Varangian | last post by:
Hello, was wondering of how to dispose of managed resources? or referencing every member of a class to null will release resources...? http://www.marcclifton.com/tabid/79/Default.aspx...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.