windows-7

How do I convert a LPWSTR to a GUID?

橙三吉。 提交于 2019-12-10 15:23:34
问题 I'm working with the Windows 7 audio APIs, and I've hit a wall. Basically, I need to take an IAudioSessionControl2* and get an ISimpleAudioVolume* out of it. Now, it looks like I can call on IAudioSessionManager->GetSimpleAudioVolume() using the value of IAudioSessionControl2->GetSessionInstanceIdentifier(...). Note that this isn't exactly spelled out as such in the docs, but it seems like a reasonable behavior. The problem, GetSimpleAudioVolume() takes a GUID* and

How to use OR operator in findstr command from a windows 7 command prompt?

不羁的心 提交于 2019-12-10 15:16:47
问题 Findstr is supposed to support regular expressions and the way I am using it I need to have an 'or' to check if a file ends in ".exe" or ".dll". However I cannot get the or operation to work. When using '|' windows thinks I am trying to pipe the previous command and 'OR' is read as literally OR 回答1: findstr.exe in Windows system32 directory supports only a very limited set of regular expression characters. Running in a command prompt window findstr /? results in getting displayed help for

windows 7 task scheduler doesn't use updated path

旧街凉风 提交于 2019-12-10 15:16:21
问题 I just noticed that windows 7 task scheduler doesn't use the latest updated environment path variable. Task scheduler is up and running and I changed the path variable. New processes that run in the task scheduler have the old path. I had to kill the taskeng.exe so that it can start using the latest path. So looks like Task scheduler spawns new processes as child processes rather than new parent processes. Is there any work around for this without killing the task scheduler process? Regards,

Getting Valgrind on Windows 7

醉酒当歌 提交于 2019-12-10 14:59:56
问题 I'm learning C and want to install Valgrind on my system, however when I attempt to install Valgrin I get an error saying Valgrind is OS specific. Sorry I'm running Windows 7, with Mingw64 GIT installed. I've done some research and found this. According to that I need to run sh ./configure --host x86_64 w64-mingw32 However when I run this I get the following output: $ sh ./configure --host x86_64-w64-mingw32 checking for a BSD-compatible install... /usr/bin/install -c checking whether build

Question: Using Windows 7, Unauthorized Access Exception when running my application

只谈情不闲聊 提交于 2019-12-10 14:58:48
问题 My application is raising an unauthorized access error. While running my application, I try to access a directory in the following location: Application.UserAppDataPath. The Problem: It says I do not have permission to access the Application.UserAppDataPath directory Is there a way to set permissions within my application source code? Something like: Application.UserAppDataPath.SetPermissions() 回答1: Looking at your comment, you say this is your code: StreamReader sr = new StreamReader

What are the benefits of Windows 7 for software developers? [closed]

*爱你&永不变心* 提交于 2019-12-10 14:49:22
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago . I'm trying to make the case for upgrading my development machine to Windows 7 - I'm currently on Windows XP 32bit. I've already identified the fact that moving to a 64bit OS should help performance by allowing

How to use all the cores in Windows 7?

泪湿孤枕 提交于 2019-12-10 14:48:59
问题 I am not sure if this belongs to Stackoverflow or Superuser but I thought I would ask here. I have a console based application written in C which currently takes about an hour to terminate in Windows 7 64-bit OS. The task manager reports that the application is using only 25% of the available CPU. I would like to reduce the run time by increasing cpu usage. Is there any way to let the application use all four cores (the laptop has Core i5) instead of just one? I am assuming that task manager

Chrome won't show my HTML 5 video on my windows Computer (I have Divx)

心不动则不痛 提交于 2019-12-10 14:48:45
问题 I have the Divx plugin downloaded (i think) the html files play in all my other browers but chrome. Instead, all that shows up in chrome is a black box with the words Divx in them. Why? Here is my HTML5 code: <div class = "video-js-box"> <video class = "video-js" width = "675" height = "380" controls> <source src = "/videos/videofiles/Reversing_a_Track.mp4" type = 'video/mp4; codecs="avc1.42E01E, mp4a.40.2"';/> <source src = "/videos/videofiles/Reversing_a_Track.ogg" type = 'video/ogg; codecs

Trouble with VB6 app, bringing a dialog to front and focus on Windows 7

╄→尐↘猪︶ㄣ 提交于 2019-12-10 14:28:11
问题 I have a small utility app written in Visual Basic 6 that has been happily running on XP clients for many years until recently a client who is using Windows 7 has notified and shown me that the behaviour is different. When my VB app displays the dialog, it remains hidden until the user clicks on it in the taskbar. I changed the code so rather than using a ".show vbModal" command, I changed to displaying the form with non-modally, and then added various API calls like BringWindowToFront and

exit /b not working correctly when inside a block with other commands

我与影子孤独终老i 提交于 2019-12-10 14:12:40
问题 I have a batch file that needs to be run in a 32-bit context so contains a bit of code to call the 32-bit command processor with its own path. This script also needs to be able to return error code on failure which it does via exit /b 123 . However... When the exit is in a ( ) block, AND contains any statement after it, this does not get returned correctly. @echo off setlocal EnableDelayedExpansion rem Ensure we're running in 32-bit mode if not %PROCESSOR_ARCHITECTURE%==x86 ( echo Thunking to