Assembly version from command line?

This is an area where PowerShell shines. If you don’t already have it, install it. It’s preinstalled with Windows 7. Running this command line: [System.Reflection.Assembly]::LoadFrom(“C:\full\path\to\YourDllName.dll”).GetName().Version outputs this: Major Minor Build Revision —– —– —– ——– 3 0 8 0 Note that LoadFrom returns an assembly object, so you can do pretty much anything you like. … Read more

What does registering a DLL do?

When a DLL is registered, the DllRegisterServer method entry point in your DLL is invoked. Similarly, DllUnregisterServer is invoked when a DLL is unregistered. As described in this MSDN article: Instructs an in-process server to create its registry entries for all classes supported in this server module. If this function fails, the state of the … Read more

Merging dlls into a single .exe with wpf

http://www.digitallycreated.net/Blog/61/combining-multiple-assemblies-into-a-single-exe-for-a-wpf-application This worked like a charm for me 🙂 and its completely free. Adding code in case the blog ever disappears. 1) Add this to your .csproj file: <Target Name=”AfterResolveReferences”> <ItemGroup> <EmbeddedResource Include=”@(ReferenceCopyLocalPaths)” Condition=”‘%(ReferenceCopyLocalPaths.Extension)’ == ‘.dll'”> <LogicalName>%(ReferenceCopyLocalPaths.DestinationSubDirectory)%(ReferenceCopyLocalPaths.Filename)%(ReferenceCopyLocalPaths.Extension)</LogicalName> </EmbeddedResource> </ItemGroup> </Target> 2) Make your Main Program.cs look like this: [STAThreadAttribute] public static void Main() { AppDomain.CurrentDomain.AssemblyResolve … Read more

What’s the differences between .dll , .lib, .h files?

.h: header file, its a source file containing declarations (as opposed to .cpp, .cxx, etc. containing implementations), .lib: static library may contain code or just links to a dynamic library. Either way it’s compiled code that you link with your program. The static library is included in your .exe at link time. .dll: dynamic library. … Read more

know if .lib is static or import

Use the lib command. If it’s static, lib will show you a pile of .obj files inside. Not so if it’s an implib. lib /list foo.lib will do it. Also see: https://learn.microsoft.com/en-us/cpp/build/reference/managing-a-library

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