windows

Debug a Windows Mobile 5 Application on a Physical Device

Hi, I'm trying to debug and test my application with a Dell Windows Mobile device using Visual Studio 2008. I can connect to the device and deploy it on to the device using ActiveSync. The problem I'm having now is that when debugging, after the project is deployed on to the device, the breakpoints are never hit and the application just ...

How to close an "orphaned" console window that was opened from within visual studio?

When working on console applications in Visual Studio, I will run the application by pressing F5 to bring it into debug mode. Occasionally (and I'm not sure how this happens), I'll get back into "edit mode" in Visual Studio and the debugged console window will still be open. It will remain open but entirely unresponsive. I can't clo...

Scripting Trac installation on Windows

Hi, I'm currently working on some R&D for improving the process and practice that we approach development. As a first iteration something I'd like to do is develop an easy way to set up a project e.g. Run an ant script that will, when provided with a project name etc, Copy a template in svn Create a database (if needed) Automaticall...

Get Windows "load average" in Java

I'm currently writing a Java application that needs to look at how "heavily loaded" the machine it's running on is. On *nix, load average divided by number of processors fits the bill perfectly, and we retrieve load average with ManagementFactory.getOperatingSystemMXBean().getSystemLoadAverage(). Unfortunately, this returns -1 on Windows...

Reading Values from Windows Resource (.res) Files

Hello, all. I would like to know if there is a good way to read out values in a compiled resource (*.res) file. I am familiar with reading resources from an executable, and I'm wondering if there is a similar way to read out resources from a resource file. Thanks in advance! ...

How to specify log file path using folder locations in Windows with log4net xml configurator?

In my app.config I put <appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender"> <file value="%programdata%/log-file.txt"/> but it didn't work. Any ideas? ...

In IIS, how do I set environment variables for specific CGI scripts.

I have two cgi scripts from a product I can't alter. One needs a specific Environment Variable to be set. The other should be left alone. Is there a way, in IIS, to do the same thing as apache's SetEnv command just for one of the CGI scripts? Ciao! ...

what Windows account should a service run under to access network sql servers

Hello, I am considering creating a windows service that would run periodically and query networked databases and store the information on the local machine (please don’t ask why!). I would like this service to run when there is no one logged on to the computer locally. What account should the service run under Localservice, Localsystem...

Guest as proxy for Host in virtual machines

In the latest version of VirtualBox with a Windows 7 64-bit host and a Windows 7 64-bit guest, is it possible to set the guest as a proxy for the host? Specifically, I want to initiate a VPN connection over HTTPS with the guest--which is a copy of a machine on an NT domain--and use that connection from the host (which is not part of the...

Python: get currently logged user and his/her special folders

Does this code win32api.GetUserName() works fine on all win system from win 2000 to win 7 ? What about if user is not local user but domain user, does it still work ? When i use this function shell.SHGetFolderPath(0, shellcon.CSIDL_someDirectory, 0, 0), do I get wanted folder for currently logged user ? Any help appreciated. ...

Is there a way to substitute \ with / for Gnu Make command goals?

I'm running a recursive make on windows using targets for each directory using forward slashes to separate path components. If someone runs > make foo/bar it will run fine. But if someone runs > make foo\bar it won't find the target to build: make: Nothing to be done for `foo\bar'. I would love it if I could add something like t...

Pass data from ServiceInstaller class to ServiceBase derived class in C#

Hi, I currently am passing a string from the command line into my server installer class which I then access using this.Context.Parameters["whatever"]. Is there any way I can then pass this string on into my actual service class to be used by it at runtime or do I need to save it to the drive in an ini or add it to the registry and then ...

Ending "recv()" loop when all information is Read using Winsock

Hey everyone, I am having an issue in my recv() loop for winsock. I am trying to terminate the loop when iResult==0, however, the loop only ends when the socket closes. It appears to be hanging at the very last recv() where iResult would equal 0. So any ideas on how to terminate the loop effectively? My ultimate goal (whether iResult ==...

Launch application

Hi all, I want to launch a application using win32 ... Plase let me know your ideas to achive the same ...

How to inhibit communication with PS/2 keyboard with assembly?

The host has ultimate control over the bus and may inhibit communication at any time by pulling the Clock line low. How to pull the Clock line low in assembly and release in windows? ...

Crystal reports

hi i have small problem. I set generic path in crystal reports after that i deploy the application. deploy application runs corretly but crystal reports not loaded and an exception was occured. please give me issue ...

what is wrong with this code to read specific registry value in a subkey then do a if exist/if not statement.

well with some help from this site and dream in code i fixed my error, but am now the code just plain doesn't seem to be working. Here is the code: using (RegistryKey Key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Run\")) if (Key != null) { string val = (string)Key.GetValue("COMODO Internet Securi...

regarding javac

javac is not internal or external command error is coming. I have set the path. then also it is giving the same error. ...

Windows XP prefetcher registry values

Hi, I have been investigating the windows Prefetching system hoping to find a way to speed up the load time of an application I am working on. I found the following link where a developer describes modifications to the prefetcher registry values: http://dotnet.dzone.com/news/improving-cold-startup I have made similar modifications lo...

Powershell webbrowser refresh makes my content disappear

I am writing a small powershell script using windows forms which generates an HTML signature. The user can edit size, color etc and the script generates the html as a from their choices, and updates (theoretically) my WebBrowser preview when they press a preview button. My WebBrowser Control: $Preview = new-object System.Windows.Forms...