windows-7

Launching a Child Process and the windows 7 taskbar

佐手、 提交于 2019-12-10 11:03:53
问题 We have an application that self-updates using a Laucher.exe process which copies down new App.exe and DLLs from a server then runs them in a separate process. This was all working very well until the arrival of the Windows 7 taskbar... Problem is in Windows 7, if the user pins the Launcher.exe to the task bar (by right-clicking the shortcut to Launcher.exe) then this happens... When you start the program the "pinned" taskbar icon momentarily gets focus while the launcher is running but then

Error in registering DLL

一世执手 提交于 2019-12-10 11:02:05
问题 This question was migrated from Super User because it can be answered on Stack Overflow. Migrated 6 years ago . I'm trying to register DLL with command regsvr32 dll_name.dll but I'm getting below error The module "Addition.dll" was loaded but entry point DLLRegisterServer was not found Make sure that "Addition.dll" is a valid DLL or OCX file and then try again Can anyone help me to figure out what is the problem? 回答1: Every DLL you want to register must have the function DLLRegisterServer.

Getting “Could not establish secure channel for SSL/TLS with authority” even though ServerCertificateValidationCallback returns true

南笙酒味 提交于 2019-12-10 10:56:37
问题 I'm working with a vendor who has set up a WCF service (WebHttpBinding) using Transport security with Certificate authentication. I host a similar service for the vendor which is working correctly, so I have a basic idea how this is supposed to work. Running on Windows 7, when I consume the service under my own account, everything works fine, and I get a response back. When I consume it under a test account, I get an exception in mscorlib that it "Could not establish secure channel for SSL

Windows fails to pass the args to a python script

て烟熏妆下的殇ゞ 提交于 2019-12-10 10:53:38
问题 in py_script.py: import os import sys l = len(sys.argv) if l == 1: print 'no args' else: if l > 1: print 'first arg is %s'%sys.argv[1] if l > 2: print 'second arg is %s'%sys.argv[2] now going command-line, on my winXP platform: d:\path\py_script.py 1 2 yields first arg is 1 second arg is 2 yet on my Win7 platform I get no args If I do d:\path\python py_script.py 1 2 I get first arg is 1 second arg is 2 How can I make my Win7 environment act as expected ? some details: win7 is 64bit. py2.6.6

nvInitDll redirect success malforming PATH

回眸只為那壹抹淺笑 提交于 2019-12-10 10:47:06
问题 I've run into a very strange issue and it seems like there's nobody else having the same problem (according to Google). When I start "cmd" from Win+R and echo %PATH% it's ok. But when I start cmd from another program like FreeCommander or Ant and echo %PATH% I get nvInitDll: App c:\dev\java1.6.0_22\bin\java.exe - redirect success. (java.exe replaced by the program which is echoing PATH). And of course PATH doesn't then work. I'm running Windows 7 64-bit. And it worked for some time but I can

Windows 7 folder sharing API

≡放荡痞女 提交于 2019-12-10 10:45:15
问题 I wonder if it's possible to programmaticaly share folders in Windows 7 while running in restricted logon session: 1) NetShareAdd returns ERROR_ACCESS_DENIED. 2) Command line net share says the same. 3) But explorer has no problems creating new shares without invoking UAC. How does it do that? Any help will be greatly appreciated. 回答1: UAC in windows 7 is less strict than it was in Vista. Windows 7 regards Explorer as a trusted application so it will silently create the share without a UAC

Python: moving to a new computer

╄→гoц情女王★ 提交于 2019-12-10 10:32:55
问题 I'm moving from a computer with windows xp to one with windows 7 (64 bit) and I want to install Python on the new machine. I'm currently using python 2.7 and 3.2 and a bunch of packages 1) Should I install the 64 bit versions? 2) How can I tell which packages I currently have, so that I can get those for the new machine? If these are duplicates (my search skills seem to be failing), please point me to the threads where they're discussed. 回答1: Type help('modules') of the Python shell to get a

unable to solve “syntax error near unexpected token `fi'” - hidden control characters (CR) / Unicode whitespace

走远了吗. 提交于 2019-12-10 10:28:20
问题 I am new to bash scripting and i'm just trying out new things and getting to grips with it. Basically I am writing a small script to store the content of a file in a variable and then use that variable in an if statement. Through step by step i have figured out the ways to store variables and then store content of files as variables. I am now working on if statements. My test if statement if very VERY basic. I just wanted to grasp the syntax before moving onto more complicated if statement

Can JXcore work with ChakraCore on Windows 7?

旧街凉风 提交于 2019-12-10 10:25:09
问题 I've downloaded the latest JXcore installer for Windows and when installing it offers me a choice of V8 (Chrome's Javascript engine) or SpiderMonkey (Firefox's JavaScript engine), but not ChakraCore (the OSS version of the JavaScript engine from Microft's Edge browser). Does the ChakraCore version of JXcore only work under Windows 10? Or is it just not offered as an installer and need to be built from source? Now I know ChakraCore can work on Windows 7 because I also have Microsoft's port of

Merge two pngs via command line tool in windows?

这一生的挚爱 提交于 2019-12-10 10:23:36
问题 I'm looking for a tool I can use via command line (windows 7) to merge two equally sized pngs. I'm not having much luck with search so far as most tools I've seen are pretty heavy applications which don't seem to target simple manipulations. I want to overwrite the bits in the opaque base image with the non-transparent pixels in the overlay image. I have photoshop CS4 as well, but haven't had much luck in finding the relevant command line arguments. 回答1: ImageMagick has a command line tool