windows

Micro Second resolution timestamps on windows.

How to get micro second resolution timestamps on windows? I am loking for something better than QueryPerformanceCounter, QueryPerformanceFrequency (these can only give you an elapsed time since boot, and are not necessarily accurate if they are called on different threads - ie QueryPerformanceCounter may return different results on diffe...

Application launch from c command in window OS

I want to make an console application of c which can run other applications (exe files). Kindly guide me how can I make it possible so that from my c code i can run other executable files in window OS. ...

XNA networking on windows

What are XNA's builtin network functionalities? Is it possible to use XNA's builtin network in windows? If so, any restrictions? ...

Protect Windows folder without encrypting the contents

Hi, I want to protect the "www" folder in my Apache server. Checked some tools on the net like TrueCrypt, FolderEncrypt etc. All these encrypt the folder contents. If the www folder is encrypted, then my php won't work. Is there a way to lock the folder in windows without encrypting its contents.[ A little harder to crack then no lock at...

Burning a CD programatically

How can I write something onto a CD using ANSI C working under Windows? ...

is it possible to know the cpu utilization from command line

Hi All, Is there any command or possible way to know the cpu utilization in windows operating system ...

Question about windows system sorting problem

Hi all, how can I get the file sequence which is the same as windows file system? Because there are so many file system sorting items: name, size, last modified date time, tag(win 7), rating(win 7), so if I using CFileFind API to simulate the sorting behavior as windows file system is quite difficult. So how can I get the files whose seq...

Is Django the Best solution for me, if so please help me

What is the easiest (and fastest) way to migrate (+-) a simple data driven "app" to a Framework that does most of the work for me (like forms, add , remove). What I have is a simple Excel 2003 for Stock managemment. Quite simple, 3 tables: 1 for **Information **on the product. 1 with product code, type of movemment (IN ou OUT), quan...

TortoiseSVN very slow on some windows configurations

Hi folks! I’m experiencing performance issues with tortoiseSVN client and xp-dev server : It take 19 minutes to check out 718kBytes in 297 files ! PC is running windows XP, latest version of T-SVN. I’ve disabled firewall and antivirus with the same result. I made another test on a second machine (same internet connexion, antivirus and f...

Embedded WMP control - how to get resolution of current playing file?

Hi All. I have a Windows Media Player control embedded inside my webpage, I feed it some URL to stream from (ASF file). How can I get from the WMP control the resolution in pixels of the file being played? Thanks Roey ...

Getting Java Axis to work on Windows? NoClassDefFoundError

I'm trying to consume an ASP.NET Webservice from a Java application. The java app is being built with Eclipse on a Windows box. I've installed the Webservice tools for Eclipse and I've downloaded the Axis 1.3 files and extracted all of the supporting .jar files (axis.jar, saaj.jar, etc) into my java\lib folder. My environtment variables...

Is there a way to modify registiry hives of domain user not logged into the comptuer

We have an issue where we need to modify keys for users that are not currently logged into the machines and those that will login set a default. I know the best way to do this is a domain policy but that option is unavailable. Is there any good way to modify these keys programmaticly, or remotely short of having an exe on each machine ...

How get information about an application/game running in Windows with Python?

How can I get some information about a game (Heroes of Newerth) when it's currently running (without the game api) ? For example, connections, commands, resources that game is using etc etc... I want to make something similar to a banlist on HoN, but I don't have a clue if it's possible, if it's hard or not and so on... ...

Empty Win32 Popup Menu

I'm trying to create a dynamic popup menu within my application, the generation code I use is something like that : HMENU menu; POINT pt; menu = CreatePopupMenu(); SetForegroundWindow( receivingWindow ); GetCursorPos( &pt ); int i = 19; AppendMenu( menu, MF_STRING, i++, _TEXT("meh meh") ); AppendMen...

CreateDIBSection leaving 'Not enough storage' error, but seems to still work anyway

Whenever my app tries to create a DIB section, either by calling CreateDIBSection(), or by calling LoadImage() with the LR_CREATEDIBSECTION flag, it seems to return successfully. The HBITMAP it returns is valid, and I can manipulate and display it just fine. However, calls to GetLastError() will return 8: Not enough storage is availabl...

Is filling memory with non zero values slower than filling it with zeros?

I'm not very expert on how processors work, but one might imagine that it was easier to set chunks of memory to zero than non zero values and so it may be marginally faster. ...

Benchmark Test Software Running on Windows and Linux/Ubuntu

Just wondering if there is any benchmark software that I can download that will run on both Windows (preferable Windows 7) and Linux (Ubuntu 9.10)? I have a brand new system and I'd like to run some standardized benchmarks with Ubuntu and also with Windows 7. The Passmark Performance test only runs under Windows. ...

How do you position a wx.MessageDialog (wxPython)?

Hi: Is there any reason why the position, pos, flag doesn't seem to work in the following example? dlg = wx.MessageDialog( parent=self, message='You must enter a URL', caption='Error', style=wx.OK | wx.ICON_ERROR | wx.STAY_ON_TOP, pos=(200,200) ) dlg.ShowModal() dlg.Destroy() The documentation is here: http://www...

Why does my 'hello world' Python C module work correctly in everything but IDLE?

I compiled a simple hello world C module for Python and it works correctly in everything I've tried but IDLE. Here's what I type to test it: >>> import hello >>> hello.say_hello('Justin') I have tried this using Python from the command prompt(I'm using Windows), in Eclipse's PyDev, and with PieDream and they all print out Hello Justin...

JFileChooser and browsing networked machines

Good afternoon, I am working on a little program that needs the ability to let users browse files and directories on networked machines as well as the local filesystem. I made the mistake of developing this component on a Windows machine... it worked fine there, but hid the fact that JFileChooser doesn't really "see" networked drives. O...