Sometimes windows 10 taskbar failed to draw the application icon. ie4uinit.exe can fix it. Create the following batch file and run it. REM @echo off set "UTIL=%SystemRoot%\System32\ie4uinit.exe" IF NOT EXIST %UTIL% ( set "UTIL=%SystemRoot%\Sysnative\ie4uinit.exe" ) %UTIL% -ClearIconCache %UTIL% -showREM @echo off set "UTIL=%SystemRoot%\System32\ie4uinit.exe" IF NOT EXIST %UTIL% ( set "UTIL=%SystemRoot%\Sysnative\ie4uinit.exe" ) %UTIL% -ClearIconCache… Continue reading Refresh the taskbar of Windows 10
Differences of Command prompt of Visual Studio
There are many kind of shortcuts of command prompt of Visual Studio. Basically the differences are the setting of Host and Target. Host refers to the compiler or linker of which 64bit or 32bit is chosen. Target refers to the resultant exe or dll which is targeted 64bit or 32bit. Developer Command Prompt for VS… Continue reading Differences of Command prompt of Visual Studio
Build ffmpeg-debug with Windows10 64bit
Install msys2 Install the 64bit msys2. I downloaded msys2-x86_64-20161025.exe and installed it on C:\local\msys64. Install necessary tools Run msys2-64 and install tools as follows. $ pacman -S make pkg-config diffutils $ pacman -S mingw-w64-x86_64-yasm mingw-w64-x86_64-gcc mingw-w64-x86_64-SDL$ pacman -S make pkg-config diffutils $ pacman -S mingw-w64-x86_64-yasm mingw-w64-x86_64-gcc mingw-w64-x86_64-SDL Install git and obtain source files $ pacman… Continue reading Build ffmpeg-debug with Windows10 64bit
.NET4 installation fails on XP PosReady
It needs WIC.
LoadLibrary(jvm.dll) fails even if the file exists
It needs an appropriate C++ runtime library to load jvm.dll. Install VC++ 20XX Redistributable.
VMWare : Netwoking of Guest OS is not available after restoring
Stopping network related service will fix it. C:\WINDOWS\system32>net stop bits The Background Intelligent Transfer Service service is stopping.. The Background Intelligent Transfer Service service was stopped successfully. C:\WINDOWS\system32>net stop wuauserv The Background Intelligent Transfer Service service is stopping.. The Background Intelligent Transfer Service service was stopped successfully. C:\WINDOWS\system32>C:\WINDOWS\system32>net stop bits The… Continue reading VMWare : Netwoking of Guest OS is not available after restoring
MessageBox is not shown after Dialog was closed in MFC Dialog Application
In Win32, you can not show MessageBox after calling PostQuitMessage() until calling GetMessage to get out of message loop. In MFC dialog app, the dialog is set to m_pMainWnd and when dialog is closed, PostQuitMessage is called. If you want to show MessageBox after the dialog closed, there is two method to do this. Method… Continue reading MessageBox is not shown after Dialog was closed in MFC Dialog Application
error MSB8020: The build tools for v120 (Platform Toolset = ‘v120’) cannot be found.
Usually you can fix this error by changing tool-set VS uses. But if the Solution includes a reference which uses old too-set, It also fails. Check your reference setting.
Check whether a file is open or not in Win32
There is no easy way to check file is open. I write simple code to check it but it still has problems. Like thread, it is not sure the file is actually open or not at the function returns because file is global resource, any other processes can open or close at any moment. This… Continue reading Check whether a file is open or not in Win32
qmake tutrial failed with “QPushButton: No such file or directory”
Add following line at the top of your hello.pro. QT += widgetsQT += widgets