windows-7

Accessing Registry on windows 7 C#

徘徊边缘 提交于 2019-12-11 20:39:40
问题 I am attempting to make an updater program, that when updates it writes a build number into the windows 7 registry which the main program reads when checking for updates. I've gone through the UAC virtualization kb at microsoft's page, and have found nothing. My app.manifest has <requestedExecutionLevel level="highestAvailable" uiAccess="false" /> and yet, when i look in HKEY_Local_Machine\Software the build entry is not there, i dont even see it in HKEY_USERS\_Classes\VirtualStore\Machine

Problem running a MonoDevelop App

∥☆過路亽.° 提交于 2019-12-11 20:05:27
问题 This is a continuation of my Problem in creating a MonoDevelop App question, The problem is solved, I am able to create an App, but now I'm having problems running it, When I run the application I get an error saying, C:\Users\tarun\Documents\Projects\myAndroidApp\myAndroidApp\aresgen: Error 1: Could not find SDK platform directory 'C:\Program Files (x86)\Android\android-sdk\platforms\android-4'. Ensure you have installed support for this Android platform version in the Android SDK Manager.

Trying to clone a repository in git, getting a error

旧街凉风 提交于 2019-12-11 20:00:15
问题 I have two boxes, one is my local machine and the other is my dev server. Right now I'm testing this method of deploying apps using Git I setup my local repository, added the files then committed. I am on Windows 7 & my server is Windows Server 2008. The server is mapped as the W:\ Drive with my 'bare' repository and my target 'mock' production folder as child folders. -- I can get to each just fine, no connection problems. Here's what I did to setup everything: Local dir git remote add

Automatically running a program as administrator in VB.NET

◇◆丶佛笑我妖孽 提交于 2019-12-11 19:27:47
问题 I am developing a VB.NET based application which requires administrative privileges in order to run properly. However I went through several tutorials online and it all mentioned how to do this using a mainifest file. The problem with this technique is that whenever the program is opened I need to type in the Administrator password, however I want this to happen automatically. (The user should not type the Admin password, the password must be entered from the code level) The following code is

WPF debug freezes computer with windows 7 64bit

前提是你 提交于 2019-12-11 19:04:57
问题 I am using visual studio 2010 on Windows 7 64bit. I compiled and ran a simple application basically a thing a child could make. Well the second it started to run, it froze my computer and rendered it unresponsive. It continues to do this every time and for every application. Any ideas why this is happening? 回答1: I figured out what was wrong. COMODO Antivirus/Firewall blocks all applications from calling DLL's, you have to click "Allow" on the dialog that normally pops-up. But since its a

Read-only access to registry raises security exception

此生再无相见时 提交于 2019-12-11 18:41:06
问题 I am working with an application once written for Windows XP, making it work for Windows Vista and later. Formerly there was a lot of read and write accesses to HKEY_LOCAL_MACHINE in registry. I've rewritten this so that only the installer writes to HKEY_LOCAL_MAHINE (with elevated privileges) and the application accesses these settings with read-only access. The application is written in C# and C++ and compiled for 32 bit. Everything is working fine on my development computer running Windows

UnauthorizedAccessException on Openexisting global mutex

烈酒焚心 提交于 2019-12-11 18:20:08
问题 I am using mutex to synchronize two process. Mutex is getting created by service process. But when client tries to access that mutex he gets Unauthorizedaccessexception. The user account has create global object rights This happens in few machines running windows 7 but not reproducible on other windows 7 machine. What could be the reason. Thanks for helping Following is the code for creation of global mutex bool gCreated; Mutex syncMutex = new Mutex(true, "Global\SWDBOject", out gCreated);

process.kill() method doesn't work on windows 7

青春壹個敷衍的年華 提交于 2019-12-11 17:56:44
问题 I want to kill a process from list. Because of this I first list the processes and then use process.kill() . But it doesn't work. Below is the code and I don't know what I'm doing wrong or what I have to do. (I have Windows 7). Can you help? private void btnProcess_Click(object sender, EventArgs e) { UpdateProcessList(); } private void btnRemove_Click(object sender, EventArgs e) { try { foreach (Process p in Process.GetProcesses()) { string strName = listBox1.SelectedItem.ToString(); if (p

SQLite sqlite3_column_origin_name function

丶灬走出姿态 提交于 2019-12-11 17:53:02
问题 I've downloaded the file sqlite.dll precompiled for 64-bit Windows (.NET Framework 4.0) for my app written in C#. (I follow this thread: SQLite3.dll for Windows 7 64 bit) With my old 32-bit dll the function sqlite3_column_origin_name works correctly, but with latest version for 64-bit, this function give me an error: [DllImport("sqlite3.dll", EntryPoint = "sqlite3_column_origin_name")] static extern string sqlite3_column_origin_name(IntPtr stmHandle, int iCol); I use DLL Export Viewer to read

Deskband for Windows 7

旧巷老猫 提交于 2019-12-11 17:35:49
问题 I have created a deskband for Windows XP after following the tutorial in codeproject. It works perfect. However, some of the users use Windows 7 and they found they cannot use the deskband I created. Could anyone let me know how to fix the problem? Update: After the Windows 7 users installed the deskband (msi file), they cannot see it in the windows toolbars (right click mouse on taskbar > toolbars > ). The deskband is visible in the toolbar in the IE in Windows 7 though (The BandObject