Questions tagged [managed-code]

Term defined by Microsoft designing code executed under the management of a Common Language Runtime virtual machine.

58 questions
3
votes
0 answers

Which languages compile to CIL / MSIL

Most of the lists I have seen comprise: C# VB.Net Other .NET language What languages fall into the "Other" category? I've come across: Delphi C++ Cobol.Net Chrome I'm sure there must be others?
rbrayb
  • 46,440
  • 34
  • 114
  • 174
3
votes
6 answers

Why don't managed languages offer the ability to manually delete objects?

Lets say you want to write a high performance method which processes a large data set. Why shouldn't developers have the ability to turn on manual memory management instead of being forced to move to C or C++? void Process() { unmanaged { …
2
votes
1 answer

managed and unmanaged

if a .net dll contains both managed and unmanaged code , how does the code will be converted to CIL and how CLR allocate and manages the memory
Raghav
  • 43
  • 3
2
votes
2 answers

XLA vs COM vs Automation vs Managed-Code Add-in

I need your help in deciding the best strategy and technology to choose from for the continuing development of a successful in-house VBA application. In our company (a web-based distributor of financial information), over the years, we have…
FACamargo
  • 154
  • 9
2
votes
1 answer

Debugging managed code: Viewing return value

On Win32, with unmanaged code, the return value is usually stored in the EAX register. This is useful when the program doesn't save the return value in a variable. This can easily be seen in the Visual Studio debugger. Is there an equivalent for…
Aamir
  • 14,882
  • 6
  • 45
  • 69
2
votes
2 answers

Is there a native .NET method or equivalent to user32.dll's GetKeyboardState?

ANSWER: There isn't a natively managed equivalent for this method. However, a good example managed code API can be found over at pinvoke.net. Hi all I have an application that accepts a flag for 'trace mode'. Trace mode turns on a form containing a…
Daniel Schealler
  • 390
  • 1
  • 16
2
votes
1 answer

Converting Luabind to C#?

Has anybody tried converting Luabind to C#? Is such a thing even possible? I've got an application that I want to convert so that it can run in a completely managed environment, but most of the game logic relies upon Lua scripts, and the…
themarshal
  • 1,056
  • 1
  • 11
  • 20
2
votes
1 answer

How do I avoid the loader lock?

We have a managed app, that uses an assembly. That assembly uses some unmanaged C++ code. The Managed C++ code is in a dll, that depends on several other dlls. All of those Dlls are loaded by this code. (We load all the dll's that ImageCore.dll…
boatcoder
  • 17,525
  • 18
  • 114
  • 178
2
votes
1 answer

Export c++ functions inside a C# Application

Greetings, I am sorry for bothering, I'll show the question: I am trying to export some functions written in c++ in a DLL in order to import them in a C# Application running on Visual Studio. I make the export as reported in the following…
Ricibald
  • 9,369
  • 7
  • 47
  • 62
2
votes
4 answers

How do I check if my solution has unmanaged code?

We have a number of people working on a project. Is there any tool that will scan and check my entire solution if it has any unmanaged code or non-typesafe code ? The objective is to host the entire solution with completely managed code, find the…
this. __curious_geek
  • 42,787
  • 22
  • 113
  • 137
1
vote
3 answers

Tree Structures

What are the benefits or advantages to using a tree structure in a managed language or framework over flat structures provided by said language or framework, aka .NET, and are there any libraries for such a structure?
CodeMonkey1313
  • 15,717
  • 17
  • 76
  • 109
1
vote
1 answer

Is managed code is the only way to use SMO in c++?

I have to work with SQLSERVER SMO in C++. Is Managed code is the only way to work with SQLSERVER SMO in C++ ? I have tried many ways.. but I found that using managed code is the only option. Are there other ways?
ravikiran
1
vote
0 answers

Is managed code generated after compilation?

NOTE: Just want to clarify if my current understanding is correct after I came across a MSDN doc which seems to contradicts another MSDN doc. Also I have already been through the following links - Is C# unsafe code managed? What is difference…
phougatv
  • 881
  • 2
  • 12
  • 29
1
vote
1 answer

Debugging tool for managed code

I am new to C# and wondering whether "windbg" or "Visual Studio Debugger" would be better tool for debugging managed code? For the past couple of years, I have been doing development in C++ and I am comfortable in using windbg as compared to Visual…
bayCoder
  • 1,345
  • 1
  • 11
  • 19
1
vote
0 answers

Display General tab information of property window of local disks in my computer

I need to access the type of disk and display it in the C# code. In this image " Local Disk Image" the type is local disk. In this image "Cluster Disk Image" the type of disk is cluster disk. I have used driveInfo class to get the drive details. but…