Programming, website development forum Get latest updates by RSS Follow TechnicalTalk on Twitter Follow TechnicalTalk on Facebook 
HomeSearchRecent PostsLoginRegisterContact Us

Username  
Password    
  Forgot your password?  

Pages: [1]   Go Down
 
  Email this topic  |  Print
0 Members and 1 Guest are viewing this topic.

What is Unmanaged code?

 
webmaster forum
Activity
0%
 
New Coder
Posts: 49
Topics: 14
September 15, 2008, 06:28:21 AM

Unmanaged code is the Code that runs outside of the common language runtime; in common terminology, code that does not "target" the .NET runtime. so Visual basic is a unmanaged code.
« Last Edit: July 17, 2010, 09:45:19 AM by Admin »
 
webmaster forum
rajan  Offline
Activity
0%
 
Regular Coder
Gender: Male
Posts: 64
Topics: 20
November 24, 2008, 07:00:37 AM

No Visual Basic is not a unmanaged code. Why do you say that?
« Last Edit: November 24, 2008, 07:02:43 AM by rajan »

http://infos-tech.blogspot.com/
 
webmaster forum
polas  Offline
Activity
33.33%
 
Code Guru
Gender: Male
Posts: 1399
Topics: 85
WWW
November 24, 2008, 07:32:50 AM

Lol, I wouldn't necessarily use that definition for unmanaged code.

It made me laugh calling VB unmanaged code, probably quite true! Wink

Mesham Type Oriented Parallel Programming Language, Free online technical support
 
webmaster forum
singam  Offline
Activity
0%
 
Regular Coder
Posts: 50
Topics: 19
July 17, 2010, 03:52:11 AM

Unfortunately, there isn't a silver bullet for this kind of porting. For example, as you say, in C++ you can pack data structures rather tightly by using such things like nested structures or variable sized structures, yet those aren't doable in managed code. There's no multiple inheritance either, and template capability is limited.

You should first look at how data structures are defined in your C++ code very carefully, and try to map it to C#. If that goes well,porting the behaviors (that is, method/function) should be a relatively easier part.
=================

Noise Cancelling Headphones| SEO Agency



 
webmaster forum
Admin  Offline
*
 
Code Guru
Location: India
Gender: Male
Posts: 1387
Topics: 105
NaviBuster NaviBuster
WWW
July 17, 2010, 09:47:33 AM

I have moved this topic to .Net from VB 6.0 board. We can discuss here about what is unmanaged code is.
 
webmaster forum
Activity
0%
 
Skilled Coder
Posts: 125
Topics: 0
May 22, 2011, 11:49:03 PM

Unmanaged code is an executable program that runs by itself.

Network Management Service
 
webmaster forum
john14317  Offline
Activity
0%
 
Skilled Coder
Posts: 149
Topics: 0
May 30, 2011, 03:43:10 AM

Managed code is a term coined by Microsoft to identify computer program code that requires and will only execute under the "management" of a Common Language Runtime virtual machine (resulting in Bytecode).

payday loans
instant online cash advance
 
webmaster forum
john14317  Offline
Activity
0%
 
Skilled Coder
Posts: 149
Topics: 0
July 07, 2011, 03:39:35 AM

Unmanaged code is the type of code which will not execute in the CLR environment.
Memory management,garbage collection,security of CLR environment do not apply to Unmanaged code.

payday loans
instant online cash advance
 
webmaster forum
Activity
0%
 
Regular Coder
Gender: Male
Age: 24
Posts: 60
Topics: 10
July 11, 2011, 11:43:33 PM

Code that targets the common language runtime, the foundation of the .NET Framework, is known as managed code; code that does not target the common language runtime is known as unmanaged code.
An executable program that runs by itself. Launched from the operating system, the program calls upon and uses the software routines in the operating system, but does not require another software system to be used. Assembly language programs that have been assembled into machine language and C/C++ programs compiled into machine language for a particular platform are examples of unmanaged code. Contrast with managed code.

Payday loan
 
webmaster forum
kellylsn  Offline
Activity
0%
 
Professional Coder
Posts: 229
Topics: 7
July 17, 2011, 11:14:24 PM

Manage code and unmanage code are part of .net.
The manage code which is develop in .net and is directly get executed by CLR. And
the unmanage code which is develop outside of .net framework.

Payday Loan
Online Easy Loans
 
webmaster forum
Activity
0%
 
New Coder
Location: India
Gender: Male
Age: 31
Posts: 19
Topics: 14
WWW
August 11, 2011, 02:53:16 AM



Managed Code

  • The resource, which is with in your application domain is, managed code.  The resources that are within domain are faster.
  • The code, which is developed in . NET framework, is known as managed code.  This code is directly executed by CLR with help of managed code execution.  Any language that is written in . NET Framework is managed code.
  • Managed code uses CLR which in turns looks after your applications by managing memory, handling security, allowing cross - language debugging, and so on.

Unmanaged Code

  • The code, which is developed outside . NET, Framework is known as unmanaged code.
  • Applications that do not run under the control of the CLR are said to be unmanaged, and certain languages such as C++ can be used to write such applications, which, for example, access low - level functions of the operating system.  Background compatibility with code of VB, ASP and COM are examples of unmanaged code.
  • Unmanaged code can be unmanaged source code and unmanaged compile code.
  • Unmanaged code is executed with help of wrapper classes.
  • Wrapper classes are of two types: CCW (COM Callable Wrapper) and RCW (Runtime Callable Wrapper).
  • Wrapper is used to cover difference with the help of CCW and RCW.
« Last Edit: August 12, 2011, 05:49:32 AM by Admin »
 
webmaster forum
dianna  Offline
Activity
0%
 
Regular Coder
Posts: 88
Topics: 10
WWW
August 11, 2011, 04:35:23 AM

Unmanaged code is the good old C++ with no CLR support, therefore unmanaged code does not have a garbage collector and you will have to keep track of all your memory allocations to avoid memory leaks. Also when you build an unmanaged project in Visual Studio, the resulting library or executable is written directly on machine code, therefore it doesn't need the .NET Framework to run.

The managed C++ has CLR support and its code is written in an extension of the C++ language called C++/CLI, this extension allows you to use the Garbage Collector and the .NET Framework classes.

Also when you build a managed project in Visual Studio, the resulting library or executable is written in CLR code (which is then translated to machine code by the CLR), therefore it needs the .NET Framework to run.

Usually you can choose to write managed or unmanaged C++ code when you create a Visual Studio project, but you can also add or remove CLR support from your project whenever you wish.

Finally if you choose to use unmanaged code (and are using Visual Studio 2005 or above), keep in mind that when you distribute your application you will also need to include the Visual C++ Redistributable Package, otherwise your application will not work (this is not required if you intend to run your application on a computer that already has Visual Studio installed).

Pakistan's Local Search engine
 
webmaster forum
Andrew09  Offline
Activity
0%
 
New Coder
Posts: 36
Topics: 4
September 26, 2011, 02:27:54 AM

Unmanaged code is what you use to make before Visual Studio .NET 2002 was released.  Visual Basic 6, Visual C++ 6, heck, even that 15-year old C compiler you may still have kicking around on your hard drive all produced unmanaged code.  It compiled directly to machine code that ran on the machine where you compiled it—and on other machines as long as they had the same chip, or nearly the same.  It didn't get services such as security or memory management from an invisible runtime; it got them from the operating system. And importantly, it got them from the operating system explicitly, by asking for them, usually by calling an API provided in the Windows SDK.  More recent unmanaged applications got operating system services through COM calls. Unlike the other Microsoft languages in Visual Studio, Visual C++ can create unmanaged applications.  When you create a project and select an application type whose name starts with MFC, ATL, or Win32, you're creating an unmanaged
application.

This can lead to some confusion: When you create a . Managed C++ application. , the build product is an assembly of IL with an . exe extension.  When you create an MFC application, the build product is a Windows executable file of native code, also with an . exe extension.  The internal layout of the two files is utterly different.  You can use the Intermediate Language Disassembler, ildasm, to look inside an assembly and see the metadata and IL.  Try pointing ildasm at an unmanaged exe and you'll be told it has no valid CLR (Common Language Runtime) header and can't be disassembled—Same extension, completely different files.
« Last Edit: September 26, 2011, 09:58:39 PM by Admin »

web site development services | Web development company | reputation management 
 
webmaster forum
Activity
100%
 
Regular Coder
Posts: 77
Topics: 0
January 05, 2012, 09:50:32 AM

Unmanaged code is the good old C++ with no CLR support, therefore unmanaged code does not have a garbage collector and you will have to keep track of all your memory allocations to avoid memory leaks.  Also when you build an unmanaged project in Visual Studio, the resulting library or executable is written directly on machine code, therefore it doesn't need the . NET Framework to run.

Yellow Pages of Pakistan
 
webmaster forum
Activity
100%
 
New Coder
Posts: 16
Topics: 0
WWW
January 28, 2012, 03:33:33 AM

Unmanaged code is an executable program that runs by itself.

Mobile Device Management
 
webmaster forum
Andrew26  Offline
Activity
100%
 
New Coder
Gender: Male
Age: 26
Posts: 15
Topics: 0
WWW
January 28, 2012, 04:29:43 AM

Unmanaged code can be unmanaged source code and unmanaged compile code.
Unmanaged code is executed with help of wrapper classes.
Wrapper classes are of two types: CCW (COM Callable Wrapper) and RCW (Runtime Callable Wrapper).

Wholesale Sunglasses
 
webmaster forum
Ricky26  Offline
Activity
100%
 
New Coder
Posts: 15
Topics: 0
WWW
January 30, 2012, 05:13:51 AM

Unmanaged code is an executable program that runs by itself.

eGo-C
 
  Email this topic  |  Print
Pages: [1]   Go Up
 
Jump to:  



Powered by SMF 1.1.15 | SMF © 2011, Simple Machines


Google visited last this page February 02, 2012, 01:11:39 AM