windows

Screen recording is not very clear

Hello everyone, I am using Windows Media Encoder 9 on Windows Vista + VSTS 2008 + C#. And I find the recorded video quality is not very good, the major issue is the details are not clear enough -- for example, when list a folder in explorer containing a lot of files (file names are not very clear), when quickly scroll-up/scroll-down a f...

What IDE is needed to develop a first time simple Windows application?

I have never done any Windows coding and I would like to give it a try. To create a simple application e.g. a window that displays a plain "Hello World" message. What IDE (open source?) would I need to start of with and what language is used for the native Windows applications? This is not for professional use, just for an amateur. ...

Conditional compilation in C++ based on operating system

I would like to write a cross-platform function in C++ that contains system calls. What conditional compilation flags can I check to determine which operating system the code is being compiled for? I'm interested mostly in Windows and Linux, using Visual Studio and GCC. I think it should look something like this: void SomeClass::SomeFu...

Linking non-CLR code to .NET app

I'm new to Visual C++, .NET, and the Windows world of programming (coming from Objective-C/Cocoa), and I'm trying to use the CFLite (Open CoreFoundation Lite) library, which I compiled to a .lib file. It's written in pure, unmanaged C, and I'd like to use it in my managed CLR .NET app. When I try to link it and use the function CFSTR, wh...

mkdir -p Linux..Windows..?

hi all, thanks to all for ur valuable replies.. Also, in linux mkdir -p creates a folder tree.. What is the equivalent option in Windows( to create a folder tree) ? Is there any? Renjith G ...

Should I use special Unicode characters for punctuation marks such as ellipsis in programs?

Unicode has a set of characters for punctuation such as ellipsis (…), En-Dash (–) and others. It's believed that using these characters improves typography and therefore visual appearance of the texts. Many development tools, Visual Studio included, support Unicode and so I could easily make use of these characters in programs resources...

Fastest way to delete a tree of empty directories in batch file

I need to write a batch file that received a directory that contains a huge number of empty sub-directories and deletes them all. What's the fastest way of doing this? (by fast I mean not like what Windows Explorer does when you try to delete such a directory...) Clarification: I'm not trying to delete only empty directories. It just ...

SSL Session reuse with SChannel (Windows)

Hello I have a program that use schannel.dll to make a SSL connection to remote server. But I'd like to disconnect from server often and reconnect without the need to renegotiate shared key again. I know that SSL support this, but don't know how to make it with SChannel. Can you help me? Here are some links that can help: Creating a ...

How to set name to a Win32 Thread?

How do I set a name to a Win32 thread. I did'nt find any Win32 API to achieve the same. Basically I want to add the Thread Name in the Log file. Is TLS (Thread Local Storage) the only way to do it? ...

Installing/registering win32 OpenSSL libraries (distributed with my app)

My application depends on OpenSSL libraries (through Qt networking modules; you can't compile it into Qt statically, because of legal issues) There's this project - Win32 OpenSSL Seems like all I need is to copy the two dlls into System32 and register them. copy ssleay32.dll %WINDIR%\System32\ssleay32.dll copy libeay32.dll %WINDIR%\S...

Changing a batch file when its running

I am running a long running batch file. I now realize that I have to add some more commands at the end of the batch file (no changes to exisiting content, just some extra commands). Is it possible to do this, given that most batch files are read incrementally and executed one by one? Or does the system read the entire contents of the fil...

FileVersionInfo.GetVersionInfo in Ruby?

I would like to get file version info for executable files on Windows with Ruby. Is there a way to do that? ...

GetDiskFreeSpaceEx with compressed disk

I want to get the free space on a compressed disk to show it to a end user. I'm using C++, MFC on Windows 2000 and later. The Windows API offers the GetDiskFreeSpaceEx() function. However, this function seems to return the "uncompressed" sized of the data. This cause me some problem. For example : - Disk size is 100 GB - Data size is...

mercurial windows batch file for pulling changes to multiple repositories

Hi all, I am a mercurial user on windows and I am trying to write a batch file to check for incoming changes to a number of repositories stored in a common folder (i.e. there could be 10 or so small mercurial repos under a main folder). I have the following batch file that successfully iterates through the multiple repositories and runs ...

Why can't I start a named Erlang node in Windows?

I'm trying to start a named Erlang node using the -sname option in Windows XP Home, but when I run erl, it prints out a long error message, which I don't understand, and quits: >erl -sname allyourcode {error_logger,{{2009,5,25},{16,20,57}},"Protocol: ~p: register error: ~p~n",["in et_tcp",{{badmatch,{error,econnrefused}},[{inet_tcp_dist...

file size c is different than the size data string's size

I have a file I'm writing to and then changing the size of it to the size of text written to it something like: FILE * file... I get all the data from the file and change the file's size to the data's size but it differs. The string's size is smaller then the filelength and it cuts it and loses data. What might be the problem? while(...

Creating Makefile in Windows

I have a folder named 'X'. In X I have two subfolders named 'src' and 'include'. The 'src' folder contains a C file 'main.c', and the 'include' folder contains a file 'main.h'. I want to write a makefile to build these files(from folder X) in windows command prompt. I have tried a lot but with no effect. First of all I need the make fi...

Signing Windows x64 drivers to work without the test mode enabled

Hi, I would like to make my drivers to install on x64 Windows without the need to switch to Test Mode. Could you please advise how to achieve this? Thanks ...

What version of .NET ships with what version of Windows?

Looking for a list of Windows versions (service packs included) and what version of .NET is natively1 available. Example: Windows A - .NET Framework Z Windows A Service Pack 1 - .NET Framework Z Windows A Service Pack 2 - .NET Framework Y 1 - Natively means that is there with no installs done. ...

How to create an application that listens to windows events?

How do i write a windows application that listens to particular keys strokes to launch it! just the way google desktop app works,press ctrl twice and it pop up! I would prefer examples in delphi, but i dont mind other languages to! For starters i assume it should be a service running in windows (i can be able to create a service applic...