windows

Check file name is valid windows name

Hello I wanna check if my string is valid windows file path. I was searching around and it seems that there is no reliable method to do that. Also I checked boost filesystem library , and no obvious function exist to do this check , maybe something like is_valid_windows_name ...

Multiple Word2007 references in the Running Object Table

Contrary to earlier versions (see here), I find that Word2007 places one entry into the Running Object Table for each instance of WinWord.exe that is running. (Using IROTVIEW.exe supplied with MS VC 6.0!) I am trying to build an application that automates Word, and I would like to keep a hidden instance of Word unavailable to the user, ...

I can't install Haml/Sass on Windows using RubyInstaller for Windows.

I never used ruby before, I just wanted to play around with HAML and SASS. I downloaded and installed Ruby's Windows installer (v1.9.1). Then, I clicked ruby.exe (the icon with a black window and a multicolored gem in the picture). Finally, I typed gem install haml and pressed Enter. But nothing happened. Am I doing something wrong? Ref...

I need Expression Builder component

Hi, I need an Expression Builder component (Windows Forms) for adding it to my application like the SSIS (SQL Server Integration Services) expression builder control, kindly any link for free project, or component from third party company Thanks in advance ...

Fastest and most efficient way of converting **haml** and **scss** files? (Ruby on Windows)

I'm a ruby/haml/sass-beginner. I just installed ruby and rails for windows, haml, and sass (stand alone and plugin for rails). I know how to convert and haml file into a html file (and vice versa): haml index.haml > output.html and how to convert a scss fiel into a css file (and vice versa): sass --watch style.scss:style.css I sav...

how to set up path in windows

i installed ruby and then gem of rails. when i am trying to start server using ruby script/server i am getting an error ruby: No such file or directory -- script/server (LoadError) ...

Having trouble understanding this error creating a thread...

HANDLE hThread; DWORD dwThreadId; hThread = CreateThread( NULL, // default security attributes 0, // use default stack size MyThreadFunction, // thread function name 0, // argument to thread function 0, ...

How do I set the windows system clock to the right local time using C++?

Right now I do something like this: SYSTEMTIME st; st.wHour = 6; st.wMinute = 23; BOOL result = SetSystemTime(&st); The goal is to get it to show that exact time on my local machine. When I run the program it changes it to 8:23 instead of 6:23. How can I get it to show the correct local time? ...

Windows Azure: how to measure the execution time of a code

I wanted to measure the execution time of my code running on windows azure cloud across multiple instances. Can anyone tell me how to do it. ...

How do I set the date to the next weekday of my choice using c++?

I would like to determine the next date that has a day of the week value equal to something I specify. For example, today is 6/21/2010 and the day of week value is 1 b/c today is a Monday. How do I find the next date with let's say a day of week value of 3. I would like to consider all cases that come close to the end of something incl...

How do I concurrently download and convert a binary file using threads?

I have a program that downloads a binary file, from another PC. I also have a another standalone program that can convert this binary file to a human readable CSV. I would like to bring the conversion tool "into" the download tool, creating a thread in the download tool that kicks off the conversion code (so it can start converting whi...

Errorlevel of command executed by batch for loop

The following code always displays 0 as the errorlevel, but when the copy command is done outside of the for loop command it returns a non zero errorlevel. for /f "usebackq delims=" %%x in (`copy x y`) do ( set VAR=%%x ) ECHO Errorlevel = %ERRORLEVEL% ECHO VAR = %VAR% Is is possible to get the errorlevel of the copy command execut...

How do I make a program that can tell what other programs are running on Windows?

I want to make a program that monitors the other programs running on Windows. It needs to know for instance "Max Payne 2 opened at 4:36pm" or "Firefox closed at 9:52 am." Ideally, it would be able to tell the difference between when I'm actually using the program, or if I have alt-tabbed out of it or if I'm inactive. How do I extract ...

Is there a thread safe queue class for Visual Studio C++ 6.0?

I would like to implement a thread safe queue in VS 6.0 Is there a good class to use for this? This is an MFC application using the CWinApp. My former post lead me to here but I don't have the luxury to code in VS 2010, stuck in 6.0 land. o well..... Thank You. ...

Help with py2exe error...

I'm trying to compile to an exe my script of python, but I'm getting an error that I'm not know how to resolve... my script include this libraries import pyHook import pythoncom import time import win32com.client and the py2exe script is from distutils.core import setup import py2exe import sys sys.argv.append('py2exe') setup( ...

Python not opening Japanese filenames

I've been working on a python script to open up a file with a unicode name (Japanese mostly) and save to a randomly generated (Non-unicode) filename in Windows Vista 64-bit, and I'm having issues... It just doesn't work, it works fine with non-unicode filenames (Even if it has unicode content), but the second you try to pass a unicode fi...

Multiple mouse/mice/cursor?

How can I show another cursor for multiple mice? I have two TMemos, two keyboards which can type into their respective TMemo, 2 mice and I need 2 cursors those. If hypothetically, I can already detect which mouse is which. How can I make my own cursor to go along with it. (using Delphi) Possibly along the lines of Multipoint as an alte...

Seeking info on how to use the VB6 Winsock, flow of events, etc.

I'm using the MS Winsock control in VB6 and I want to understand things like "when does the Server Close the connection (triggering the Winsock_Close() event), and a related question: How do you know when all the data from a a Post has been returned? More info: I should have mentioned: I've already read the MSDN description, etc....

How do I link to another folder on windows in my htdocs?

on my local website i would like to the /web directory point to a folder on my windows box. I have tried putting a shortcut there and it failed. I tried creating an alias in my httpd.conf and i get a 403 http error. Im out of ideas! ...

Why isn't this compiling?

#include <stdio.h> #include <Windows.h> int main() { TCHAR buff[1024]; GetLogicalDriveStrings(1024, buff); int i; for(i = 0; buff[i] != 0; i += 4) printf("%S", buff+i); } When I try to compile it with MSVC, I get the following errors: Commenting out GetLogicalDriveStrings(1024, buff); causes the code to com...