windows-xp

C# Generic GDI+ Error when using Image.Save()

时光毁灭记忆、已成空白 提交于 2019-12-02 09:25:17
问题 I am a relative novice with imaging in C#. This is my first question on this board after a very long time of being a member. I hope it can help me get through this tricky scenario. I need to read the contents (frames) of a Multi Page TIFF, saving each one into a List and finally returning it to then do some work with it. Heres my code so far public static List<Image> GetAllPages(string file) { images = new List<Image>(); using (Image img = Image.FromFile(file)) { try { for (int i = 0; i < img

SaveFileDialog silently crashes WinForms app on WindowsXP

别等时光非礼了梦想. 提交于 2019-12-02 08:21:49
I'm developing WinForms app using C#, .NET 4.0, and DevExpress components. On Windows 7 everything is working just fine. On Windows XP SP3, few seconds after SaveFileDialog is shown and closed, application will silently exit. There is no unhandled exception, Application exit event will not fire, I'm only getting message in the Visual Studio Output window: The program '[3164] MyApp.vshost.exe: Managed (v4.0.30319)' has exited with code 0 (0x0). Code that is causing this issue is very simple: saveFileDialog1.ShowDialog(); Do you have any ideas why is this happening? How can I troubleshoot and

C++ binary doesn't work on windows XP

倾然丶 夕夏残阳落幕 提交于 2019-12-02 07:15:57
I have a very basic program in C++ compiled in VS 11 Beta on windows 7. All project settings are default except Runtime Library. I changed Multi-threaded DLL (/MD) to Multi-threaded (/MT). This staticly links the runtime library as far as I know. Trying to run this exe on another windows 7 machine with VS 11 Beta installed works fine. Trying to run it on a windowx XP machine with no VS installed causes an error popup saying. " * *.exe is not a valid Win32 application" Is there some settings that need to be changed to make a binary work on XP that was compiled with VS 11 Beta on Win7? Mark

D3DERR_INVALIDCALL: Invalid call (-2005530516)

六月ゝ 毕业季﹏ 提交于 2019-12-02 07:02:39
I seem to be getting an error when testing on my WinXP(SP3) PC. The error is below but I don't get it when using my Win7 laptop. D3DERR_INVALIDCALL: Invalid call (-2005530516) at SlimDX.Result.Throw[T](Object dataKey, Object dataValue) at SlimDX.Result.Record[T](Int32 hr, Boolean failed, Object dataKey, Object dataValue) at SlimDX.Direct3D9.Device..ctor(Direct3D direct3D, Int32 adapter, DeviceType deviceType, IntPtr controlHandle, CreateFlags createFlags, PresentParameters[] presentParameters) The code that is causes the error is: using (var d3d = new Direct3D()) { using (var tmpDevice = new

Well rendered webfont solution

有些话、适合烂在心里 提交于 2019-12-02 04:41:40
The challenge: Provide dynamic web fonts that render acceptably across all major browsers, devices and Operating Systems The story: So I had used cufon or sifr in the past and had since abandoned both in favor of @font-face. After using @font-face in production for some time, I made a horrifying discovery. Many fonts (most?) look like crap in Windows XP, regardless of browser. Even in google chrome, XP renders the fonts unacceptably jagged and ugly. I am aware of why this is happening. After reading many excellent posts on ye olde stack overflow, I understand the issue is NOT of font hinting,

Problem with Ruby on Rails installation - How to use WAMP MySQL installation?

情到浓时终转凉″ 提交于 2019-12-02 04:12:35
问题 I did the following to install Ruby on Rails on Windows XP: Installed rubyinstaller-1.9.2-p0.exe gem install rails gem install mysql2 cd my_dir rails new my_app -d mysql The created config/database.yml contains the following MySQL configuration: development: adapter: mysql2 encoding: utf8 reconnect: false database: first_development pool: 5 username: root password: host: localhost However, when I run rails server from my_dir I got the following error: D:/Programs/Ruby192/lib/ruby/gems/1.9.1

Strange output in cmd while batch file is running

社会主义新天地 提交于 2019-12-02 04:11:05
I have that script in batch file: cd C:\TESTS\front-tests call git pull cd C:\TEST\front-tests\AutoApp\bin\debug start AutoApp.exe And git pull do not work because I can not change directory. Here is the result image: I do not know from where do the strange symbols, before cd command, come from. Any ideas? The batch file is saved as utf-8 BOM prefixed. What you see as the cd prefix is the byte order mark. Save the file as ANSI or utf-8 without BOM to make it work. 来源: https://stackoverflow.com/questions/25423160/strange-output-in-cmd-while-batch-file-is-running

Targetting Windows xp from visual studio 2015 enterprise update 1

十年热恋 提交于 2019-12-02 03:39:33
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 ? 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 compatible linker for down-level targeting. Only Windows desktop apps that are created by using the Windows XP

What free Powershell editors can I use on Windows XP SP2?

戏子无情 提交于 2019-12-02 03:16:56
I have Windows 7 at home with Powershell 2 and I really like the free version of the PowerGUI Powershell editor. I'd like to start using Powershell at work but we are on version 1.o on XP with SP2. I was going to install PowerGui but it looks like it requires some Core components or maybe even Powershell 2.0. I expect that our XP production servers may not have this version and I think it is safe to stay with 1.0 for now to avoid pushback from the keys with the keys to the production box. My question is this: Is there an editor like powerGui that I can use with version 1 where I do not have to

How to activate programs on windows from Linux machine

前提是你 提交于 2019-12-02 02:48:16
问题 First I will explain my target Target - execute programs or scripts on my windows machine from my Linux machine I find the winexe tool – this tool perform remotely executes commands on remote windows machine from my Linux – very nice, real example about winexe tool , and how it works: The following example syntax should open the IE on my windows machine from my Linux (very nice ) ./winexe -U login%password -W WORKGROUP //remore_machine_ip "cmd /k cscript C:/open-explorer.vbs" open-explorer