windows

How to debug filesystem "access denied" errors on win32?

Hi all I'm having a hell of a time with our build scripts right now: I'm using Waf to drive our build process, and everything works great, except on Windows, where I am getting intermitent errors during builds. The errors are always basically "access denied" errors of one form or another, relating to temporary files I have created duri...

MFC: troubleshooting on which thread is responsible for causing a crash

I currently have my project running two separate threads (one for MFC operations, like views/formviews, application window, etc., and one for an infinite while loop in its main function). However, for certain situations, when I run my program in debug mode, I have noticed that one of the threads' exit status was a 1 (in other words, it r...

Accessing a bitmap resource fails with error code 0x716

So I don't know why I keep getting this error. Here's the relevant code: //////////////////////// In resource.h /////////////////////////// //{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by Freestyle.rc // #define IDB_BITMAP1 101 // Next default values for new objects // #ifdef APSTUD...

Windows advanced file matching

I'm trying to use a batch file to list files in a directory such that the file name only (minus extension) matches only numeric patterns, e.g. something like 125646543.pdf which would be easy to express as a regex [\d]+\.pdf but of course I don't have such niceties with Windows-only mechanisms... I'm trying to do this with Windows-only m...

What is the closest thing to Windows COM/DCOM in the Linux world?

Anything higher-level, and more comprehensive than pipes/sockets? ...

git status takes a long time to complete

I'm using git to manage files in a local directory on a windows machine - no network is involved here, I'm not pushing or pulling to/from another machine. My directory has maybe 100 files in it, all test files, pretty small. When I run "git status", it regularly takes 20-30 seconds to complete. Is this normal? Is there anything I can...

Writing Exceptions to the Windows Log File

I'd like to catch my exceptions and log them in the Windows log file. How do I go about opening and writing to the Windows log? ...

Execute a process and return its standard output in VC++

What's the easiest way to execute a process, wait for it to finish, and then return its standard output as a string? Kinda like backtics in Perl. Not looking for a cross platform thing. I just need the quickest solution for VC++. Any ideas? ...

How to correctly configure netbeans 6.7 and c++ on windows?

Hello. I have installed and configured NetBeans 6.7 for c++ according to the official manual: http://www.netbeans.org/community/releases/67/cpp-setup-instructions.html#mingw Configuration window looks like this: Unfortunately, at 'compile' command following line is displayed: /usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS=...

rtf / doc / docx text extraction in program written in c++/qt

I am writing some program in qt/c++, and i need to read text from ms word/rtf/docx files . And i am looking for some cmd program that can make that extraction . It may be several progs. the closest thing i found is http://silvercoders.com/index.php?page=DocToText but it has several bugs so i cant use it . I have also ms word installed on...

DLLs and STLs and static data (oh my!)

OK..... I've done all the reading on related questions, and a few MSDN articles, and about a day's worth of googling. What's the current "state of the art" answer to this question: I'm using VS 2008, C++ unmanaged code. I have a solution file with quite a few DLLs and quite a few EXEs. As long as I completely control the build enviro...

Recommended books for Windows desktop application performance

I'm building a desktop application that runs in a Windows environment using .net technology. It's important that this application run smoothly and consume as little of the user's system resources as possible, since the user is likely to keep it running throughout the work day. I'm looking for good, in-depth resources on how to constru...

IIS - Make Directory an Application from the CLI for .NET application

I have IIS installed on a server configured with asp.net 2.0 and a directory located at C:/Inetpub/wwwroot/application. I also got an automated process for zipping up an asp.net web application, scp'ing that .zip file to said server, blowing away the previous contents of the application/ directory, and unzipping the .zip file there, and...

Access error occured in Ruby 1.9 + MySQL

I can't connect mysql db with ruby1.9 OS -> Windows XP SP2 Ruby -> 1.9.1p0 dbi -> 0.4.2 dbd-mysql -> 0.4.3 MySQL API module for Ruby -> 2.7.3 DB(MySQL) -> 5.1.34-community Because msvcrt-ruby18.dll was not found, I was not able to start this application. What's wrong ...

How do I put a shortcut on the Programs menu on Windows Mobile in the installer cab?

Where do I put the shortcut icon for my mobile application in the Installer project for a Windows Mobile project so that when the cab is installed the icon will show on the Programs Menu? ...

Using TAPI(telephony API) for getting Signal strength

Hi I Have wireless modem/usb datacard .And i am using TAPI for getting signal strength on that device.but i am always getting value 65535 means highest signal strength.but its varying.so how can i get the exact signal strength value according to that usb datacard. ...

Adding command button to Windows Logon screen

I want to implement a self reset password functionality for Windows users. When the Logon screen prompts the domain users should be presented with a forgot password button which will take the user to a passwrod reset wizard. So the problem is how to add a command button to the standard windows logon screen. ...

Is there a way to inject behavior to csrss.exe and modify/enhance windows console?

I'm aware of Console2 and similar solutions, but I would really like to enhance every console window in my system. Any ideas? ...

Problem registering Win + L hotkey in c#

I am using the below code to disable the hotkeys like Alt + f4, ctrl + c which are working perfectly. But I could not register win + L using the below code. namespace KioskMode { public partial class Test : Form { #region Dynamic Link Library Imports [DllImport("user32.dll")] private static extern int Fi...

Drive Letter to Device Instance ID

How do I get from a drive letter to a device instance ID? My process starts with a device arrival message. I have been successful in getting the drive letter from the arrival message and in opening the dvd tray. I have searched the various Setup API items; but I haven't found anything that gets me from a drive letter to a device instan...