windows-7

Visual Studio Unit Tests : dll is not trusted

♀尐吖头ヾ 提交于 2019-12-19 11:32:10
问题 I'm struggling getting some unit tests running and wondering if anyone might have anything insightful. The setup is that we've got a bunch of referenced DLL's on a server and when I try and execute I get the old Test Run deployment issue: The location of the file or directory 'c:\source\ProjectName\bin\debug\3rdPartyLibrary.dll' is not trusted. I've tried the old caspol command: caspol -m -ag 1.2 -url file:\server\binaries* FullTrust Which seems to work for everything bar one DLL. I'm

Visual Studio Unit Tests : dll is not trusted

▼魔方 西西 提交于 2019-12-19 11:31:43
问题 I'm struggling getting some unit tests running and wondering if anyone might have anything insightful. The setup is that we've got a bunch of referenced DLL's on a server and when I try and execute I get the old Test Run deployment issue: The location of the file or directory 'c:\source\ProjectName\bin\debug\3rdPartyLibrary.dll' is not trusted. I've tried the old caspol command: caspol -m -ag 1.2 -url file:\server\binaries* FullTrust Which seems to work for everything bar one DLL. I'm

Visual Studio Unit Tests : dll is not trusted

别来无恙 提交于 2019-12-19 11:31:00
问题 I'm struggling getting some unit tests running and wondering if anyone might have anything insightful. The setup is that we've got a bunch of referenced DLL's on a server and when I try and execute I get the old Test Run deployment issue: The location of the file or directory 'c:\source\ProjectName\bin\debug\3rdPartyLibrary.dll' is not trusted. I've tried the old caspol command: caspol -m -ag 1.2 -url file:\server\binaries* FullTrust Which seems to work for everything bar one DLL. I'm

How to draw Windows 7 taskbar like Shaded Buttons

老子叫甜甜 提交于 2019-12-19 11:26:46
问题 Windows 7 taskbar buttons are drawn on a shaded background. The color shade somehow reacts on where the mouse is over the button. I'd like to use such buttons in my application. How can i do that ? 回答1: Perhaps try DrawThemeBackground http://msdn.microsoft.com/en-us/library/bb773289(VS.85).aspx Give it the BS_PUSHBUTTON constant. I've used this in Windows XP to draw the plush blue XP themed controls, but not in Aero, but it's worth a try. 回答2: The effect is called "Color Hot-track". It does

How to draw Windows 7 taskbar like Shaded Buttons

我是研究僧i 提交于 2019-12-19 11:26:30
问题 Windows 7 taskbar buttons are drawn on a shaded background. The color shade somehow reacts on where the mouse is over the button. I'd like to use such buttons in my application. How can i do that ? 回答1: Perhaps try DrawThemeBackground http://msdn.microsoft.com/en-us/library/bb773289(VS.85).aspx Give it the BS_PUSHBUTTON constant. I've used this in Windows XP to draw the plush blue XP themed controls, but not in Aero, but it's worth a try. 回答2: The effect is called "Color Hot-track". It does

Windows 7 - Can't update my program's files in C:\Program Files

这一生的挚爱 提交于 2019-12-19 11:24:26
问题 I have an addin program that works with MS Word (version 2007). It is located in the C:\Program Files location. I installed Windows 7 and then went to make a routine change to my files in this location and it would only bring up a read only file. How can I grant myself permission to write to my own program? I cannot change this location or use any other workaround. I have this product out to 25 different companies and I can't change the programming to work from any other location. Thanks 回答1:

Environment Variable to determine the OS type (Windows XP, Windows 7)

為{幸葍}努か 提交于 2019-12-19 10:52:15
问题 I want to differentiate between Windows XP and Windows 7 in a XML file. Thought i will use an environment variable for it inside the XML. However I could not find any system environment variable defined in windows that gives this information. I see the %OSTYPE% variable but it is only available in Windows 7. It is not defined in XP. Is there anyway i could do this? Note that i would like a solution which purely depends on system environment variables. I do not want to create new variables

Batch script to create folders based on filenames

*爱你&永不变心* 提交于 2019-12-19 10:45:11
问题 I have a folder with a lot of PNG images that I want to create folders for based on their filenames. I would then want the files to be moved into their respective folders of the same name and renamed to 0000.png. Example: - abcd.png - efghi.png - jklm.png - nopqr.png - stuv.png - wxyz.png To: - abcd/0000.png - efghi/0000.png - jklm/0000.png - nopqr/0000.png - stuv/0000.png - wxyz/0000.png 回答1: from the command line for /f %f in ('dir *.png /b') do md %~nf & move %f .\%~nf\0000.png if in the

Making Tkinter windows show up in the taskbar

时间秒杀一切 提交于 2019-12-19 10:06:37
问题 I want a program of mine to show up in the taskbar, but still not have the traditional windows boarder. How can I go about this? I know of self.overrideredirect(1) , however this removes my program from the taskbar. This is for Windows 7. 回答1: I make no claim about this being the 'correct' way to do it, but see if this works for you: try: from tkinter import * except ImportError: from Tkinter import * class NewRoot(Tk): def __init__(self): Tk.__init__(self) self.attributes('-alpha', 0.0)

Adding serverRuntime tag in webconfig cause 500.19 error

拜拜、爱过 提交于 2019-12-19 09:47:08
问题 Hi Guys after spending nearly one day i thought it is time to ask the community. I have just downloaded asp.net project from TFS on my another laptop and couldn't get it to run. I have narrowed down the issue and it is something to do with my webconfig setting and setting is <serverRuntime uploadReadAheadSize="128000000" /> If I comment this setting error goes away but I am just wondering why I have to comment this out when it is working on my other laptop for same project. Error i get upon