windows

Discovery of Dynamic library dependency on Mac OS & Linux

Hi, On Windows there is a tool Depends.exe to discover dependency of an EXE/DLL file on other DDLs. Which commandline tool is equivalent on Mac OS and Linux? Please kindly advise. Thank you! ...

Using pipes to communicate data between two anonymous python scripts

Consider this at the windows commandline. scriptA.py | scriptB.py I want to send a dictionary object from scriptA.py to scriptB.py by pickle:ing it and sending it over a pipe. But I don't know how to accomplish this. I've read some posts about this subject here, but usually there's answers along these line: Popen( "scriptA.py"´, ......

Bad pipe filedescriptor when reading from stdin in python

Duplicate of this question. Vote to close. Consider this at the windows commandline. scriptA.py | scriptB.py In scriptA.py: sys.stdout.write( "hello" ) In scriptB.py: print sys.stdin.read() This generates the following error: c:\> scriptA.py | scriptB.py close failed: [Errno 22] Invalid argument Traceback (most recent call las...

TortoiseSVN icons not showing up under Windows 7

I can't seem to get the icons to display under Windows 7 and I really miss this from Windows XP. How can it be fixed? ...

Grouping MMC Snapins?

I have an MMC application written in Unamanged C++. It has the following orginization: MMC Plugin (Primary Snap-in) - Snapin A (Extension Snap-in) - Snapin B (Extension Snap-in) - Snapin C (Extension Snap-in) - Snapin 1 (Extension Snap-in) - Snapin 2 (Extension Snap-in) - Snapin 3 (Extension Snap-in) I would like to change...

ClickOnce start time from Start Menu link

I have big application (190 MB in 600 files) deployed using clickonce 3.5. After installation of this application i run it from link located in Start Menu but it takes over 4-12 sec to show my Splash Screen. When this application is run from .exe file Splash screen is visible after 1 sec. My application don't use automatic updates (Clic...

How to get CPU usage or disk usage of application using Windows API from C++?

How to proceed to get CPU usage or disk usage of application using API in C++??? I want to get the highest CPU usage or disk usage among the application running on windows. I have tried to find out API but there is no direct API for that. Can anyone please let me know how to proceed for this in C++. ...

PROBLEM :An error message cannot be displayed because an optional resource assembly containing it cannot be found

Hi everyone... I created Windows Mobile Application and I loaded web service that contain one method (GetNumber). When I call this method from my emulator I got a following exception An error message cannot be displayed because an optional resource assembly containing it cannot be found. Can anyone help me. This is my code from WM App...

How does Windows protect transition into kernel mode

How does Windows protect against a user-mode thread from arbitrarily transitioning the cpu to kernel-mode? I understand these things are true: User-mode threads DO actually transition to kernel-mode when a system call is made through NTDLL. The transition to kernel-mode is done through processor-specific instructions. So what is spe...

Why does using a pipe not work in powershell?

I'm trying to execute the following line: exit | sqlplus username/password@sid @test.sql Works great from cmd but in powershell I get "An empty pipe element is not permitted" Why is this and how do I fix it? ...

MySQL suddenly not working on Windows Server 2003

I installed PHP and MySQL on our windows 2003 server about 3 months ago. Everything has been working wonderfully, but for some reason when I came into work this morning, the service had stopped working. I proceeded to start the service up again, shortly there after the service stopped again. In the Event Log for the server I have the...

ServiceController logon Information

Windows Service runs under particular account How can I programmatically get that information using ServiceController. ...

lauch4j hello world program

I created a "hello world" java program and use lauch4j to convert executable jar to .exe file. When I tried to run it in cmd, but nothing printed out. I also tried to run it in launch4j. Log indicates: Executing: C:\Documents and Settings\cnbq84\Desktop\helloworld.exe. But still no "hello world" is displayed. How to display the "Hello W...

Embedding multiple, identically named resource (RC) files in a native DLL

Hi all, For my application (an MMC snap-in) I need to create a single native DLL containing strings that are localized into different languages. In other words, if you were to inspect this DLL with Visual Studio, you would see multiple string tables, each associated with a different locale but containing the same string IDs. The approa...

Get Windows Service Pack Version from Java Applet?

Hello I am writing a Java Applet. When run on Windows, I need to be able to get the clients OS version, e.g. Windows XP SP3 or Windows 2000 SP4. I can currently use the following: String os_name = System.getProperty( "os.name" ); String os_version = System.getProperty( "os.version" ); System.out.println( "Running on " + os_name + ...

Windows Invariant Culture Puzzle

I have a question about the windows invariant culture. Succinctly, my question is: does there exist any pair of characters c1, and c2 such that: lower(c1, invariant) =latin-general lower(c2, Invariant) but lower(c1, invaraint) !=invariant lower(c2, invariant) Background: I need to store an invariant lower case string (represen...

How to get file icon using C++

Hi all, I want to add Icon to treeview node, using C++. I want to get the icons from system, I tried I tried with, PMString ucPath("C:\\path\\to\\file.extension"); SHFILEINFO info; ::SHGetFileInfo(ucPath.GrabTString(), FILE_ATTRIBUTE_NORMAL, &info, sizeof(info), SHGFI_ICON | SHGFI_USEFILEATTRIBUTES | SHGFI_SMALLICON); icon...

SetCurrentDirectory in multi-threaded aplication

I understand SetCurrentDirectory shouldn't be used in a multithreaded application since the current directory is shared between all threads in the process. What is the best approach to setting the directory with this in mind. It can mostly be avoided setting the directory by including the full pathname when opening files instead of firs...

How to copy a hard disk partition?

Hii I wanna copy an NTFs partition to another partition of same type and same size.And I tried with windows function Copyfile() and it worked but slow speed is a problem.Then I did with readfile() and WriteFile() instead of Copyfile() again speed is a problem. How can I get a better speed...?? I did the same operation in kernel mode a...

querries on InternetGetConnectedState

Hi All, I am using InternetGetConnectedState() to know, which connection is on. I have both LAN and wireless modem connected on my system, but this function returns me that only LAN is connected. why is this? and how to solved this ...