windows

Howto access thread data outside a thread

Question: I start the MS Text-to-speech engine in a thread, in order to avoid a crash on DLL_attach. It starts fine, and the text to speech engine gets initialized, but I can't access ISpVoice outside the thread. How can I access ISpVoice outside the thread ? It's a global variable after all... You find XPThreads here: http://www.codepr...

How to do live streaming from WebCamera using ffserver on Windows?

How to do live streaming from WebCamera using ffserver on Windows? I have windows. FFserver installed on it. Web Camera attached to it. How to do streaming of that web camera using FFserver? ...

Disable Painting of the VScrollbar in a System.Windows.Forms.RichTextBox

I have a custom control inherited from RichTextBox. This control has the ability to "disable" rich text editing. I achive this by just setting the Rtf property to the text property during the TextChanged event. this is how my code looks like: private bool lockTextChanged; void RichTextBox_TextChanged(object sender, Even...

Windows Kernel Debugger API?...accessing strings

Hi! Does everyone out there knows how can you read windows kernel debugger strings generated by calls to kdPrint or debugPrint functions? Reading in user mode especially but it is also good in kernel mode! It's the same thing as DebugView does but I want to filter and to work only with certain messages (strings) given to the debugger!...

Sharing some info with all DLLs pulled into a process

Hi all, We've got an Enterprise system which has many processes (EXEs, services, DCOM servers, COM+ apps, ISAPI, MMC snapins) all of which make use of many COM components. We've recently seen failures in some of the customer deployments, but are finding it hard to troubleshoot the cause. In order to track down the problem, we've augmen...

Is it possible to handle proxies at socket level?

Hi, I'm doing some networking programming for Windows right now envolving the HTTP protocol. Is it possible to handle prosies at socket level? And SSL proxies? If not, does Windows provide something at a higher level to handle them? I wouldn't like to use a third party library, but if there's no other way to go I would reconsider it. A...

Where can I download GCC binaries for windows?

I want to play around with GCC 4.5 but on GCC's site it says that they don't supply binaries. I think downloading the source and building GCC from scratch is a bit of overkill (even if the OS, I'm using, Windows, is rather obscure). Where can I download GCC 4.5 for Windows? (I don't want all of Cygwin, just GCC) ...

Compiling FAPWS3 on Windows 7?

Hi folks, I found no information whatsoever on how to install FAPWS3 on my Win7 machine. Help would be immensely appreciated! :) ...

RichEdit's EM_AUTOURLDETECT message not always sent

To describe this issue, the best would that you would test my application with following usecase: Application: http://ubuntuone.com/p/nF/ Open application; Click on the ">" captioned button; Click on same button again; Click on the same button again. As you can see - URL is correctly detected in first expanding, but in any further ...

Error starting mongrel on windows after using RubyInstaller 1.9.1 RC2

I installed Ruby via the RubyInstaller 1.9.1 RC2 available from rubyforge, updated gems, and installed rails. Everything worked fine using webrick. For fun, I installed mongrel using "gem install mongrel". The installation went fine: Successfully installed gem_plugin-0.2.3 Successfully installed cgi_multipart_eof_fix-2.5.0 Successful...

How to disable selective keys on the keyboard?

I'd like to write an application which disables certain keys on the keyboard while it's working. More specifically I'm interested in keys that might make the application loose focus (like ALT+TAB, WinKey, Ctrl+Shift+Esc, etc.) The need for this is has to do with babies/animals bashing wildly at the keyboard. :) My first idea was to use ...

GetForegroundWindow not working when C# program is run from a shortcut key of a desktop shortcut

I'm trying to get a handle to the foreground window in C#/Net 2.0/WinForms by calling the native GetForegroundWindow WinAPI function, in my app's form's constructor. When I run the program directly from Windows Explorer or Total Commander, it correctly identifies the Windows Explorer or Total Commander window. However, if I create a sh...

Restoring using SyncBack without profiles

I backed up my internal hard drive (C:) using SyncBack onto an external (USB) hard drive with maximum compression. I then performed a clean install of Windows Vista onto the computer. I forgot to copy the SyncBack logs before the clean install. And now when ever I try to restore a directory, the RAR/ZIP files are copied to the system...

Windows service porting to linux

I am porting an application which runs as a background service in windows at startup, we are porting the application to linux(SUSE Enterprise server), I'am completely new to linux. Can somebody help me on how to proceed with this. Like Should I build the linux executable After builiding the binary, what changes should I make to linux s...

How to place multiple formats on the clipboard?

For example, what Wordpad did when I press "Ctrl+C"? It places many different format to clipboard. So Notepad can get the text without any color or font...etc, and you still can keep the original format when you paste in another Wordpad window. The MSDN said I should call SetClipboardData multiple times. But it doesn't work at all. ...

running Echo from Java

I'm trying out the Runtime.exec() method to run a command line process. I wrote this sample code, which runs without problems but doesn't produce a file at c:\tmp.txt. String cmdLine = "echo foo > c:\\tmp.txt"; Runtime rt = Runtime.getRuntime(); Process pr = rt.exec(cmdLine); BufferedReader input = new BufferedReader( ...

WPF or Windows Forms

I've been playing around with C# console applications for about a year and I want to move on to creating GUI applications. I have never done any GUI development besides basic Java applications, but I want to continue using C#. Should I start learning Windows Forms or jump straight to WPF? Is there a huge difference? Does WPF build on top...

JavaScript - modal window with given html

Hi guys, how can I open a modal window using javascript only. I can't use own html-file so I have to pass html-data directly to method which will show window. Could you help me with this? upd: I can't use any own library. ...

Customizable Windows right-click file uploader for CMS?

I'm looking for a "right-click upload" application like RightLoad - an application that can upload media files to a remote FTP server from the Windows Explorer's context menu. I want to customize the application to serve as a customized image uploading tool to a PHP-based CMS. The user would upload images and other media files to a def...

Is it possible that an C++ application use CRT 4053 when the manifest uses 762?

My application is compiled on a development PC with a manifest 762: However at runtime, on another release PC, the application uses the 4053 version of the file. c:\windows\winsxs\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4053_x-ww_e6967989\MSVCR80.DLL Somewhere along the execution of my application I get a runtime error...