windows-7

How to read a text file that is already in use (Windows C++)

那年仲夏 提交于 2020-01-05 12:33:28
问题 I have an application that creates a text log file using an std::ofstream using std::ofstream::app to create it. This application is writing logs often, sometimes only milliseconds apart. I want to write a second application that reads in and analyses this log file whilst the first application is still writing to it I have some working code, using ifstream , that loads & processes a standalone text log file, but this code fails when I try to use it on the text log file that is currently being

Cannot determine the location of the VS Common Tools folder

给你一囗甜甜゛ 提交于 2020-01-05 10:09:45
问题 I have a batch file that calls MSBuild and builds three Visual Studio solutions: call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" MSBuild solution0.sln /property:Configuration=Release MSBuild solution1.sln /property:Configuration=Release MSBuild solution2.sln /property:Configuration=Release This works fine. However, I want to prompt the user to select a version of the program to build. Depending on the user input we build a particular set of solutions. My problem is

Why application that require administrative privileges cannot run automatically on Windows startup(windows 7)?

时间秒杀一切 提交于 2020-01-05 08:39:15
问题 I have a application(which runs on windows7 and requires run as administrative) that need to run automatically when windows starts up, so i added a registry key under "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" as usual, but my application won't startup automatically even the UAC dialog doesn't promtp, after search from google. I know i can use task scheduler to workaround this, but is there anyboday can tell me why the "run" registry way doesn't work? why the UAC

Signing CAB file with signtool not working any more (The signer's certificate is not valid for signing)

冷暖自知 提交于 2020-01-05 08:08:46
问题 Few month ago a was able to successfully sign CAB file with test certificate I have created on my server. Here are the steps I have taken: makecert.exe -sv "Demo.pvk" -n "CN=Demo Company,E=demo@gmail.com" "Demo.cer" cert2spc.exe "Demo.cer" "Demo.spc" pvk2pfx.exe -pvk "Demo.pvk" -pi "pvk_password" -spc "Demo.spc" -pfx "Demo.pfx" -po "pfx_password" signtool.exe sign /f "Demo.pfx" /p "pfx_password" /v "D:\Setup.cab" All the steps are successfull except the last one with signtool that returns:

Windows: Programatically determine if hardware acceleration can be disabled

好久不见. 提交于 2020-01-05 07:13:21
问题 Our application includes a screen capture capability. Some applications use overlay surfaces to display video so we included an option to disable hardware acceleration in order to force those applications into software rendering mode so that we can screen cap them. This worked fine under Windows XP. However, under Windows 7 it appears, from my research, that very few display drivers support the ability to disable hardware acceleration since the DWM uses DirectX9 rendering. On those sysetms

Create an application using TAPI on windows 7 - where to start

大兔子大兔子 提交于 2020-01-05 06:26:12
问题 does it working with it and which is the good start for TAPI... i want to create an application which automatically answer/record incoming call and also call to someone recorded message. want this in .net (asp.net or c# desktop no problem). 回答1: It seems unlikely that Microsoft would have removed TAPI from Windows 7 so ultimately this will depend on the telephone system and drivers you are using. Avaya and Cisco usually provide good drivers. We have an Avaya phone system in work and a few

SSL Enabling Problem: Tomcat in Windows 7 [closed]

 ̄綄美尐妖づ 提交于 2020-01-05 05:58:10
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I downloaded Tomcat 7.08 Windows Service Installer and installed it. I edited the server.xml to enable https connector port @ 8443 I already created the certificate and key pair using the keytool. keytool -genkey -alias techtracer -keypass ttadmin -keystore techtracer.bin -storepass ttadmin i started the server

OpenGL and VS2010 unresolved external

微笑、不失礼 提交于 2020-01-05 04:23:05
问题 I want to use GLUT to simplify my code and work. I'm using windows 7 (64 bit) and Visual Studio 2010. I did everything like in this tutorial and still can't compile my code... I get these errors: Error 2 error LNK1120: 1 unresolved externals <path> Error 1 error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartuL The code I use: #include <GL/glew.h> #include <GL/glut.h> void display (void) { glClearColor(1.0f, 0.0f, 0.0f, 1.0f); glClear(GL_COLOR_BUFFER

Qt Creator doesn't find my Android device

隐身守侯 提交于 2020-01-04 18:30:13
问题 The steps I've taken so far are: Downloaded qt-opensource-windows-x86-android-5.3.0-RC.exe from http://download.qt-project.org/development_releases/qt/5.3/5.3.0-rc/ and installed it. Downloaded the Android SDK, etc., according to Creator's Android Configurations dialog: Ran my application. A dialog came up saying Device not found , and suggesting that I run adb devices to see if the device is indeed available. I ran that, but no devices were connected. 回答1: After reading this blog post, I

cannot compile gtk# example

南笙酒味 提交于 2020-01-04 15:29:48
问题 I'm trying to compile the "GTK# Hello World" example at http://mono-project.com/Mono_Basics in Windows 7 (64bits). I'm getting this error: error CS8027: Couldn't run pkg-config: ApplicationName='pkg-config', CommandLine ='--libs gtk-sharp-2.0', CurrentDirectory='' I have successfully compiled and run the "Console Hello World" example. I have installed Mono-2.10.8. Thanks in advance for your help 回答1: I tried to compile a GTK# example in a Windows 7 with Mono 2.10.8 and the options you used