windows-xp

how to set the default encoding in windows XP?

对着背影说爱祢 提交于 2020-01-12 18:48:01
问题 im trying to open a file using StreamReader and ive to set a Encoding, but i want it to take the Default Windows Encoding... how can i change my windows Encoding ??? 回答1: Regional and Language Options Control Panel Item; Advanced tab. Impacts the entire computer. 来源: https://stackoverflow.com/questions/469163/how-to-set-the-default-encoding-in-windows-xp

Handling large dense matrices in python

自作多情 提交于 2020-01-12 02:38:11
问题 Basically, what is the best way to go about storing and using dense matrices in python? I have a project that generates similarity metrics between every item in an array. Each item is a custom class, and stores a pointer to the other class and a number representing it's "closeness" to that class. Right now, it works brilliantly up to about ~8000 items, after which it fails with a out-of-memory error. Basically, if you assume that each comparison uses ~30 (seems accurate based on testing)

Targetting Windows xp from visual studio 2015 enterprise update 1

大兔子大兔子 提交于 2020-01-11 12:18:31
问题 I would like to know whether we can build the projects/binaries using visual studio 2015 which can run on Windows xp ? If its supported then how we can build ? 回答1: Configuring C++ 11 Programs for Windows XP The Windows XP platform toolset that's included in Visual Studio is a version of the Windows 7 SDK that was included in Visual Studio 2010, but it uses the current C++ compiler. It also configures project properties to appropriate default values—for example, the specification of a

How do I get an error report from a “Please tell Microsoft about this” dialog?

*爱你&永不变心* 提交于 2020-01-11 06:22:28
问题 A program I wrote crashes on startup. (Win XP). A dialog "Please tell Microsoft about this problem." appears. I want to be told about the problem since it's my app. Thing is, clicking through (clicking link: 'View the contents of the error report'), the "Error Report Contents" dialog doesn't let my customers copy its contents to the clipboard. Do you know how a user can get a copy of this report to forward to me, the developer? 回答1: Don't worry. The developers can subscribe to WinQual.

Customizing OpenFileDialog in .Net

≡放荡痞女 提交于 2020-01-10 03:52:45
问题 In need to create native looking customized .Net OpenFileDialog in Windows XP and Windows Vista/7. Add new controls to it, etc. Is there any way to customize standard OpenFileDialog in .Net (WPF specifically)? I've looked through the solutions like OpenFileDialogEx, but all that WINAPI hooking stuff is not acceptable for me. Maybe one knows a way to extract native dialogs via Reflection or something? How the native OpenFileDialog in Windows Vista/7 is implemented? Is it written in WPF? Thanks

How can I detect when an SD card is plugged in?

青春壹個敷衍的年華 提交于 2020-01-10 03:05:09
问题 I'm writing a PC application in C++ that needs to detect when a user connects an SD card to his/her computer. I know how to detect when the card reader is connected, but I do not know how to detect when individual cards are connected/removed. Does Windows have an IO interface to detect arrival/removal of SD cards? [Update] the WM_DEVICECHANGE technique that was suggested works only for detecting when an SD Card reader is plugged in. It does not detect when individual cards are inserted into

Windows Forms color variation between Windows 7 and XP

非 Y 不嫁゛ 提交于 2020-01-08 05:40:08
问题 I have a vb.net Windows Forms app using the 4.0 framework. When I run the application on an XP machine, the color of my controls all match what the are set to in my IDE, which is also an XP machine. When I run this application on a Windows 7 machine, the colors are all changed. Any ideas why this is and how I can make Windows 7 match my Development machine? David 回答1: Windows forms are going to take on whatever "theme" the machine they are running on has enabled - which is by design. Honestly

Ruby Loop Failing in Thread

江枫思渺然 提交于 2020-01-07 07:14:08
问题 I have a thread in Ruby. It runs a loop. When that loop reaches a sleep(n) it halts and never wakes up. If I run the loop with out sleep(n) it runs as a infinite loop. Whats going on in the code to stop the thread from running as expected? How do i fix it? class NewObject def initialize @a_local_var = 'somaText' end def my_funk(a_word) t = Thread.new(a_word) do |args| until false do puts a_word puts @a_local_var sleep 5 #This invokes the Fail end end end end if __FILE__ == $0 s = NewObject

Unable to Start Debugging on the WebServer

点点圈 提交于 2020-01-07 06:50:10
问题 While creating the website I choose Location as HTTP and then provided http://172.24.17.188/myProject and it created the project happily. And I was able to run the project too. But once I have closes the VS2008 and reopened the project , I am getting the following error while trying to run the website. Edit: I am able to browse the website by manually typing in browser but unable to run or debug usinh VS2008. 回答1: If the website is running on IIS on the same machine then you can attach the

Lightswitch Desktop Application Wont Install in XP SP3

巧了我就是萌 提交于 2020-01-06 19:40:26
问题 I have a desktop application developed with Lightswitch using Visual Studio 2012. The app installs perfectly on a Windows 7 machine but when I try to install it on an XP SP3 machine I get: setup.exe is not a valid Win32-Application I've tried using: editbin setup.exe /SUBSYSTEM:WINDOWS,5.01 /OSVERSION:5.1 but then I get the following error: the procedure entry point InitializeCriticalSectionEX could not be located in the dynamic link library Kernal32.dll I've spent ages getting this rapid