I thought it best to start a new thread for this instead of leaving it buried in the StarStatistics/ReadPSF thread since it's more broadly useful.
I got 64-bit compiles working under Visual C++ 2008 Express Edition running on my 64-bit Windows 7 PC.
I'm going to summarize the process here for the benefit of others but I can't claim credit. I just pieced it together from a few websites (listed at the end).
PROCEDURE
(1) Download and install,
Microsoft Visual C++ 2008 Express Edition
http://www.microsoft.com/express/downloads/#2008-Visual-CPP
(2) Download and install,
Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1
http://www.microsoft.com/downloads/details.aspx?FamilyID=c17ba869-9671-4330-a63e-1fd44e0e2505&displaylang=en
(3) Microsoft has a website that is supposed to tell you how to enable 64-bit compiles by installing the SDK but it doesn't work. In step 5 of their procedure it says to select 64-bit platform from the drop down list but it's not there. Steps (4) and (5) below are necessary to get it working.
http://msdn.microsoft.com/en-us/library/9yb4317s.aspx
(4) Register the v7.0 SDK as the system default.
Run the "Windows SDK Configuration Tool", select v7.0 and click "Make Current".
(5) Run a cmd shell with Administrator privilege and run these command,
After this I was able to follow the procedure in Microsofts webpage listed in step (3) and enable 64-bit compiles. I successfully compiled Carlos' StarStatistics class and ReadPSF process module and tested them in 64-bit PI.
REFERENCES
http://jenshuebel.wordpress.com/2009/02/12/visual-c-2008-express-edition-and-64-bit-targets/
http://www.cppblog.com/xcpp/archive/2009/09/09/vc2008express_64bit_win7sdk.html
http://msdn.microsoft.com/en-us/library/9yb4317s.aspx
http://blogs.msdn.com/deeptanshuv/archive/2006/04/11/573795.aspx
Mike
I got 64-bit compiles working under Visual C++ 2008 Express Edition running on my 64-bit Windows 7 PC.
I'm going to summarize the process here for the benefit of others but I can't claim credit. I just pieced it together from a few websites (listed at the end).
PROCEDURE
(1) Download and install,
Microsoft Visual C++ 2008 Express Edition
http://www.microsoft.com/express/downloads/#2008-Visual-CPP
(2) Download and install,
Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1
http://www.microsoft.com/downloads/details.aspx?FamilyID=c17ba869-9671-4330-a63e-1fd44e0e2505&displaylang=en
(3) Microsoft has a website that is supposed to tell you how to enable 64-bit compiles by installing the SDK but it doesn't work. In step 5 of their procedure it says to select 64-bit platform from the drop down list but it's not there. Steps (4) and (5) below are necessary to get it working.
http://msdn.microsoft.com/en-us/library/9yb4317s.aspx
(4) Register the v7.0 SDK as the system default.
Run the "Windows SDK Configuration Tool", select v7.0 and click "Make Current".
(5) Run a cmd shell with Administrator privilege and run these command,
Code:
regedit /s x64\VC_OBJECTS_PLATFORM_INFO.reg
regedit /s x64\600dd186-2429-11d7-8bf6-00b0d03daa06.reg
regedit /s x64\600dd187-2429-11d7-8bf6-00b0d03daa06.reg
regedit /s x64\600dd188-2429-11d7-8bf6-00b0d03daa06.reg
regedit /s x64\600dd189-2429-11d7-8bf6-00b0d03daa06.reg
regedit /s x64\656d875f-2429-11d7-8bf6-00b0d03daa06.reg
regedit /s x64\656d8760-2429-11d7-8bf6-00b0d03daa06.reg
regedit /s x64\656d8763-2429-11d7-8bf6-00b0d03daa06.reg
regedit /s x64\656d8766-2429-11d7-8bf6-00b0d03daa06.reg
copy "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcpackages\AMD64.VCPlatform.config" "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcpackages\AMD64.VCPlatform.Express.config"
copy "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcpackages\Itanium.VCPlatform.config" "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcpackages\Itanium.VCPlatform.Express.config"
After this I was able to follow the procedure in Microsofts webpage listed in step (3) and enable 64-bit compiles. I successfully compiled Carlos' StarStatistics class and ReadPSF process module and tested them in 64-bit PI.
REFERENCES
http://jenshuebel.wordpress.com/2009/02/12/visual-c-2008-express-edition-and-64-bit-targets/
http://www.cppblog.com/xcpp/archive/2009/09/09/vc2008express_64bit_win7sdk.html
http://msdn.microsoft.com/en-us/library/9yb4317s.aspx
http://blogs.msdn.com/deeptanshuv/archive/2006/04/11/573795.aspx
Mike