windows-7

Name resolution in connection string fails from network share

让人想犯罪 __ 提交于 2019-12-14 03:10:02
问题 I need to go sit together with the network infrastructure guys to see why suddenly SQL connection errors like below occur. As a preparation, please provide input why this error can occur, and which things we could try at the application and/or infrastructure side to circumvent it. The error occurs when starting an application from a network share. The error does not occur when copying the files locally and starting it locally. The error is always reproducible. A couple of weeks ago (before I

Pin WPF window on the desktop in Windows 7

半世苍凉 提交于 2019-12-14 03:03:43
问题 I want to pin a WPF window on the desktop (it should be a desktop gadget). I know you can do this by setting the parent handle of the WPF window to the handle of the "progman" window. But this does not prevent the hiding of the WPF window when "Windows + D" is pressed. There must be another way do to this. The new desktop gadgets in Windows 7 are not hidden when "Windows + D" is pressed. How did the MS developers achieve this? 回答1: I think your best bet would be to create a Gadget and host

Win7: Out of Memory exception on Image.FromFile

半世苍凉 提交于 2019-12-14 02:54:37
问题 The following piece of source does run nicely with Windows up until vista. With Windows 7 (and the new .net 3.5) it always produces an out of memory exception, when I try to load a raw image file from my Nikon D90. Some might say "loading nef's is not supported", but it did run nicely up until vista, only Windows 7 broke it, so I'd disagree. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System

Windows 7 edit control, vertical scroll does not work

你说的曾经没有我的故事 提交于 2019-12-14 02:42:06
问题 I have an application that compiles ok (mingw) and runs ok, however the edit control that is created has scroll bars but the vertical scroll bar doesn't do anything. The same executable works fine on WinXP. Also, the edit control has both vertical and horizontal scroll bars, the horizontal works just fine, but vertical does not. The vertical scroll bar is visible and clickable, but nothing happens... Following code is used when creating the edit control: HWND hwndEdit = CreateWindow(TEXT(

Method to tell PDCurses to make the window the same size as the physical screen programatically?

馋奶兔 提交于 2019-12-14 02:32:31
问题 Currently I have an c++ console application running on Win7/AIX/Linux. In the application I use getmaxyx to get the dimensions of the window. getmaxyx(_window, _rows, _cols); On the windows platform i need to play around with the (properties)(layout) options of the running app, to get the screen maximized. That is a bit of a pain. Thumbing through the documention yields nothing of value. lines: Specifies the number of lines the "screen" will have. Directly equates to LINES. There is no

C# WebSockets On Windows 7 with OWIN

依然范特西╮ 提交于 2019-12-14 02:27:05
问题 I am trying to use WebSockets on Windows 7. I trying to use System.Net.Sockets, I have tried following these examples, but each of them has one problem or another running on Windows 7: WebSocket Server in C# ,Writing a WebSocket server in C# , Creating a “Hello World” WebSocket example , How to implement an asynchronous socket in C#, MULTI-THREADED TCP SERVER IN C# ,Paul Batum I have looked into several 3rd party tools, but it looks like they are either no longer supported or in beta. Here's

get statistics information by SQL query efficiently for table with 3 columns and 800 million rows

杀马特。学长 韩版系。学妹 提交于 2019-12-13 23:53:18
问题 I have a data table with 3 columns and 800 million rows in SQL server database. locationID cardID value NY_xxxxx xxxxxx xxxx.xxxx // x : integer digits from 0 to 9 NY_xxxxx xxxxxx xxxx.xxxx NY_xxxxx xxxxxx xxxx.xxxx IA_xxxxx xxxxxx xxxx.xxxx IA_xxxxx xxxxxx xxxx.xxxx IA_xxxxx xxxxxx xxxx.xxxx ... I need to count the distinct numbers of cardID for the same location. Also, I need to count location numbers in the same state. For example, for NY in the above table, we have 3 locations. I also

Installing libbzip2 on Windows

青春壹個敷衍的年華 提交于 2019-12-13 21:08:47
问题 I am trying to install libbzip2 on Windows 7. (Actually I want to install wp2txt package, but it seems need to libbzip2). I installed "Bzip2 for Windows" as suggested by Alex. But I get following errors. C:\Users\John>gem install bzip2-ruby -- --with-bz2-include="C:\Program Files (x86)\GnuWin32\include" -- --with-bz2-lib="C:\Program Files (x86)\GnuWin32\lib" Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing bzip2

How to hide a window in start in c# desktop application?

末鹿安然 提交于 2019-12-13 20:34:02
问题 I am trying to make a desktop application that will be hidden but will display only after a time interval. I am trying to set Visible =false at window load event but it still displays. 回答1: For WinForms applications I have found that the easiest way to control the start-up visibility is to override the SetVisbileCore method. Here is a simple example, the form will show after 5 seconds using System; using System.Windows.Forms; namespace DelayedShow { public partial class Form1 : Form { private

How initialize Direct2D renderer into GDI context from managed code for older version of .NET Framework

有些话、适合烂在心里 提交于 2019-12-13 20:19:31
问题 Given a legacy desktop application in Windows Form , managed code (a mix of C# and VB projects) running on .NET Framework 3.5 (which can't be migrated to newer .NET for reasons beyond the scope of this question), how GRADUALLY transition the code from GDI+ to Direct2D ? Or possibly to Direct3D? Another constraint is that the resulting application work on Windows 7 , but we will migrate to Windows 8 or Windows 10 if that is the only way to get this to work. (The impetus is bugs in GDI+