managed-code

Remote debugging accross domains

I have two machines in two different domanins. On both I have VS 2005 installed. I want remote debug between them. Without autentication it is possible but I want to debug managed code. I don't want to debug directly since it is really crappy machine. When I try to attach wiht debugger I get message "The trust relationship between this ...

What exactly is "managed" code?

I've been writing C / C++ code for almost twenty years, and I know perl, python, php, and some java as well, and I'm teaching myself javascript. But I've never done any .NET, VB, or C# stuff. What exactly does "managed" code mean? Wikipedia describes it simply as "code that executes under the management of a virtual machine", and it spec...

Invoke Blue Screen of Death using Managed Code

Just curious here: is it possible to invoke a Windows Blue Screen of Death using .net managed code under Windows XP/Vista? And if it is possible, what could the example code be? Just for the record, this is not for any malicious purpose, I am just wondering what kind of code it would take to actually kill the operating system as specifi...

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 managed code? ...

What advantages are there to developing a Win32 app in C++ over a .NET app in C#?

I learned windows programming using Visual C++, and the Win32 API. Nowadays, it seems most apps are being developed in .NET using C#. I understand that most of the time there isn't much performance difference between native code and managed code. So I'm wondering, if I were to start writing a new desktop app today, is there any reason (o...

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? ...

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? ...

Why wasn't code "managed" from the start?

Note that this is not about the .NET CLR that Microsoft is thrusting into the atmosphere to evangelize the concept of managed code. Most of you know that managed code has been around for quite some time and isn't very related to rocket science. What I would like to know is why the concept of runtime security in the evolution of computer...

Why does C++ need language modifications to be "managed"?

Why can't a compiler be written that manages what needs to be managed in C++ code (i.e. to make it "CLR compatible")? Maybe with some compromise, like prohibiting void pointers in some situations etc. But all these extra keywords etc. What's the problem that has to be solved by these additions? I have my thoughts about some aspects and...

Convert IntPtr to int* in C#?

I have a C++ DLL returning an int* to a C# program. The problem is the int* in C# remains null after the assignment. When I assign the C++ result to an IntPtr, I get a correct non-null value. However any attempt to convert this to an int* results in null. I've tried: IntPtr intp = cppFunction (); // Non-null. int* pi = (i...

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? ...

Creating a bounding box for windows mobile camera

I am trying to creating a bounding box for a windows mobile device application.I honestly have no idea where to start looking. I am currently using the CameraCaptureDialog Class to capture images , do i need to override the class to implement this ? ...

How do I check if my solution has unmanaged code ?

Hi, 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 loopholes and fix them to be type-safe and managed code. What are the common loophole...

Are there any managed programming languages that compile to machine code?

Managed languages being the ones that handle memory cleanup for you. EDIT I'm not talking about garbage collection. I was just interested in knowing about languages that would free() memory for me automatically, and still compile down to machine code. ...

Managed code in WinPE

If I want to run a program in windows PE (Vista or 7) am I not allowed to use any level of managed code? Can I only have c++ code that doesn't reference any dotNet code? How can I interact with windows? Do I have to use user32.dll type files to carry out various operations? ...

Deploy unsafe sql server 2005 assembly to production

Hey, I'm new to SQL Server development and I need to deploy an unsafe UDF assembly to a 2005 server. I'm using C# and VS2008. I need to know what are the steps that i need to take to allow smooth deployment of unsafe assembly to the client's machine - the client's DBA is a very strict fellow so i need to satisfy him with a good reasons f...

Check managed assembly version on an SQL Server database

Hello, I need to find out the version of an assembly deployed to an SQL Server database. I need to do it via script or other programmatic way to know if i need to redeploy the assembly. Any ideas? Thanks. ...

The speed of .NET in numerical computing

In my experience, .net is 2 to 3 times slower than native code. (I implemented L-BFGS for multivariate optimization). I have traced the ads on stackoverflow to http://www.centerspace.net/products/ the speed is really amazing, the speed is close to native code. How can they do that? They said that: Q. Is NMath "pure" .NET? A. The ans...

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 { Byte[] buffer; while (true) { buffer = new Byte[10240...

My application is unmanaged. Where do I start introducing managed code?

My whole application (which is rather big, with a 20MB executable) is written in unmanaged C++. Because I can clearly see the advantages in using managed code, I want to start introducing managed code in my application, but where do I start? Can I easily start to use C++/CLI and link it with the rest of my application? (although the C++...