windows-xp

C# - Image can't be opened in Windows XP but same code works in Windows 7

白昼怎懂夜的黑 提交于 2019-12-11 13:58:19
问题 I have two tiff images, one is black and white, the other is grayscale8. I need to show them in picture box, when I try to open them: Image.FromFile("path"); The BW one opens with no issues, the grayscale one give me an exception: "out of memory" That only happens when I execute the code in a WinXP SP3 machine, a colleague with a Windows 7 has no problems in both cases Any ideas? More info: MS Paint and standard Microsoft Image Viewer can't open the grayscale image, while Office Picture

Delay Loading DWMAPI on Windows XP and CodeBlocks

假装没事ソ 提交于 2019-12-11 13:55:01
问题 I have a project that I'm been fighting to build for Windows (XP) for a month solid now. The project uses gtkmm-3, C++, and the latest GCC-TDM compiler. My IDE is CodeBlocks 13.14. I'm making progress, however, I am now getting hung up on this error message... ld.exe cannot find -ldwmapi Now, DWMAPI is a DLL only available on Windows Vista and above. According to my research, you can Delay Loading of certain DLLs in cases where they are present on some systems, but not on others. The problem

How do I refresh a file's thumbnail in Windows Explorer?

醉酒当歌 提交于 2019-12-11 12:22:07
问题 Our Windows file server has an archive service installed that "stubs" files that have not been accessed for a defined period of time. When a request for the stubbed file is sent to the server, the archive service replaces the stub with the original document and serves it to the user. A major complaint about the archive service was that thumbnails for photos were no longer available. I decided to create a program in C# that would allow the user to select a folder and unstub all the files in it

Reading data from serial port (COM3) using pyserial module on Windows XP

北战南征 提交于 2019-12-11 11:59:57
问题 Before going into the problem, here is some hardware/software information: Device accessed: Ohaus Scout Pro Digital Weight Machine (product link) Interface used: USB (product link) Serial Port: COM3 OS: WinXP Python Version: Activestate Python 2.7 pyserial version: 2.5 Python recognized this serial port and had no problems opening it. I am new to python as well as pyserial. I couldn't figure out how exactly can I read data from the serial port. I used the following code: 1 import serial 2 ser

Any reason I'd get a NullReference exception on Windows 7 only?

微笑、不失礼 提交于 2019-12-11 11:14:50
问题 My C#, .NET 4, app runs fine on XP (media centre to be exact - don't ask). On Windows 7, it installs fine, but immediately borks. It complains about a NullReferenceException in the callback of a background worker. (I'd love to give you more information, but short of installing VS on the target machine, this is all I can get.) So, anything I should know about deploying to Windows 7? Edit: As requested, here's a better description of what's going on... When the main form of my app initialises,

Label displaying Timespan disappearing in XP but not in newer Windows versions

我的梦境 提交于 2019-12-11 10:38:18
问题 I have a stopwatch timer that I've added to my program. It's working fine on my Win 7 machine, and on the Vista machines I've tried, but in XP, the hrs and mins zeros disappear when the timer starts, but will come back if I reset the timer. Here's all of my code that I have for the timer. I've removed everything that didn't seem necessary to diagnose the problem: DateTime startTime, stopTime; TimeSpan stoppedTime; bool reset; private void btnStopwatchStart_Click(object sender, EventArgs e) {

Programmatically change the program icon

北慕城南 提交于 2019-12-11 10:24:11
问题 I'm developing on VS 2010/ C#. Does any one know how to change the software icon programmatically? I actually want my software to have one icon under Windows 7 and another for Windows XP in the same software installation. 回答1: If it's a winform app, you can write below code in the formload event of the main form. Use this link to find operating system : http://andrewensley.com/2009/06/c-detect-windows-os-part-1/ and then write below code to set icon. private void InvestorReportingFormLoad

Build allegro 5 for Windows XP

和自甴很熟 提交于 2019-12-11 09:06:09
问题 I've spent all day looking for answers. I haven't found one that works, so im posting a question and asking the great stackoverflow. I have an allegro 5 application that needs to run on a windows xp 32bit machine. Ive made this application in VS C++ 2012. Ive tried to buld the project with the platform toolset vs 2012 windows xp (v110_xp), this didn't work. the problem is that when I try to run the .exe in XP i get a: "the procedure entry point GetTickCount64 could not be located in the

Wix 'undefined preprocessor variable'

♀尐吖头ヾ 提交于 2019-12-11 09:05:40
问题 I have seen questions like this, but they seem to not help me. I am playing with a test web application. I added this into my RStp.wixproj, I had a hard time, but it works, it generates the Frags.wxs: <Target Name="BeforeBuild"> <Exec Command=" "$(WiX)bin\heat.exe" project "..\WebR\WebR.csproj" -cg Portals.Vendor -gg -pog Binaries -pog Content –configuration "release" -platform "AnyCPU" –out "Frags.wxs" " /> <ItemGroup> <Compile Include="Frags.wxs" /> </ItemGroup> </Target> My Frags.wxs looks

What is the Xbox360's D3DRS_VIEWPORTENABLE equivalent on WinXP D3D9?

自作多情 提交于 2019-12-11 08:45:57
问题 I am maintaining a multiplatform codebase for Xbox360 and WinXP. I am seeing an issue on the XP side that appears to be related to D3DRS_VIEWPORTENABLE on the Xbox360 version not having an equivalent on WinXP D3D9. This article had an interesting idea, but the only way to construct an identity matrix is to supply negative numbers to D3DVIEWPORT9::X and D3DVIEWPORT9::Height, but they are unsigned numbers. (I tried to put in negative numbers anyway, but nothing interesting happened.) So, how