I've P/Invoked the mciSendString method from WinMM.dll:
[DllImport("winmm.dll")]
private static extern long mciSendString(string strCommand, StringBuilder strReturn,
int iReturnLength, IntPtr hwndCallback);
I can play, pause, and stop songs (I can also open/close the CD drive, but that's not im...
We use Tortoise SVN for accessing our SVN server. I was wondering if anyone knew of a image diff viewer that would show two revisions of the image side by side to see any any changes. Similar to the TortoiseMerge that's included with it by default, only for image files.
...
What is the windows socket notification sink for? I am currently working with MFC socket and I think I have done something wrong since I get this message at windows shutdown. What could cause this?
Thank you.
Edit:
I am currently working with an application that needs to communicate via sockets. When I shutdown my computer I get a mess...
I need to be able to run RegLoadKey() on a remote machine, and it may be that my machine and the remote machine are not in the same domain. If they are, the below code works OK and I can impersonate a user that has admin privileges on the machine. Otherwise, if we're talking about local users, according to this discussion I found...
htt...
If I run my JBoss application from the Windows command prompt I can get the list of printers (including networked printers just fine).
If I run my JBoss application as a Windows service, I only get the list of printers that are directly connected to the machine. The networked printers don't show up.
Here is the Java code I use to get...
Hi,
I'm trying to use git on windows to clone a remote repository. I can clone it on my mac fine but on windows I get a problem.
WHen using git bash to clone, I get a message saying the server's host key is not cached in the registry. It asks me to preess y or n to trust the host.
THe problem is that if I press y or n nothing happens....
Does anybody know what is the equivalent to $? in Windows command line? Is there any?
EDIT: $? is the UNIX variable which holds the exit code of the last process
...
I have a directory path stored in a text file, and I need to CD to that directory in a script but don't know how. I was hoping it would be something like
cat FILE | cd
but its not that easy.
This is a windows environment btw, in unix/linux it is easy:
cd `cat FILE`
Can anyone give me a hand?
...
I wrote a PHP extension and it could be compiled and run under linux successfully. But on windows, I met some problems.
I did the compiling on windows according to http://blog.slickedit.com/?p=128 with PHP source version 5.2.10, and after the compiling it generated the dll file. But when I tried to use the dll file, it reported me the m...
We're developing something for the Windows platform and we'd like to harness the multiple cores present in PCs nowadays.
I know that in VS2010, there is the Concurrency Runtime. It's still on Beta, though. For the meantime that we do need to release quality code now, what is a good option for an API that will allow smooth transition la...
Hello,
In an asp.net app, I have a task that ftps some xml files down to a local folder on my computer. I then want to read those files but when they're copied to my local folder, they don't have the Network Service user account set up. So, my question is how, in .Net C#, do you programmatically add the "Network Service" account with fu...
Is there is a way to change a Windows folder icon using a Perl script?
My intention is to change the ordinary icon of the "xxx_documents" folder to some other icon. I have to run the script in such a way that it takes care for the whole drive.
The drive contains many folders. I have to search for each folder named "documents" (e.g. "xx...
I have a program that passes command-line arguments to an associated file (i.e. associated file extension) of an executable. The executable never receives the arguments. However, if I start the executable directly and pass it both the path to the associated file and the arguments, then it receives both the file path and the arguments.
...
On Vista, with Aero enabled, the window in normal mode looks like this:
But maximized it looks like:
Notice that in normal mode the caption is black and when the window is maximized it is white.
How can I determine the current color of the window title ?
P.S. I wrote a program to watch after SystemColors.ActiveCaptionTextColor, b...
I'm writing a small tray application that needs to detect the last time a user interacted with their machine to determine if they're idle.
Is there any way to retrieve the time a user last moved their mouse, hit a key or interacted in any way with their machine?
I figure Windows obviously tracks this to determine when to display a scre...
For purposes of testing compression, I need to be able to create large files, ideally in text, binary, and mixed formats.
The content of the files should be neither completely random nor uniform.
A binary file with all zeros is no good. A binary file with totally random data is also not good. For text, a file with totally random seq...
What is the relationship between IIS settings HTTP Keep-Alives Enabled and Connection Timeout ? Is it the same relationship in different versions of IIS?
I am using XP Pro (2002 service pack 3) using IIS 5.1 running aspnet 3.5 applications.
We have been getting 'There are too many people accessing the Web site at this time' error.
I...
Suppose I have a socket. What is the difference between these two lines of code?
line 1:
os.read(some_socket.fileno(), 1024)
line 2:
some_socket.recv(1024)
...other than the fact that the first one doesn't work on Windows. In other words, can I substitute the second line for the first one? I've got a codebase that hasn't really...
I am building a C# UI to interact with a COM Service (.exe). The VS2005 COM project outputs a valid typelib (TLB), which is referenced by the C# project. However, the VS2005 C# project insists that the service be registered in order to build the C# project, even though the typelib appears perfectly valid when examined with the OLE Obje...
Hello everyone,
I am using Windows Media Encoder 9, and in a dual screen environment, I want to record only the primary screen. Any ideas or samples how to implement this? Non-programming solution is also appreciated. :-)
I am using VSTS 2008 + C# + .Net 3.5.
thanks in advance,
George
...