windows-7

Copy to Program Files under Windows Vista/7

一世执手 提交于 2019-12-23 17:48:04
问题 I have written a wizard in C++ which installs some files to the program files folder under windows. As I understand, I need Admin rights to write to program files under Vista/7. So my question is: Is there a way to turn on Admin rights while the application is running respectively only for one wizard page? Or do I have to start another process with Admin rights for this one wizard page? 回答1: Typically you have a shield logo'd button and then shell out to another process whose manifest

the application was unable to start correctly 0xc00007b

北慕城南 提交于 2019-12-23 17:27:58
问题 I have a win32 application. Trying to run in windows 7 64-bit OS in VisualStudio 2008. Have installed x64 Environment. So when i'm trying to run my project i'm getting this error "the application was unable to start correctly 0xc00007b". I have no link errors too. Anyone any suggestions please. 回答1: i got the same issue as you. I had a application Win32. When i converted this application Win32 to X64 with Visual Studio 2010, the application x64 is compiled successfully. But when i ran it, it

Domain compatibility: where should shared data be written?

天涯浪子 提交于 2019-12-23 17:19:07
问题 We've written an application that works fairly well in XP, but is having serious migration issues to Vista and Windows 7, probably due to where user data is being written. The use case is this: Individual users need to log in to the machine and use it to acquire data. Supervisor users need to be able to look over the shoulder of individual users and verify that they're performing their jobs properly. These supervisors also need to check system logs to make sure that the system is performing

Modify an existing registry key value in c#

可紊 提交于 2019-12-23 16:59:45
问题 I want to modify a data in registry path SOFTWARE\Wow6432Node\Program\SubProgram using C# code in windows 7. I am able to read the value but I can't write into Registry . Here is the code: RegistryKey SUBKEY; RegistryKey TAWKAY = RegistryKey.OpenRemoteBaseKey(Microsoft.Win32.RegistryHive.LocalMachine, ""); string subkey = "SOFTWARE\\Wow6432Node\\Program\\SubProgram "; if (TAWKAY.OpenSubKey(subkey) != null) // Get values from Registry { TAWKAY = RegistryKey.OpenRemoteBaseKey(Microsoft.Win32

Converting .mp4 to .webm with FFMPEG

二次信任 提交于 2019-12-23 16:27:52
问题 Any chance someone can help me make this a 2 or 3 pass command: Using "FFmpeg Win64 Static build by Kyle Schwarz, compiled on: Sep 19 2012 16:31:43" in the Command Prompt of Windows7(x64). I am a newbie to FFMPEG and trying to convert videos for my website from .mp4 to .webm (videos edited and mixed in AdobePremiereProCS6 where then encoded into .mp4 from .mts Canon HXG10 recordings). Original video file is 1080p quality. c:\ff/ffmpeg -i c:\ff/xxx.mp4 -codec:v libvpx -quality good -cpu-used 0

stdin/stdout communication between Java program and C program under 64 bit windows 7

懵懂的女人 提交于 2019-12-23 16:06:06
问题 I have a C program which gets spawned from a Java program. The C program is mine, while the Java program is third party. The Java program somehow sets things up so that it communicates with my program via stdin/stdout. The system has been working fine under 32-bit Windows XP for years. I have just purchased a new machine with 64-bit Windows 7. When I ran the Java program (from a "dos" box), it launched my program successfully, and it sent my program a command, which my program successfully

OpenGL with GLUT on windows 7, fullscreen mode not showing the message box

给你一囗甜甜゛ 提交于 2019-12-23 15:44:21
问题 I wrote an OpenGL app in C++ a while ago, back when my operating system was Windows XP. I used GLUT (plane ol' version) to show the window and also used full screen mode. There are times when I displayed a message box (MessageBoxA method, using the MB_TASKMODAL modifier). In windows XP the message box was being displayed nicely over the full screen graphics, but it seems that something has changed in windows 7. Now, the application behaves like the message box is displayed, mainly, the

Get Last Write Time is returning a strange value

青春壹個敷衍的年華 提交于 2019-12-23 13:27:04
问题 I'm trying to get the last modified date of a file in Windows 7 - I just edited it, so in the properties, the Last Modified value is listed as 11/30/2013 4:55 PM . However, when I access the file using: DateTime lastMod = File.GetLastWriteTime(file); I output the value: MessageBox.Show(lastMod.toString()); This always gives 12/31/1600 6:00:00 PM , regardless of which file I'm working with, regardless of creation time, modification time, etc. 回答1: I suspect you're using the wrong file name.

Display a complete application in Windows 7 taskbar?

天涯浪子 提交于 2019-12-23 13:08:19
问题 On Windows 7, is it possible to create an application to be displayed in the taskbar? What I have in mind is a small widget like a media player or a weather widget, etc. Something like the mockup below: Any idea? 回答1: Yes it's possible. What you are looking for is a toolbar or sometimes referred to as "desk band": http://msdn.microsoft.com/en-us/library/windows/desktop/cc144099.aspx#desk_bands 来源: https://stackoverflow.com/questions/11345253/display-a-complete-application-in-windows-7-taskbar

x64 modules in a wow64 process?

落爺英雄遲暮 提交于 2019-12-23 13:05:11
问题 I have a small 32bit process I'm debugging on win7 x64 and I see that it loads "C:\windows\sysWow64\ntdll.dll" as expected, but also "C:\windows\system32\ntdll.dll" . I know that x64 modules and x86 modules do not mix, but here they are... mixing... How can it be? 回答1: This is a special 'feature' of WOW64, see this article on MSDN. the relevant part is: The WOW64 emulator runs in user mode. It provides an interface between the 32-bit version of Ntdll.dll and the kernel of the processor, and