x64

How to perform Xperf callstack capture on 64b OS?

I have installed Xperf performance analyzer from Windows SDK and captured a trace as described in the documentation using following command: xperf -on SysProf -stackwalk profile Still, the stack trace does not contain any callstack data. My platform is Vista 64b. Are there any special settings or tricks needed to capture callstacks o...

How to find if native dll is compiled as x64 or x86?

Hi I want to if native assembly is complied as x64 or x86 from a managed code application (c#). I think it must somewhere in the PE header since the OS loader needs to know this info but I couldn't find it. I prefer of course to do it in managed code but if it necessary I can use native C++. Thanks in advance for any help. ...

Sql Server x64 and x86 Linked Server

I have a Visual FoxPro table that I need to access from Sql Server. In Sql Server x86, I would just create a linked server. Unfortunately, there is no x64 driver for VFP - so Sql Server x64 can't create a linked server to it. So far, I've come up with following options - none of which I'm particularly fond of: Set up an x86 Sql Server...

DirectSound/FFDShow without a Sound Card

I've got an application that uses DirectShow/DirectSound which plays videos and extracts the video/sound. Running it on a server without a soundcard means the audio cannot be grabbed, is there a way around this? I look briefly at Virtual Audio Cable 4 but that doesn't seem to emulate a soundcard over a terminal session.. The tricky part...

How can compiling my application for 64-bit make it faster or better?

I use C#, .NET, VS.NET 2008. Besides being able to address more memory, what are the advantages to compiling my application to 64-bit? Is it going to be faster or smaller? Why? Does it make it more compatible with a x64 system (when compared to a 32-bit application)? ...

Visual Studio "Any CPU" target

I have some confusion related to the .NET platform build options in VS 2008 Does anyone have a clear understanding what does "Any CPU" compilation target is and what sort of files it generates? I examined the output executable of this "Any CPU" build and found that they are (who would not see that coming!) the x86 executables. So, is th...

Recompiling a simple Win32 C++ app for x64

I have a small C++ program for Win32, which has the following WinMain: int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) when trying to compile for x64, I get the following error: error LNK2019: unresolved external...

How do I check if wscript/cscript runs on x64 host OS?

I'm running a VBScript that may run under x64 Windows. I need to read a registry key from the 32-bit part of the registry. For that I use path HKLM\Software\Wow6432Node\xyz instead of HKLM\Software\xyz. How can I check if the script is executed under x64? ...

How to require x86 up the .NET dependency chain when building

We have several projects that use p4.net, a managed DLL, which in turn is dependent on p4dn.dll, a 32-bit unmanaged DLL. This has problems on x64 systems, so I have had to go to each project that uses p4.net and set its processor type to x86. If I understand the problem right, it's that when .NET loads an exe, it checks for a manifest a...

Can't get PHP to work with mySQL on Vista 64

I'm running Vista 64 box, and attempting to setup Joomla using IIS7 (I like Joomla, I want to have some asp.net components on my web site, so that's why I want to use IIS7 and not Apache). It's my first time installing both php and mysql, so it's very possible that I'm doing something obviously wrong... though I think I tried enough diag...

Can a 32bit process access more memory on a 64bit windows OS?

From what I understand, a 32bit process can only access 2GB of memory on 32bit windows without the /3GB switch, and that some of that memory is taken up by the OS for its own diabolical reasons. This seems to mesh with my experiences as we have an app that crashes when it reaches around 1.2 - 1.5 GB of RAM with out of memory exceptions,...

segfault on Win XP x64, doesn't happen on XP x32 - strncpy issue? How to fix?

Hi there, I'm pretty inexperienced using C++, but I'm trying to compile version 2.0.2 of the SBML toolbox for matlab on a 64-bit XP platform. The SBML toolbox depends upon Xerces 2.8 and libsbml 2.3.5. I've been able to build and compile the toolbox on a 32-bit machine, and it works when I test it. However, after rebuilding it on a 64-...

project does not contain a configuration called 'Debug|x64'

Hi, I'm trying to build a C++ project with a build configuration platform of x64. It's on a new machine running a 64 bit Windows Server 2008. When I open the build configuration manager in VS, I can't chose or create the x64 platform and the project gets skipped. When I try to build it with MSBuild I get the error: VCBLD0004: Project 'M...

How to Log Stack Frames with Windows x64

I am using Stackdumps with Win32, to write all return adresses into my logfile. I match these with a mapfile later on (see my article [Post Mortem Debugging][1]). EDIT:: Problem solved - see my own answer below. With Windows x64 i do not find a reliable way to write only the return adresses into the logfile. I tried several ways: Tri...

Detect whether current Windows version is 32 bit or 64 bit

Believe it or not my installer is so old that it doesn't have an option to detect the 64 bit version of Windows. Is there a Win DLL call or (even better) an environment variable that would give that info for XP and Vista? One possible solution I see that Wikipedia states that the 64 bit version of XP and Vista have a unique Env Variab...

Nant, Booc, and x64

I have a .NET project that's always been built/run by/on 32 bit machines. I got a new a 64 bit computer and am trying to tackle the task of getting it working there. The build script is in nant, and at one point we compile some boo code using the nant task. The boo code references our core DLL, which is built from c# source earlier in t...

Unmanaged x64 assemblies in mixed .NET development environment

What do we do if we have some devs working on 64 bit machines and some on 32 bit machines, but we need to reference unmanaged assemblies that need to be in x86 for half the team and x64 for the other half? Is there a solution besides manually updating the references every time someone on a 64 bit rig gets latest? ...

Environment variable to force .NET applications to run as 32bit

I've been told there is an environment variable you can set to force .NET applications to run as 32bit applications on x64 versions of Windows. Do you know what it is, or know of a reference on it? I'm afraid my google-fu has failed me today (or it doesn't exist). I'm using Resolver One (a .NET spreadsheet) and want to access some 32bit...

How to access the 64-bit registry from a 32-bit Powershell instance?

If you launch a 32-bit instance of Powershell (%SystemRoot%\syswow64\WindowsPowerShell\v1.0\powershell.exe), then the registry provider only sees the limited 32-bit parts of the registry. **32-bit console** PS> (dir HKLM:\SOFTWARE | measure).count - (dir HKLM:\SOFTWARE\wow6432node | measure).count 0 **64-bit console** PS> (dir HKLM:\S...

TFS 2005 on w2k3 x64?

Just a quicky anyone point me to any articles on getting TFS on w2k3 x64 working or if it's possible as it appears not to be =< ...