visual-studio-2008

How to byteswap a double?

隐身守侯 提交于 2020-01-12 22:39:32
问题 I'm trying to write a byteswap routine for a C++ program running on Win XP. I'm compiling with Visual Studio 2008. This is what I've come up with: int byteswap(int v) // This is good { return _byteswap_ulong(v); } double byteswap(double v) // This doesn't work for some values { union { // This trick is first used in Quake2 source I believe :D __int64 i; double d; } conv; conv.d = v; conv.i = _byteswap_uint64(conv.i); return conv.d; } And a function to test: void testit() { double a, b, c;

Visual Studio 2010 - Is it slow for anyone else?

那年仲夏 提交于 2020-01-12 16:22:07
问题 I've read a lot of stuff about VS2010 being much more performant than VS2008. When I've finally installed it, I found that it, in fact, is much slower (save for the Add References dialog). For instance, Silverlight projects take twice as long to load, the startup of the IDE itself is much slower, etc... Am I missing something here or is it like this for everyone? Specs: WinXP-32bit, 3.5GB RAM, 7200RPM drive, NVIDIA QUadro NVS 285 128MB, Cure2Duo E4400 @ 2GHz, PAE enabled. 回答1: yeah, I've

How to precompile a Web Application project?

烂漫一生 提交于 2020-01-12 14:23:08
问题 I've heard recently that you can precompile Web Application projects. My question is how? Right now, when I do a publish for my web application and select only files needed to run this application I get it published but it still has all my ASPX pages and it will still only JIT compile the pages. How do I make it so that all of the ASPX pages are precompiled before putting them on the server? 回答1: You can download a project template called a Web Deployment Project (WDP) (VS2008 version here),

Certificate problem - Error Importing Key “object already exists” after Windows 7 upgrade

末鹿安然 提交于 2020-01-12 14:12:22
问题 I have about 60 .pfx files for all major assemblies for a project. They are unique files, but I use the same password for all. After an upgrade from Windows Vista to Windows 7 I get an Import Key File dialog requesting the password for them when I click Build in Visual Studio 2008. This would have been fine, but after inserting the password I get an error dialog: Error Importing Key - Object Already Exists. Any ideas? 回答1: Solved it! After the upgrade from Vista to Windows 7 the permissions

Certificate problem - Error Importing Key “object already exists” after Windows 7 upgrade

*爱你&永不变心* 提交于 2020-01-12 14:10:32
问题 I have about 60 .pfx files for all major assemblies for a project. They are unique files, but I use the same password for all. After an upgrade from Windows Vista to Windows 7 I get an Import Key File dialog requesting the password for them when I click Build in Visual Studio 2008. This would have been fine, but after inserting the password I get an error dialog: Error Importing Key - Object Already Exists. Any ideas? 回答1: Solved it! After the upgrade from Vista to Windows 7 the permissions

Registering extension EJS with visual studio and intellisense?

依然范特西╮ 提交于 2020-01-12 13:46:23
问题 does anyone know how i can map EJS to visual studio to act like a HTML file. I think i managed to do it but its got a lot of bloat in it.. Its basically an HTML file without the HTML and BODY tags.. so i selected the UserControl in VS 2008, tools, options, Text Editor, file extension and added EJS and added it as usercontrol. If i choose html then it doesn't offer intellisense until it detects a HTML and BODY .. My question really is can i add to this list? and create my own?? It need to

Installing MS debug DLLs for remote debugging

隐身守侯 提交于 2020-01-12 08:27:10
问题 I have a .NET app that I would like to install on a VM for remote debugging purposes. The app uses a native VC++ DLL which links to MFC and the MSVC runtime libraries via DLL. When I run depends on the VM, it says that the DLL needs the following DLLs: mfc90d.dll msvcm90d.dll msvcp90d.dll msvcr90d.dll msjava.dll Also, it reports the following error: Error: The Side-by-Side configuration information for [dll path] contains errors. This application has failed to start because the application

Installing MS debug DLLs for remote debugging

泄露秘密 提交于 2020-01-12 08:27:10
问题 I have a .NET app that I would like to install on a VM for remote debugging purposes. The app uses a native VC++ DLL which links to MFC and the MSVC runtime libraries via DLL. When I run depends on the VM, it says that the DLL needs the following DLLs: mfc90d.dll msvcm90d.dll msvcp90d.dll msvcr90d.dll msjava.dll Also, it reports the following error: Error: The Side-by-Side configuration information for [dll path] contains errors. This application has failed to start because the application

Best Practices for IntelliSense JavaScript references

爱⌒轻易说出口 提交于 2020-01-12 08:27:07
问题 Assuming a person has Visual Studio 2008 set up correctly for JavaScript Intellisense, what are the best practices for the actual javascript reference declarations? The basic form, of course, is (right up at the top of the file): ///<reference path="path-to-file.js" /> But what are the rules for the path? Webapps Should web applications use forward slashes like a url? "filename.js" for files in the same directory? "./filename.js"? Root relative "/path/to/filename.js"? Are all of these

Best Practices for IntelliSense JavaScript references

青春壹個敷衍的年華 提交于 2020-01-12 08:24:10
问题 Assuming a person has Visual Studio 2008 set up correctly for JavaScript Intellisense, what are the best practices for the actual javascript reference declarations? The basic form, of course, is (right up at the top of the file): ///<reference path="path-to-file.js" /> But what are the rules for the path? Webapps Should web applications use forward slashes like a url? "filename.js" for files in the same directory? "./filename.js"? Root relative "/path/to/filename.js"? Are all of these