visual-studio-2010

Statically linked app with Qt gives error: Failed to load platform plugin “windows”

本秂侑毒 提交于 2020-01-10 14:12:33
问题 I have built Qt 5.0.1 statically in VS 2010 under Windows 7 x64. The configuration parameters were configure -debug-and-release -opensource -confirm-license -platform win32-msvc2010 -nomake examples -nomake tests -no-webkit -static and I performed the build with jom with following parameters: jom -j 4 The build process was successful and I can find all the libs and link my app with Qt statically. Now the problem is that when I try to run the application, it gives me an error Module: 5.0.1

How do you draw a line on a canvas in WPF that is 1 pixel thick

我的未来我决定 提交于 2020-01-10 12:05:40
问题 I'm using the Line class to draw on a canvas in WPF and even though I set StrokeThickness = 1 , the line shows up 2 pixels wide - it's almost as if the minimum thickness is two. How do I draw a line that is truly 1 pixel thick? Line myLine = new Line(); myLine.Stroke = System.Windows.Media.Brushes.Black; myLine.X1 = 100; myLine.X2 = 140; // 150 too far myLine.Y1 = 200; myLine.Y2 = 200; myLine.StrokeThickness = 1; graphSurface.Children.Add(myLine); 回答1: Two things: myLine.SnapsToDevicePixels =

How to set “Break on All Exceptions”, from a Package

Deadly 提交于 2020-01-10 08:50:42
问题 I want to make an extension to quickly toggle breaking on CLR exceptions in debugger. I have made tried several approaches, neither of which is satisfactory. Here is what I have already tried: ExceptionSettings.SetBreakWhenThrown (MSDN) This is extremely slow (see this Connect issue). I have tried approaches from question "Toggle “Break when an exception is thrown.” using macro or keyboard shortcut" and neither seem to work reliably: in most cases only top level checkbox gets set, and it does

How to set “Break on All Exceptions”, from a Package

左心房为你撑大大i 提交于 2020-01-10 08:50:36
问题 I want to make an extension to quickly toggle breaking on CLR exceptions in debugger. I have made tried several approaches, neither of which is satisfactory. Here is what I have already tried: ExceptionSettings.SetBreakWhenThrown (MSDN) This is extremely slow (see this Connect issue). I have tried approaches from question "Toggle “Break when an exception is thrown.” using macro or keyboard shortcut" and neither seem to work reliably: in most cases only top level checkbox gets set, and it does

How can I upgrade my Sql Server CE 3.5 sdf database to Sql Server CE 4.0?

戏子无情 提交于 2020-01-10 07:51:22
问题 I need to update my SqlCE3.5 database to 4.0. I get the following error message when I'm trying to access my 3.5 sdf/database using the new CE4.0 connection provide :- System.Data.EntityException: The underlying provider failed on Open. ---> System.Data.SqlServerCe.SqlCeInvalidDatabaseFormatException: The database file has been created by an earlier version of SQL Server Compact. Please upgrade using SqlCeEngine.Upgrade() method . Anyone know how I can do this? Obviously I need to do it

How to look at the actual SOAP request/response in C#

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-10 04:56:05
问题 I have added a wsdl file in my project as a service reference. The application sends SOAP messages to a particular device which then sends the response in SOAP format. Is there a way to look at the actual SOAP message that is wrapped in XML? Having to turn on wireshark to look at the SOAP messages gets tedious. 回答1: You are probably looking for SOAP extension, look at this post: Get SOAP Message before sending it to the WebService in .NET 回答2: Use Fiddler to inspect the messages. Ref: Using

Using LibTiff in Visual Studio 2010

让人想犯罪 __ 提交于 2020-01-10 04:13:13
问题 I'm trying to use LibTiff in a C++ Program in Visual Studio 2010. I downloaded tiff-3.9.2.zip from ftp://ftp.remotesensing.org/pub/libtiff. To test LibTiff it would be nice if someone could give me a step by step instruction how to import libtiff to visual Studio and build the Fax2Tiff tool. There are so many files so that I am totally confused. What I already have done: 1) Created a new Empty Win32 Console Application Project named "TiffTest" 2) Copied the folder "libtiff" from the tiff-3.9

VS2010 reports false memory leaks for static classes in a DLL

被刻印的时光 ゝ 提交于 2020-01-10 03:59:11
问题 A follow-up question to Memory leaks when calling ITK from Visual Studio DLL I refined the problem to the simplest example. struct A { public: A() { mp_data = new int(0x42); } ~A() { delete mp_data; } int* mp_data; }; A a; When such a global class is defined in a DLL, Visual Studio debug CRT reports that mp_data is leaked on application shutdown. Does anybody know a workaround except disabling leak reporting? 回答1: If you are calling _CrtDumpMemoryLeaks() at the end of the main function the

Cannot load file or assembly 'crystal decisions.windows.forms,version=13.0.2000.0'

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-10 02:49:08
问题 I'm working on windows application. In this I designed Report module. I get error whenever I wanted to view report in Windows 7, Windows XP & Windows Vista, but it works in Windows 8. Following steps I took before deploying setup I installed .NET Framework 4 in Windows XP & .NET Framework 4.5 in Windows 7 I installed CRforVS_13_0_2 but its through error message like You must already have Visual Studio 2010 installed to proceed with this installation. and SAP Crystal Reports version for Visual

Visual Studio 2010 debugger steps over methods and doesn't stop at breakpoints

泪湿孤枕 提交于 2020-01-09 19:42:50
问题 My Visual Studio 2010 debugger sometimes has a very strange behaviour... Sometimes it doesn't stop at breakpoints, but when it stops, and I want to step into a method, the debugger just steps over it. Also the breakpoints in those over-stepped methods are ignored. When this strange behaviour occurs, it also does not break on exceptions but simply ignores them. I've tried to rebuild my project, reset the Visual Studio settings and disabled debugger settings like "Break only in my code", but