Using C# dll in C++ code

There are basically two cases to call a .NET DLL from unmanaged code: The .NET DLL exposes a COM interface. In this case, you can use COM from your C++ code. The .NET DLL does not expose a COM interface. In this case, you have two possibilities (to make it simple): 2.a. host the CLR … Read more

Calling a Delphi DLL from a C# .NET application

Based on responses to my post, I have created a new example that uses string buffers for the returned strings, instead of just returning PAnsiChars. Delphi DLL source: library DelphiLibrary; uses SysUtils; // Compiled using Delphi 2007. // NOTE: If your project doesn’t have version information included, you may // receive the error “The “ResolveManifestFiles” … Read more

Application failed to start because it could not find or load the QT platform plugin “windows”

The error is caused because the program can’t find qwindows.dll qwindows.dll has to be in a folder named platforms so that the path from your executable to the dll is platforms/qwindows.dll Whereas this wasn’t enough in my case. I had also to add following line at the beginning of my main() QCoreApplication::addLibraryPath(“./”); Then everything worked.

Why’s My Root Certificate Not Trusted?

On your verify command add in the /pa option to tell it to use the Default Authentication Verification Policy instead of the Windows Driver Verification Policy, meaning it will look at your certificate stores instead of the limited set of CAs Microsoft trusts with drivers. Look here for more options: http://msdn.microsoft.com/en-us/library/8s9b9yaz(v=vs.90).aspx

C# DllImport with C++ boolean function not returning correctly

I found the solution for your problem. Your declaration should be preceded with this marshaling: [return:MarshalAs(UnmanagedType.I1)] so everything should look like this: [DllImport(“Whisper.dll”, EntryPoint=”Exist”, CallingConvention=CallingConvention.Cdecl)] [return:MarshalAs(UnmanagedType.I1)] public static extern bool Exist([MarshalAs(UnmanagedType.LPStr)] string name); I tested it in my very simple example and it worked! EDIT Why this happens? C defines bool as 4 bytes int … Read more

referencing System.Windows.Automation

The UIAutomationClient.dll is located in this folder: C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0 If you can’t find in your Add Reference->.Net tab, then you have to use the Browse tab to go to the given path, and add the assembly (Right Click on the References, choose add reference, click browse tab).

How do I decompile a .dll file?

The answer depends on what language the DLL was written in. If it was a .NET language then, as pointed out, you can use .NET Reflector. If it’s the older Visual Basic (pre-.NET), then the DLL is compiled as what’s called p-code and there are a few options for doing some variations on decompiling. Finally, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)