windows-xp

inno setup.exe fails with Floating point division by zero on Windows XP

允我心安 提交于 2019-12-04 01:31:40
I have setup an inno setup script that installs my application. The resulting setup.exe will install properly on windows vista/7 but fails with the division by zero error on windows xp. The inno example scripts work on windows xp so it must be something I am doing. Can anyone see what I am doing wrong? ; Script generated by the Inno Setup Script Wizard. #define app_src_path "..\MyApp" #define app_exe_path "..\bin" #define file_ver GetFileVersion(app_exe_path + "\win32\MyApp.exe") #define app_ver Delete(file_ver, 6, 2) [Setup] AppId={{BBB40316-958C-446B-A08D-311273214AA6} AppName=MyApp

How to programatically add mapped network passwords (WinXP)?

岁酱吖の 提交于 2019-12-03 20:46:51
In WinXP (SP2) you can store mapped network passwords... Start->Control Panel->User Accounts->Pick one then choose "Manage my network passwords" from Related Tasks. I normally have about 25-30 servers mapped this way to a few different accounts/domains. The problem is that at some point during our policy updates they get wiped out and it's a real PITA to add them all back again. Does anyone know how to add them programatically using some sort of script? Just to clarify, the end goal is not to map drives, it's to actually create the entries in that section. This allows us to use Windows

IF EXIST C:\directory\ goto a else goto b problems windows XP batch files

雨燕双飞 提交于 2019-12-03 17:45:41
问题 whenever i run the code below it occurs to me I have made a mistake using the if exist lines, as no matter whether the directory exists or not, it acts as if the line was never there... either that or its not reading the else line. echo off echo echo (c) Ryan Leach 2010 echo Stockmaster Backup System for exclusive use of Riverland Paper Supplies echo echo Please ensure that all computers are out of stock master to the windows xp screen echo and that the backup usb with the day of the week

When can a memory leak occur?

家住魔仙堡 提交于 2019-12-03 17:07:11
问题 I don't know what to think here... We have a component that runs as a service. It runs perfectly well on my local machine, but on some other machine (on both machine RAM's are equal to 2GB) it starts to generate bad_alloc exceptions on the second and consecutive days. The thing is that the memory usage of the process stays the same at aproximately 50Mb level. The other weird thing is that by means of tracing messages we have localized the exception to be thrown from a stringstream object

Crash in CAtlStringMgr::GetInstance under Windows XP

孤街醉人 提交于 2019-12-03 16:57:54
I've written a DLL that creates an ATL CString object. I compile it with Visual Studio 2015 using the "Visual Studio 2015 - Windows XP (v140_xp)" platform toolset. The DLL is loaded using LoadLibrary/GetProcAddress. It crashes under Windows XP in CAtlStringMrg::GetInstance when allocating the string object. The same application works well on Windows Vista and later. Here is the disassembly: static IAtlStringMgr* GetInstance() { #pragma warning(push) #pragma warning(disable: 4640) static CWin32Heap strHeap( ::GetProcessHeap() ); 1003B100 mov eax,dword ptr fs:[0000002Ch] 1003B106 mov ecx,dword

Alternatives to WPD/WIA on Windows XP?

非 Y 不嫁゛ 提交于 2019-12-03 16:27:00
WPD does not work correctly on Windows XP (SP1 if that matters), even if Microsoft states it does . Problem with WPD: IPortableDeviceManager.GetDevices call does not find any devices on Win XP while it finds all connected cameras on Windows 7. A few other people had this same problem with WPD not working on XP, no solution: 1 2 I have decided to reimplement the functionality using WIA. Problem with WIA automation/WIA interfaces: WIA automation offers only silly dialogs when interacting with the camera - I need to rather do this from code Programming against WIA interfaces is recommended to

How do I open “Find Files” dialog from command-line in Windows XP to search a specific folder?

流过昼夜 提交于 2019-12-03 16:15:41
I'd like to create a hotkey to search for files under a specific folder in Windows XP; I'm using AutoHotkey to create this shortcut. Problem is that I need to know a command-line statement to run in order to open the standard Windows "Find Files/Folders" dialog. I've googled for a while and haven't found any page indicating how to do this. I'm assuming that if I know the command-line statement for bringing up this prompt, it will allow me to pass in a parameter for what folder I want to be searching under. I know you can do this by right-clicking on a folder in XP, so I assume there's some way

Paged pool memory or Nonpaged pool memory ?? (windows driver development)

孤者浪人 提交于 2019-12-03 16:12:14
I am newbie in windows driver development. I just want to know , a global variable in a driver will use paged pool memory or non paged pool memory ? Thanks and Regards Navaneeth Depends. The Non paged pool should be reserved for memory that must stay in RAM so if you are doing something critical that would affected by a memory page from disk operation then use non paged. See here for more info. Looking at this (though it discusses c++ as opposed to C) it would seem that by default the globals can be located in either by #pragma. Also on p22 of this we see how to do this. Finally this discuss

Change and refresh icons programmatically (without rebooting)

江枫思渺然 提交于 2019-12-03 15:12:43
When I'm replacing icons manually (i.e. NOT from the Folder Options window in explorer), the icon(s) aren't being updated. For example, if I execute this batch code: REG ADD HKCR\testfile\DefaultIcon /ve /d "C:\test.ico,0" /f the icon(s) show like they should in the list in Folder Options, but the icons aren't updated on the desktop or in explorer. The icons are updated if I just hit the "change icon" button for any file type and exit the Folder Options window. But this can't be done via batch or VBS as far as I know. Restarting explorer.exe DOES work, but if I do that, the application tabs in

Binary files and cross platform compatibility

大兔子大兔子 提交于 2019-12-03 14:22:00
I have written a C++ library that saves my data (a collection of custom structs etc) into a binary file. I currently use (i.e. create and consume ) the files locally, on my Windows (XP) machine. For simplicity, lets think of the library in two parts: a writer (Creates the files) and a reader or consumer (simply reads data from the files). Recently though, I would like to also consume (i.e. read) the data files I have created on my XP machine, on my Linux machine. I must point out at this stage that both machines are PCs (so have the same endianess etc). I can build a reader (and compile for