You are currently browsing the archives for the Uncategorized category


C2678: binary ‘=’: no operator found which takes a left-hand operand of type ‘const XXX’ (or there is no acceptable conversion)

If it lacks a ‘const’, this error occurs.

qmake fails after lrelease failed

Project ERROR: Failed to run: 'lrelease.exe'

In 64bit Windows environment, 64bit and 32bit application have some different properties like the environment variables. You should use 64bit Command Prompt or Explorer to build a project with qmake in 64bit Windows.

Ruby does not run with missing _wfreopen_s

I do not know what causes this. But I upload my own build of ruby built with VC9. This must be run in Windows XP.

https://onedrive.live.com/?id=F0D9DDC561F5CF32%212276&cid=F0D9DDC561F5CF32

Firefox keeps asking to set it as a default browser

Run the following command as normal user and as administrator.

firefox.exe -silent -setDefaultBrowser
uninstall\helper.exe /SetAsDefaultAppGlobal
uninstall\helper.exe /SetAsDefaultAppUser

warning LNK4075: ignoring ‘/EDITANDCONTINUE’ due to ‘/SAFESEH’ specification

When you upgraded your VC++ project to Visual Studio 2013 or later(?), this warning appears. It looks like VS failed to upgrade projects properly.

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='UnicodeDebug|Win32'" Label="Configuration">
    <ConfigurationType>Application</ConfigurationType>
    <PlatformToolset>v120</PlatformToolset>
    <UseOfMfc>Dynamic</UseOfMfc>

    <CharacterSet>Unicode</CharacterSet>
  </PropertyGroup>

It needs to add “<UseDebugLibraries>true</UseDebugLibraries>” to your *.vcxproj file. See the following fixed file. In a Release configuration, it needs to set false of this attribute.

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='UnicodeDebug|Win32'" Label="Configuration">
    <ConfigurationType>Application</ConfigurationType>
    <PlatformToolset>v120</PlatformToolset>
    <UseOfMfc>Dynamic</UseOfMfc>
    <UseDebugLibraries>true</UseDebugLibraries>
    <CharacterSet>Unicode</CharacterSet>
  </PropertyGroup>

BadImageFormatException not handled

This exception occurs when AnyCpu-C# app tries to load X86 assembly in 64bit environment. Change the app configuration to X86 or prepare X64 assembly to load.

Install of VS2017 broke VC#2008 coloader80.dll configuration

Open command prompt with Admin priviledge and do followings.

regsvr32 "%CommonProgramFiles%\Microsoft Shared\VS7Debug\coloader80.dll"

if it fails, do this.

regsvr32 "%CommonProgramFiles(x86)%\Microsoft Shared\VS7Debug\coloader80.dll"

Visual Studio 2017 add a context menu item “Open With Visual Studio” on the shell extension of directory

Remove
HKEY_CLASSES_ROOT\Directory\Background\shell\AnyCode
and
HKEY_CLASSES_ROOT\Directory\shell\AnyCode
from Registry to delete it.

.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.