windows-7

Strange threads in application in Win7 WOW64

冷暖自知 提交于 2019-12-13 13:33:15
问题 We are observing 4-6 threads on Windows 7 x64 in the application which have 3 threads and behaves normally on any Windows (either 32 or 64 bit) prior Windows 7. Process Explorer shows the following "unknown" thread: ntdll.dll!EtwDeliverDataBlock+offset after random interval the following threads appear: ntdll.dll!TpCallbackIndependent+offset ntdll.dll!TpCallbackIndependent+offset after that application can't create thread (error code 8, hot enough space ...). It seems to me that some system

The system cannot find the path specified

回眸只為那壹抹淺笑 提交于 2019-12-13 12:28:54
问题 I am trying to calculate sha1 hash for some of the files from location %system%\drivers\ using C#. I know files are at the exact location but when i use FILE.Exists("c:\\Windows\\System32\\Drivers\\1394ohci.sys") it always retuns false. C:\Users\administrator>dir c:\Windows\System32\drivers\1394ohci.sys Volume in drive C has no label. Volume Serial Number is 5A4F-1E60 Directory of c:\Windows\System32\drivers 11/21/2010 08:53 AM 229,888 1394ohci.sys 1 File(s) 229,888 bytes 0 Dir(s) 19,521,245

What SDK should I use for DirectX 11?

删除回忆录丶 提交于 2019-12-13 12:21:10
问题 I am very confused on what I need in order to use the latest version of the DirectX SDK. There is the DirectX SDK (June 2010), which is apparently deprecated and there is the Windows SDK for Windows 8.1. What is so confusing is that I can't figure out if the Windows SDK for 8.1 will work using Windows 7 and Visual Studio 2013 for Desktop, or if I have to use the DirectX SDK (June 2010) with Windows 7 and Visual Studio 2013 for Desktop. Also, if I use Windows SDK for 8.1, how do I include it

How to build MinGW W64

浪子不回头ぞ 提交于 2019-12-13 11:32:37
问题 I'm new to Stack Overflow, C++ and to MinGW W64. My problem is, is that I don't know how to build MinGW W64, all I know how to do is double click an exe and install the files onto my computer itself. So what I am asking is that, how do you build MinGW W64? ( http://mingw-w64.sourceforge.net/ ) If I learn how to build MinGW W64, I think I will be able to build other things without any help. I don't know what files to get to install MinGW W64. All I know is that I need gcc (for C) and g++ (for

How can I disable Ctrl-Alt-Del in windows 7 programmatically?

谁说我不能喝 提交于 2019-12-13 09:48:00
问题 How to disable Ctrl - Alt - Del in Windows 7 when the application loads? I'm looking for an example that disables Ctrl - Alt - Del when the app starts, and enables the combination again once it finishes. I found an example that disables the combination on Windows XP, however, it doesn't seem to work on Windows 7. Why? Is it not allowed on Windows 7 to disable Ctrl - Alt - Del ? Also, I'd like to know how to run an application as admin on Windows 7? 回答1: In my opinion this can be done only

C# Using PrintWindow

∥☆過路亽.° 提交于 2019-12-13 09:13:20
问题 I am trying to capture a window in win7 without disabling aero and I hear PrintWindow Works. But I'm not sure how to use it, I found some articles but I can't see any image or bitmap output in any of them Has anyone ever had experience with this function and knows how to use it? 回答1: Previous link here. Code sample from the same link: Graphics g = form.CreateGraphics(); Bitmap bmp = new Bitmap(form.Size.Width, form.Size.Height, g); Graphics memoryGraphics = Graphics.FromImage(bmp); IntPtr dc

How to extract without creating recursive folders

时光总嘲笑我的痴心妄想 提交于 2019-12-13 08:02:11
问题 I've not been able to extract a recursively encoded zip file into a flat target directory using VBS on Windows 7. Here's the core part of the zip extraction code: objTarget.CopyHere objSource, intOptions Where intOptions is given the value of 4096, from this list of values: http://www.robvanderwoude.com/vbstech_files_zip.php#CopyHereUNZIP So where the files in the zip are normally extracted to one or more subfolders (instead of the selected folder), the files extract to those subfolders. I

OpenFileDialog.AutoUpgradeEnabled doesn't work under Vista or 7?

拜拜、爱过 提交于 2019-12-13 06:44:01
问题 If I specify OpenFileDialog.AutoUpgradeEnabled = true, my program still shows the old XP-style dialog. Any idea why this would happen? This is after I enable theming in Main() [STAThread] static void Main() { Application.EnableVisualStyles(); Application.Run(new Primary()); } and this is my dialog code: private void OpenProgramFile() { OpenFileDialog programFileDialog = new OpenFileDialog(); programFileDialog.Filter = "Program files (*.exe;*.lnk)|*.exe|All files (*.*)|*.*"; programFileDialog

Glassfish server 3.1.2 only works once

我们两清 提交于 2019-12-13 06:28:28
问题 I am having trouble with Glassfish 3.1.2 on Netbeans 7.3. Every time I click on the "Stop server" button on Netbeans, I have to create a new domain because it does not start when I run the application. I have been looking around, but until now, I have not found any possible solution for this. Does anyone know what may be happening with this? Thanks. 回答1: Remove the NetBeans configuration file before opening NetBeans. On Windows 8 this file is in C:\Users\Group\AppData\Roaming\NetBeans\8. Just

Renaming file names with a BAT file

若如初见. 提交于 2019-12-13 06:24:04
问题 Need to edit the file names of set of video files in a single folder in Windows 7. Interested in a simple way to do the following modification to set of file names Replace the "." with the character "x" eg. original: 04.19 - Lady & Peebles.mp4 renamed: 04x19 - Lady & Peebles.mp4 What is a suitable way to do this manually using a Batch file? 回答1: Try Like this @echo off setlocal EnableDelayedExpansion for /f "delims=" %%a in ('dir /a-d/b *.mp4') do ( set "$File=%%~na" echo ren "%%a" "!$file:.