windows

Compiling .go ( google go language ) in Windows ... & Can python connect to Go?

Hi all, i know that go language does not support windows yet, now, how can i compile .go file is windows ? and can python connect to go ? like connecting c++ or java to python ... lol ...

how do you include an external script using javascript in windows script host cscript.exe

how do you include an external script using javascript in windows script host cscript.exe ...

python 3.x speech module

Hi, Is there pyTTS or some kind of speech module for python 3.0? I can't seem to find it anywhere and I'd really like to try it out. ...

OLEDB JET error in Vista & Windows 7, not in XP.

I wrote an application with VS2008 on Windows XP, and produced an .EXE file. This application will only run on Windows XP OS. It fails on Vista and Windows 7. It gives an error saying that a Microsoft OLEDB JET 4.0 occurred. I use Microsoft Access as a db in this app. What should I do? ...

How does UltraVNC achive "Server Monitor Blanking"

UltraVNC is able to blank the monitor of the computer being remotely accessed. My question is, how is this possible? In my understanding, due to the nature of the Windows OS, remote desktop applications are limited to remotely displaying only snapshots of the current physical screen. I believe UltraVNC is also subject to this limitatio...

How can I force Windows to clear all disk read cache data?

I'm writing a disk intensive win32 program. The first time it runs, it runs a lot slower while it scans the user's folders using FindFirstFile()/FindNextFile(). How can I repeat this first time performance without rebooting? Is there any way to force the system to discard everything in its disk cache? I know that if I were reading a si...

fopen fails mysteriously under Windows

Maybe I just have another black out but, this one line is giving me a lot of troubles: FILE *fp = fopen("data/world.data", "rb"); This works fine under Linux when compiled with GCC. But when I compile it with Visual Studio, it crashes. fp is always NULL. Both the BIN and the EXE are in the exact same directory. Now, to make things eve...

^M at end of lines when editing in CodeBlocks (I think)

I'm on Ubuntu Linux 10.04. I use vim for most of my development and CodeBlocks for debugging. When I first moved from Windows to Linux, I noticed that vim was showing ^Ms for newlines, and found out that this was a Microsoft thing. However, even after removing them I notice that they sometimes reappear in files (files that I edit in Code...

Reliable way to wait for another Windows process to redraw its main window

I am moving a window (belonging to another process) to the front in order to take a screenshot of it. I am able to do this using SetForegroundWindow, however that function returns immediately. The other process takes a varying amount of time to redraw its main window (which requires it to access a database) so I cannot be sure that whe...

What is the Linux equivalent of: MultiByteToWideChar & WideCharToMultiByte?

I am working with a class that wraps the std::wstring, this code needs to be cross platform, are there equivalents to the windows functions: MultiByteToWideChar & WideCharToMultiByte on linux? Thank you. ...

Fabric auto-login in Windows

Relevant question: http://stackoverflow.com/questions/2339735/fabric-password I configured Putty to login with private-public keys (no password) using this guide: http://www.codelathe.com/blog/index.php/2009/02/20/ssh-without-password-using-putty/ It works. Now I want to run Fabric with no password prompt. This does not work and I...

How do I change the screen working area using SHAppBarMessage in Visual C#?

I've been looking at the MSDN article for visual C++ and it looks kind of intimidating: http://msdn.microsoft.com/en-us/library/cc144177(VS.85).aspx All the other articles that I've been linked to 404. Basically, I'm creating a desktop application toolbar that changes the working area of the screen when it's docked so that no maximized...

C# Windows Service - Multiple timers

I'm developing a windows service that will need to do multiple tasks at different periods. I currently have two timers, a full timer and a stock timer running at different intervals defined like below. fullTimer = new System.Timers.Timer(); fullTimer.Elapsed += new ElapsedEventHandler(OnElapsedTime); fullTimer.Interval = Convert.ToD...

Can a process use a socket created by another process?

I'd like to create an application that gets the ipv4 tcp table ( currently by using GetTcpTable() ), then gets a socket (searching for a particular IP address) and peeks data from that connection (it actually has to send data too). So we have two processes on the same machine, one that has a connection to a server, and another one that ...

I want to call one command(user defined) from C program(Windows)

I want to call one command(user defined) from C program(Windows). Can you tell me the function available? ...

Change Language in C#

I am developing a multilingual program in C# on Windows How to change Windows writing language on certain actions... e.g. to change from English to Arabic on focus event. Thanks ...

Remove multi-line strings from a text file using a batch script

I am trying to create a batch file that will edit a text file to remove lines that contain a certain string and remove the line directly after that. An example of this file would look like this: LINE ENTRY KEEP_1 BLA BLA END LINE ENTRY REMOVE_1 FOO BAR END LINE ENTRY REMOVE_2 HELLO WORLD END LINE ENTRY KEEP_2 CAT DOG END After runnin...

Windows OS Message Architecture

Hello Kindly suggest me a good pointer to learn the windows messaging architecture inside the Windows OS. A good reference book would also do. Regards ...

Windows: reliable way to know if a certain date passed?

For a simple product key library I need to reliably check if a certain date passed. I'd like to do something slightly less trivial than checking the system clock since that can be changed easily by the user. What are standard ways of doing this? One way someone suggested is to check if there are files which were modified after the ch...

What's the best way to demonstrate the effect of affinity setting?

Once I noticed that Windows doesn't keep computation-intensive threads on a specific core - it keeps switching cores instead. So I speculated that the job would be done faster, if the thread would keep access to the same data caches. And really, I was able to observe a stable ~1% speed improvement after setting the thread's affinity mask...