windows-7

Create shortcut from vb.net on Windows 7 box (64 bit)

柔情痞子 提交于 2019-12-11 01:22:21
问题 I am trying to create a desktop shortcut from vb.net code on a Windows 7 box (64 bit). The following code works on XP, but when run on Win7 I just get a message stating the App has stopped working: Imports IWshRuntimeLibrary Dim WshShell As WshShellClass = New WshShellClass Dim MyShortcut As IWshRuntimeLibrary.IWshShortcut ' The shortcut will be created on the desktop 'Win 7 MyShortcut = CType(WshShell.CreateShortcut("C:\Users\Public\Desktop\iexplore.lnk"), IWshRuntimeLibrary.IWshShortcut)

How to use unlink in Windows 7?

流过昼夜 提交于 2019-12-11 01:15:36
问题 I have a problem when using unlink in my Win 7 machine. This is my code in getFile.php $file_name = 'C:\xampp\htdocs\fw\tmp\my_file.php'; $myfile = fopen($file_name , 'a'); unlink(''.$file_name ); everytime I execute the code, i get an error message Warning: unlink(C:\xampp\htdocs\fw\tmp\my_file.php) [function.unlink]: Permission denied in C:\xampp\htdocs\fw\libraries\getFile.php on line 79 Anybody has a solution ? Thanks before, 回答1: You cann't remove files that are opened $file_name = 'C:

Web Setup Project not working

旧街凉风 提交于 2019-12-11 01:11:15
问题 'The installer was interrupted before [project name] could be installed. You need to restart the installer to try again.' I just moved to Win7, and I cannot get the .msi files to install from my Web Setup Projects that are built on that machine. The same projects build and work fine on my other Windows XP, IIS6, VS 2008 SP1 machine. I'm not sure if this is a IIS7 or Win7 issue, but I've done the following: I have all the IIS/ASP.net compatibility settings checked. I am an administrator, and I

Deployment of .net Web-service on IIS7 error 403.14?

拟墨画扇 提交于 2019-12-11 01:08:27
问题 I am trying to Deploy app on IIS 7 and follow the article http://www.codeproject.com/KB/aspnet/IIS7ASPNet.aspx but its giving error... I tried to find some solution on google but no success. please help 回答1: I got it, It start working as soon as I put default page. 回答2: Ran into the same thing today. Expanding on the previous answer. This error has nothing to do with whether you have directory browsing turned on or not. That's just a suggestion. The reason it throws the error is because IIS

How to use OpenCV in python 3.4 on windows 7 x64? [duplicate]

不羁的心 提交于 2019-12-11 00:59:41
问题 This question already has answers here : OpenCV for Python 3.x under Windows [duplicate] (3 answers) Closed 4 years ago . I have windows 7 x64 and python 3.4 . I try to use cv2 module: import numpy as np import cv2 img = cv2.imread('messi5.jpg',0) As I know, there is no way to use opencv 2 with python 3.4 . Therefore, I downloaded opencv 3 beta. But I don't understand how to use this stuff for my purpose. Folder ~\opencv\build\python\ contains python 2.7 folder , but there is not python 3.4

Access to HKLM registry branch on Win 7 from within application

大城市里の小女人 提交于 2019-12-11 00:55:25
问题 Is it possible to write to the HKLM registry branch in Win 7 from an application? My existing code is not able to write to the HKLM registry branch on Win 7 machines, while it is able to do this on XP machines. How do you allow an application read/write access to HKLM on Win 7, or should all applications now just use HKCU instead? What if I need to store settings on a machine basis rather than a user basis? 回答1: You need to decide whether you are writing an administrative app, that

.NET source debugging on Windows 7

断了今生、忘了曾经 提交于 2019-12-11 00:55:09
问题 We are trying to debug through a SQL Server Compact issue on a Windows 7 Enterprise RTM (64-bit) desktop running the .NET Framework 3.5, SP1. The application is crashing consistently, and we are trying to set up .NET Framework debugging for Visual Studio 2008, SP1. Using the scattered resources around the Internet, we set the options: Symbol Server = http://referencesource.microsoft.com/symbols Menu Tools -> Options -> Debugging -> Just My code = Disabled Menu Tools -> Options -> Debugging ->

Transparent Window Background (Python Tkinter)

℡╲_俬逩灬. 提交于 2019-12-11 00:31:04
问题 What I need is a tkinter window that is transparent, but with a image displayed on this window is not. I've seen the w.attributes('-alpha', 0.1) thing, but that makes the image transparent as well. I need just the background of the window transparent, so that an image on the window that has transparent parts, will show the Users desktop through these parts. Are there anyways to do this in Python? (specs: Python 2.7.1 Tkinter PhotoImage Windows7) 回答1: I would suggest another ui library pretty

SQL Server: cannot connect from local website (SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

橙三吉。 提交于 2019-12-11 00:19:01
问题 I'm developing a website using Visual Studio 2008 and Sql Server 2008 Express. I entered into developing, so code is right as there are some coleagues of mine running it correctly with the same tools. The problem is: once I run the website I cannot make it comunicate with the database . They both are in my local machine. The error thrown is: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible.

Date Modified isn't updated while StreamWriter is open

蓝咒 提交于 2019-12-10 23:38:57
问题 I have a logging solution and write to a textfile which is open when aplication is running. I use StreamWriter to write to file. My logger code is simply (to open stream and to write): public void Open(string filePath, bool append) { if (this.logWriter != null) throw new InvalidOperationException( "Logger is already open"); if (!Directory.Exists(Path.GetDirectoryName(filePath))) Directory.CreateDirectory(Path.GetDirectoryName(filePath)); this.logWriter = new StreamWriter(filePath, append);