Why doesn’t Edit and Continue work on the x64 CLR?

Edit and Continue requires that the compiler patches a running executable. This is typically done by replacing all altered functions. Obviously, the JITted versions thereof have to be discarded as well, and callers adjusted to possibly new locations. This isn’t especially difficult for x64, probably about as hard as on x86. But unlike x86, this … Read more

Using Wix to create 32bit and 64bit installers from one .wxs file

Rather than conditionally including the opening Directory elements (which invalidates the XML), conditionally set preprocessor variables which are used as directory names, as @Daniel Pratt’s comment refers to. Similarly, having a “yes/no” variable conditioned on platform makes it easy to set up 64 bit components, registry searches, etc. Defining the variables (From this answer) <?if … Read more

What is the size of float and double in C and C++? [duplicate]

Excerpt from the C99 standard, normative annex F (The C++-standard does not explicitly mention this annex, though it includes all affected functions without change per reference. Also, the types have to match for compatibility.): IEC 60559 floating-point arithmetic F.1 Introduction 1 This annex specifies C language support for the IEC 60559 floating-point standard. The IEC … Read more

What is the purpose of setting the platform target for a Visual Studio application?

if I set this value to x86 does that mean I cannot run that project on a x64 machine? No, 32-bit applications (x86) run just fine on 64-bit Windows (x64). All 64-bit versions of Windows include a 32-bit compatibility layer called Windows on Windows 64 (WOW64). This is usually what you want, in fact, as … Read more

“Isolate” specific Row/Column/Diagonal from a 64-bit number

Here’s a solution with only 4 main steps: const uint64_t column_mask = 0x8080808080808080ull; const uint64_t magic = 0x2040810204081ull; int get_col(uint64_t board, int col) { uint64_t column = (board << col) & column_mask; column *= magic; return (column >> 56) & 0xff; } It works like this: the board is shifted to align the column with … Read more

How to make Visual Studio use the native amd64 toolchain

There is another method of forcing use of the 64-bit linker on a per-project basis for Visual Studio 2013. Edit your .vcxproj file and insert the following after the <Import…Microsoft.Cpp.Defaults line: <Import Project=”$(VCTargetsPath)\Microsoft.Cpp.Default.props” /> <PropertyGroup> <PreferredToolArchitecture>x64</PreferredToolArchitecture> </PropertyGroup>

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