windows-xp

Unable to connect pyODBC with SQL Server 2008 Express R2

我怕爱的太早我们不能终老 提交于 2019-12-03 09:11:45
I am using following code to connect with SQL 2008 R2: cnxnStoneedge = pyodbc.connect("DRIVER={SQL Server};SERVER=127.0.0.1;DATABASE=myDB;UID=admin;PWD=admin") Which gives error: Error: ('08001', '[08001] [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied. (17) (SQLDriverConnect)') args = ('08001', '[08001] [Microsoft][ODBC SQL Server Driver][DBNE...t exist or access denied. (17) (SQLDriverConnect)') with_traceback = <built-in method with_traceback of Error object> I am not sure whether SQL connecting via named Pipes or TCP, I did enable IP Address.

How to extend windows explorer functionality?

安稳与你 提交于 2019-12-03 09:09:43
How would I go about extending the functionality of windows explorer in XP? Is there some way whereby I could create a "plugin" of some sorts that could hook into explore.exe to add additional folder browsing functionality? What language could I use to achieve this? This is an expansion of a question I asked here. There's a great series of tutorials on CodeProject which might help you. C++ is required there. There is an old O'reilly book called 'Visual Basic Shell Programming' that explains the API's for this in some detail. While taken from a VB6-centric point of view, the API's are all

Batch File Replace Exclamation Mark with Escaped Exclamation Mark

守給你的承諾、 提交于 2019-12-03 08:49:44
I am working on a batch file that get's data as a variable, and in that variable it has an exclamation mark. What i am trying to do is add the necessary escape characters to the variable. "Title":"Turk 182!" Above is an example of the data I am working with. setlocal EnableDelayedExpansion rem replace ! with ^^! set var=%var:!=^^!!% But I am not sure that is the correct syntax, since how can i escape an esclamation mark if it's also used as part of the search and replace? I am trying to replace all esclamation mark with an escaped version so it can be displayed and worked with. Btw, is there

How do I programmatically retrieve the actual path to the “Program Files” folder? [duplicate]

霸气de小男生 提交于 2019-12-03 08:32:28
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: C# - How to get Program Files (x86) on Windows Vista 64 bit I realize the odds of a user changing the Windows default of C:\Program Files is fairly slim, but stranger things have happened! How can I get the correct path to Program Files from the system? 回答1: .NET provides an enumeration of 'special folders' for Program Files, My Documents, etc. The code to convert from the enumeration to the actual path looks

Monitoring API calls [duplicate]

[亡魂溺海] 提交于 2019-12-03 08:18:56
This question already has an answer here: Hook processes 5 answers I am doing some reverse engineering and want to know which APIs are called from the executable. I am mostly interested in the APIs called on a particular Windows system DLL. I guess one way to do that is to get all APIs exposed from the DLL using dumpbin and put breakpoints on all those from Windbg. Any other approach? This seems like lot of time if I need to monitor many system DLLs. BTW, I am working on Windows XP and want to monitor one executable which calls some Windows system DLL functions. Agnel Kurian http://www.rohitab

Bizzarre issue trying to make Rpy2 2.1.9 work with R 2.12.1, using Python 2.6 under Windows xp - Rpy can't find the R.dll?

拥有回忆 提交于 2019-12-03 07:42:16
问题 I've been having a real issue trying to make Rpy2 play nice with my R install. I first tried installing the rpy2 MSI package, and this didn't appear to work. When I ran the recommended tests, it was giving me an error saying that it couldn't find the R.dll, because the new R installs (post 2.11) install the DLLs into an i386 folder, where rpy2 can't find them because its looking in the bin folder instead of the bin/i386 folder. Then I tried to build the install from scratch myself using the

How to search Jar files using Windows Search?

久未见 提交于 2019-12-03 07:20:14
问题 I believe back when we were on Win2K, Windows Search would search through Jar files to locate specific classes but this doesn't appear to work in XP. Does anyone know how to enable this in XP? Note, to do the search in Win2K we just entered *.jar for the files and "ClassABC" for the search text string and the search would return any jar files containing class files where the title contained "ClassABC". 回答1: Add this to a text file, save file, change the extension to .reg, double click to add

How to get hardware information in Windows using C++?

无人久伴 提交于 2019-12-03 07:11:43
How to get hardware information (for example cpuId, biosId, diskId, baseId and videoId) in c++? Can anyone give me an example visual studio project for this? There are very different ways to get a disk id (serial number? volume id?) or a CPU ID or ... . I think you want to build a fingerprint of the computer. The most comfortable way is to use Windows Management Instrumentation (WMI) and access the DMI . See MSDN for a start. See MSDN here for a hint how to get the mainboard serial number as an example. GetSystemInfo will get you started with the CPU information. Each subsystem generally has

Windows XP vs Vista: NTFS Junction points

廉价感情. 提交于 2019-12-03 06:57:56
问题 Problem: I relied heavily on NTFS Junction points in Windows XP, even though they apparently were not an "official" feature of the operating system. Now MSFT has generously made NTFS Junction points an official part of Vista, but apparently they also intentionally broke them. Now my WinXP-created junction points on portable USB drive don't work when I plug that drive into a Vista box. Questions: Does anyone have a script that will force NTFS junctions created on XP to work correctly within

Load 2 versions of the same DLL in the same process

被刻印的时光 ゝ 提交于 2019-12-03 06:52:47
I want to do exactly what it is described here , but the accepted solution does not work for me. I suppose the reason is explained here : If a DLL with dependencies is loaded by specifying a full path, the system searches for the DLL's dependent DLLs as if they were loaded with just their module names. If a DLL with the same module name is already loaded in memory, the system checks only for redirection and a manifest before resolving to the loaded DLL, no matter which directory it is in. The system does not search for the DLL. I wish to have my application in the following structure. c:\Exe |