managed

Create Native DLL

I'm C# programmer, and don't introduce with Native. I have a Native DLL, & I'v to use that in my project, but cause some of types are impracticable in Managed code. I'll to prepare a DLL in Native(C++), and I want when an event occure, then aware my Managed Code; How can I do that? ...

Screen scraping a mainframe screen in C# *without* 3rd Party Utilities

I'm looking to screen scrape a 3270 mainframe application in C#, but I've got to do so without Attachmate or other 3rd party plugins. Are there free managed libraries to do so in C#? ...

managed application crashes if is default shell in windows enbedded standard

Hi I changed explorer for a custom managed application in a windows embedded standard , but it crashes , it runs ok if i start it after running explorer as a shell but fails if it is the default shell. any ideas? thanks ...

Changes not allowed when unmanaged debugging is enabled?

I get the error changes not allowed when unmanaged debugging is enabled Actually I get the below message but Google doesn't return many results changes are not allowed when unmanaged debugging is enabled What does this mean? How do I fix it? Note this is an ASP.NET project. Checkmarking Edit and Continue does not make this e...

Equivalent code in managed C++ & C# (Events in VB6)

In VB6 events created in an ActiveX component were stated like this: Public Event ProcessingComplete() and called in that ActiveX component like: RaiseEvent ProcessingComplete I am creating a managed C++ DLL that I want to do the same thing with. It doesnt look like delegates are exactly what I want. I think the more appropriate it...

Unmanaged memory and Managed memory

what exactly these unmanaged and managed memory is? can anybody explain me in brief? ...

Loader lock (regsvr32 R6033 error) with managed C++ dll

I have a C++ dll which implements several COM interfaces, that I'm trying to migrate to managed C++. I set the /clr compiler flag and changed the Runtime Library property from /MT to /MD to avoid the conflict between these two flags, but that's all I've changed. When it attempts to register the dll during the build process, I get the f...

Memory usage of DotNET app

My application (DotNET) runs as a plug-in inside a C++ standalone app that exposes a C++/CLI SDK. It is very easy for my users to generate large amounts of data and I'd like to offer an abort option if the memory consumption of my plug-in + the base application reaches -say- 90% of the legal maximum. How can I measure the total memory ...

Class Not Registered.... when trying to call a managed C# library from unmanaged C++

Hey everyone, I have a C# library that I am using for a COM object in unmanaged C++ code. I registered the library using Visual Studio's checkbox "Register For Com Interop" and set ComVisible to true. imported the tlb to the C++ app..... when I run it, I get a "Class Not Registered".... This has worked before, but this started happen...

Lightweight x86 Emulator for .NET / Executing x86 code in a managed environment

Our company is migrating its entire product line from a C++ codebase to the .NET Framework. We have a very large codebase, and this migration is being done incrementally over the course of many years. We would like to enjoy some of the benefits of pure managed code, such as Silverlight, but there are many legacy C++/x86 modules that wi...

Using WinDbg/SOS to debug managed->native callstack. I get "Failed to request ThreadStore"

MyManagedFunc in managed.exe calls into MyUnmanagedFunc() in unmanaged.dll. I produce a minidump in unmanaged.dll using Win32. SetUnhandledExceptionFilter. I can see MyUnmanagedFunc in the callstack, but nothing usefull in the managed side. I'm supposed to be able to use WinDbg and SOS.dll to see the managed calls, right? Below is ...

How do I change the lookup path for .NET libraries referenced via #using in Managed C++?

I developed a DLL in Managed C++ which loads some plugins (implemented in any .NET language) at runtime using System.Reflection.Assembly.LoadFile. The interface which is implemented by all plugins is implemented in C#. It's used by the Managed C++ code like this: #using <IMyPluginInterface.dll> // Make the 'IMyPluginInterface' type ava...

Avoid loading .Net Dlls in a C++/CLI project?

I have a project written in C++/CLI. Some of the types there are in managed code, and some are in completely native code. Let's say I have the produced DLL on a machine that dosen't have any version of the .Net framework installed, is there a way that another, native application will link with my "mixed-mode" Dll and use only the native ...

How can I remote debug on another workgroup machine?

I have used the "Attach to process" function within VS 2008 many times, but never actually on a remote machine. Now I have to do it and I already read a bunch about it on the net. After playing around a bit I've reached a point where I am not quite sure how to proceed. First of all, here's a quick list of what I've done so far: Test mac...

C# delegate with string reference to c++ callback

I wrote a C# application that uses an unmanaged c++ dll via managed c++ dll. In the unmanaged dll, there's a callback that one of its params is std::string &. I can't seem to find the right way to wrap this with the managed dll. When I use String ^, the callback works, but the C# application does not get anything in the string. When I u...

DirectX managed or unmanaged?

I need basic information about DirectX. Is it a managed API or Unmanaged? Can someone provide me some link etc. explaining this? ...

C++/CLI : Casting from unmanaged enum to managed enum

What is the correct way of casting (in C++/CLI) from a native code enum to a managed code enum which contain the same enum values? Is there any difference with using the C# way of casting like for example (int) in C++/CLI. ...

Why does a .NET File.Delete() fail with UAC and requireAdministrator=True?

This is a driving me nuts. I have searched all over StackOverflow and read all about UAC. But I'm still running into a problem. Using VS 2008, I have a simple program that does nothing but this: File.Delete("c:\windows\fonts\whatever.ttf") The EXE has a proper manifest with requireAdministrator=True. When compiled, the app icon recei...

Best method of calling managed code(c#) from unmanaged C++

Hello, We have developed a s/w architecture consisting of set of objects developed in C#. They make extensive use of events to notify the client of changes in status, etc. The intention originally was to allow legacy code to use these managed objects through COM interop services. That was easy to write in the design specification b...

C++/CLI managed thread cleanup

Hi. I'm writing a managed C++/CLI library wrapper for the MySQL embedded server. The mysql C library requires me to call mysql_thread_init() for every thread that will be using it, and mysql_thread_end() for each thread that exits after using it. Debugging any given VB.Net project I can see at least seven threads; I suppose my library w...