Skip to main content

Posts

Export the code section of a DLL or EXE to a file

How to export the code section of a DLL or EXE to a file using dumpbin. Open Developer Command Prompt for VS 2019 Export disassembly for a DLL, like c:\> dumpbin /disasm mydll.dll > mydll.asm References: https://docs.microsoft.com/en-us/cpp/build/reference/disasm?view=msvc-160 http://ntcoder.com/bab/2007/06/06/disassembling-a-dll-or-exe/

Visual Studio Code is tearing on VMware Workstation

 VSCode (1.52.1) on VMware Workstation 14 is tearing its windows. Below shows the right side of VSCode is tearing and it can be really bad - all the text are not readable. As a workaround do: $: code . --disable-gpu    Reference: https://github.com/microsoft/vscode/issues/15211

There were some problems installing updates, but we'll try again later. If you keep seeing this and want to search the web or contact support for information, this may help: (0x8024000e)

 Got the error below while trying to update Windows 10 (1607).  There were some problems installing updates, but we'll try again later. If you keep seeing this and want to search the web or contact support for information, this may help: (0x8024000e) This can be caused by low memory condition for example if you only have 4GB. As a workaround enable automatic virtual memory management  (Automatically manage paging file size for all drives), see below.   This can also be caused by corrupted distribution files, fix by doing the following: c:\> net stop wuauserv c:\> net stop cryptSvc c:\> net stop bits c:\> net stop msiserver c:\> Ren C:\Windows\SoftwareDistribution SoftwareDistribution.old c:\> Ren C:\Windows\System32\catroot2 Catroot2.old c:\> net start wuauserv c:\> net start cryptSvc c:\> net start bits c:\> net start msiserver

error : Your project does not reference ".NETFramework,Version=v4.7.2" framework

I am trying to have a solution/project that can be built using Visual Studio 2019, MonoDevelop and dotnet. Building the project using mono (msbuild project.csproj) after building using dotnet I am getting the error message below.     Build started 1/3/2021 1:41:21 AM. Project "/home/u1/gitprj/mopcua/MonoOPC/opcuac/opcuac.csproj" on node 1 (default targets). /usr/lib/mono/xbuild/Microsoft/NuGet/Microsoft.NuGet.targets(186,5): error : Your project does not reference ".NETFramework,Version=v4.7.2" framework. Add a reference to ".NETFramework,Version=v4.7.2" in th$  "TargetFrameworks" property of your project file and then re-run NuGet restore. [/home/u1/gitprj/mopcua/MonoOPC/opcuac/opcuac.csproj] Done Building Project "/home/u1/gitprj/mopcua/MonoOPC/opcuac/opcuac.csproj" (default targets) -- FAILED. Build FAILED. "/home/u1/gitprj/mopcua/MonoOPC/opcuac/opcuac.csproj" (default target) (1) -> (ResolveNuGetPackageAssets target) -&

iftop shows qqqq under tmux

 Running iftop in tmux shows qqqq for the border, like below. To fix this do: $: sudo TERM=xterm iftop

DotNet - Manage solution file

Create new solution, the name will be derived from the containing folder - in this case it will be called tmp.sln u1@m1:~/tmp$ dotnet new sln Create new solution with the given name, in this case it is called test.sln u1@m1:~/tmp$ dotnet new sln --name test Add project myprj to test.sln u1@m1:~/tmp$ dotnet sln test.sln add myprj/myprj.csproj