managed

How do I find the source of a “A procedure imported by 'xxx.dll' could not be loaded.” exception?

只谈情不闲聊 提交于 2019-12-22 07:27:09
问题 I have been chasing this exception for the past week. Situation is: I have an application that is written in C# and built in Visual Studio 2010. The application includes a DLL that is a wrapper of an unmanaged code library. The unmanaged code is written in C++ and built in Visual Studio 2008. This is required because the code references additional libraries (Qt) and that code targets WinCE version 5 (necessary due to devices supported in the field). I have tried many of the suggestions I have

Is it possible to call unmanaged code using C# reflection from managed code?

廉价感情. 提交于 2019-12-22 07:05:43
问题 Is it possible using reflection and C# .NET to call dynamicly different function (with arguments) written in C or C++ before .NET came(unmanaged code) ? And smole C# example if possible would be appreciated! Thanks! Br, Milan. 回答1: Yes, dynamic P/Invoke is possible in .NET using Marshal.GetDelegateForFunctionPointer . See the following sample taken from the section Delegates and unmanaged function pointers from the article Writing C# 2.0 Unsafe Code by Patrick Smacchia: using System; using

Catching EngineExecutionException

左心房为你撑大大i 提交于 2019-12-21 17:51:47
问题 I have an application containing both managed and native code. The application currently has an unhandled exception filter, set via SetUnhandledExceptionFilter, which catches any critical errors, generates a minidump, records various application parameters, and exits the program. The unhandled exception handler does not catch an EngineExecutionException which occurs in the .NET runtime. We suspect the problem is memory corruption caused by the native portion of the application. The problem is

Screen scraping a mainframe screen in C# *without* 3rd-party utilities

我怕爱的太早我们不能终老 提交于 2019-12-20 02:35:25
问题 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#? 回答1: http://www.elink.ibmlink.ibm.com/publications/servlet/pbi.wss?CTY=US&FNC=SRX&PBL=GA23-0059-07 This is the document you are looking for if you plan on doing all of the heavy lifting yourself. It doesn't print out well but is the best source of information on the protocol. I am about to embark on this road

How do I show Error Message using Managed Custom Actions with Windows Installer

大憨熊 提交于 2019-12-19 05:45:04
问题 I am writing a managed custom action. I am using the DTF Framework from Windows Installer Xml to wrap the managed dll into a usable CA dll. The CA does what it is supposed to, but I am still having trouble with error handling: Dim record As New Record(1) ' Field 0 intentionally left blank ' Field 1 contains error number record(1) = 27533 session.Message(InstallMessage.Error, record) The above code produces the following text shown in the MSI log: MSI (c) (C4 ! C6) [13:15:08:749]: Product:

Value Class in C++/CLI

ε祈祈猫儿з 提交于 2019-12-18 15:09:16
问题 What are the benifits of using a value class in C++/CLI.Can the value class contain member functions? 回答1: a value class is a ValueType - that means, whenever you assign it to another variable of the same type, the whole object gets copied into the other variable, leaving you with two separate copies. Examples of this are basic numeric data types like int , bool or double . ValueTypes are sealed, which means you cannot derive from them. A ref class is a reference type - if you assign it to

Oracle Managed ODP.NET can't find tnsnames.ora

て烟熏妆下的殇ゞ 提交于 2019-12-18 13:37:13
问题 My managed ODP.net webapp works locally but when deploying it to a server, it fails with the error: "TNS:listener does not currently know of service requested in connect descriptor" From looking around, it seems like this is because it can't get to the tnsnames.ora file. I have tried the following with no success: Placing a tnsnames.ora file (the same one that works locally) into an [oracle home][product]...\network\admin folder. Setting a TNS_ADMIN setting in the Managed ODP's web.config

Managed version of Spy++ Tool?

半世苍凉 提交于 2019-12-18 12:09:40
问题 Awhile ago, I needed a Spy++ like application for some .NET UI debugging. I found an old MSDN article with a sample that does things similarly, But that stopped working in newer .NET Framework versions. Does anyone know of/wrote an application that mimics Spy++ behavior and works on Managed applications (rather, shows Managed events/properties) and works on newer .NET Frameworks, up to 4.0? 回答1: I can recommend UISpy, a spy utility which uses the UI Automation framework to transparently spy

Managed version of Spy++ Tool?

萝らか妹 提交于 2019-12-18 12:09:14
问题 Awhile ago, I needed a Spy++ like application for some .NET UI debugging. I found an old MSDN article with a sample that does things similarly, But that stopped working in newer .NET Framework versions. Does anyone know of/wrote an application that mimics Spy++ behavior and works on Managed applications (rather, shows Managed events/properties) and works on newer .NET Frameworks, up to 4.0? 回答1: I can recommend UISpy, a spy utility which uses the UI Automation framework to transparently spy

@ManagedProperty(value = “#{param.id}”) in a non-request Scope Bean

被刻印的时光 ゝ 提交于 2019-12-18 10:14:23
问题 I need to pass a parameter (POST) to a @managedBean, I used managed properties like this: @ManagedProperty(value = "#{param.id}") private int id; And the scope of the Bean is ViewScope I end up with this error: Unable to create managed bean receipt. The following problems were found: - The scope of the object referenced by expression #{param.id}, request, is shorter than the referring managed beans scope of view What can I do? arjan take a look: My page: Facelet Title <form method="post"