visual-studio-2008

Boost signals2 automatic connection management and changing the mutex type of a signal

人盡茶涼 提交于 2019-12-19 11:36:19
问题 I am trying to use automatic connection management and changing the mutex type of a signal for a template function. The following code compiles and executes fine using gcc-4.3.4. (http://ideone.com/LLN6d) #include <boost/signals2.hpp> #include <boost/enable_shared_from_this.hpp> #include <stdio.h> class Simple : public boost::enable_shared_from_this< Simple > { private: typedef boost::signals2::signal_type<void( int ), boost::signals2::keywords::mutex_type< boost::signals2::dummy_mutex > >:

Compiler Issue in Windows 7: A generic error occurred in GDI+

*爱你&永不变心* 提交于 2019-12-19 11:36:09
问题 We have an application that we need to begin testing and developing in Windows 7 environment. It works fine compiling under WinXP in VS2008, no problems. However when I went to compile it on a windows 7 machine using VS2008 today I get the following error: Error 12 The "GenerateResource" task failed unexpectedly. System.Runtime.InteropServices.ExternalException (0x80004005): A generic error occurred in GDI+. at System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters

Visual Studio Unit Tests : dll is not trusted

♀尐吖头ヾ 提交于 2019-12-19 11:32:10
问题 I'm struggling getting some unit tests running and wondering if anyone might have anything insightful. The setup is that we've got a bunch of referenced DLL's on a server and when I try and execute I get the old Test Run deployment issue: The location of the file or directory 'c:\source\ProjectName\bin\debug\3rdPartyLibrary.dll' is not trusted. I've tried the old caspol command: caspol -m -ag 1.2 -url file:\server\binaries* FullTrust Which seems to work for everything bar one DLL. I'm

Visual Studio Unit Tests : dll is not trusted

▼魔方 西西 提交于 2019-12-19 11:31:43
问题 I'm struggling getting some unit tests running and wondering if anyone might have anything insightful. The setup is that we've got a bunch of referenced DLL's on a server and when I try and execute I get the old Test Run deployment issue: The location of the file or directory 'c:\source\ProjectName\bin\debug\3rdPartyLibrary.dll' is not trusted. I've tried the old caspol command: caspol -m -ag 1.2 -url file:\server\binaries* FullTrust Which seems to work for everything bar one DLL. I'm

Visual Studio Unit Tests : dll is not trusted

别来无恙 提交于 2019-12-19 11:31:00
问题 I'm struggling getting some unit tests running and wondering if anyone might have anything insightful. The setup is that we've got a bunch of referenced DLL's on a server and when I try and execute I get the old Test Run deployment issue: The location of the file or directory 'c:\source\ProjectName\bin\debug\3rdPartyLibrary.dll' is not trusted. I've tried the old caspol command: caspol -m -ag 1.2 -url file:\server\binaries* FullTrust Which seems to work for everything bar one DLL. I'm

“Mixed mode debugging is not supported on Windows 64-bit platforms” when trying to attach to an ASP.NET process using Visual Studio 2008

霸气de小男生 提交于 2019-12-19 10:38:08
问题 I am so used to attach a process when debugging ASP.NET application in .NET 2.0 and VS.NET 2005. I don't know what happened to this functionality in VS.NET 2008. I also don't want to do debugging by starting from the start page because when the application is big enough you don't want it to be compiled and you sometimes cannot catch a case from start and you want to catch that case during that time. I could't figure this one out. I am running Vista Ultimate x64 with VS.NET 2008 Team Suite.

redirect to another page from Silverlight

。_饼干妹妹 提交于 2019-12-19 09:27:35
问题 In side a Silverlight Page, I want to redirect to another aspx page in the same web site and using POST method to send some additional header information. Any ideas how to implement this? Any samples are appreciated. :-) I am using VSTS2008 + .Net 3.5 + Silverlight 2.0 + C#. 回答1: My suggestion would be to have a Visibility=hidden Button on the page, and then use javascript to retrieve it and .Click() it. Thus you get to do a post without all the work that this guy went through: http:/

How do you enable Visual Basic.NET namespace by default?

徘徊边缘 提交于 2019-12-19 09:23:16
问题 I'm coming from C# background and in Visual Studio. The namespace is shown by default but not in Visual Basic. Is there an option to enable namespace to be shown in Visual Studio 2008? 回答1: VB.Net has a concept of default namespace for a project. Any file created in the project which does not contain an explicit namespace will be intsead included in the default namespace. If you don't like this behavior you can disable it from the project property page (right click on the project and select

Does Expression Blend and Visual Studio Render WPF Controls Differently

孤街浪徒 提交于 2019-12-19 09:09:55
问题 In my WPF App, I have designed the Form using Expression Blend. To my surprise, the rendering is quite different when I load the solution using Visual Studio 2008. What is even more surprising, when I run the application, the resulting UI is different from the rendering done by both VS and Blend. Though I have not provided by XAML code, but in general is this a known Issue? 回答1: This is most definitely a known issue. Visual Studio uses what's known as the Cider designer to render WPF code. It

incremented define?

 ̄綄美尐妖づ 提交于 2019-12-19 09:04:26
问题 Is there anyways to have a define increment every time you use it? For example int a = ADEFINE; int b = ADEFINE; a is 1 and b is 2. 回答1: If you don't need compile-time-constants, you could do something like this to enumerate classes: int counter() { static int i = 0; return i++; } template<class T> int id() { static int i = counter(); return i; }; class A {}; class B {}; int main() { std::cout << id<A>() << std::endl; std::cout << id<B>() << std::endl; } 回答2: You can use __COUNTER__ , though