windows-vista

Can't compile with MinGW - libmpc-2.dll is missing

99封情书 提交于 2019-12-01 09:01:58
I have installed MinGW in Windows Vista, so I can use gcc but it doesn't work. When I try to compile a .c file like gcc hello.c -o hello.exe I get an error (translated): cc1.exe: could not find libmpc-2.dll How can I fix this? Copy this file into the directory where your gcc executable can be found (the one named bin). http://www38.zippyshare.com/v/95754574/file.html The strange thing is that the MinGW installation of mine included this dll correctly. I had the same problem. Installing the mpc package with mingw-get solved it for me. Open a command line window Go to your MinGW\bin directory: e

javac not recognized java 7

流过昼夜 提交于 2019-12-01 08:32:59
I have recently installed jdk7 on my windows vista. I have used default installation in C:\Program Files\Java\jdk1.7.0_02\ with javac stored in C:\Program Files\Java\jdk1.7.0_02\bin . I have configured my PATH and CLASSPATH environmental variables (both for my user and system variables) with C:\Program_Files\Java\jdk1.7.0\bin and JAVA_HOME (as my user variable) with C :\Program_Files\Java\jdk1.7.0\ (I have also tried a version with C:\Program_Files\Java\jdk1.7.0_02\bin ). java -version produces desired output. I can also run javac from the C:\Program_Files\Java\jdk1.7.0\bin directory with no

How do I handle a failed DllImport?

两盒软妹~` 提交于 2019-12-01 08:17:33
I'm attempting to write a C# managed class to wrap SHGetKnownFolderPath, so far it works on Vista, but crashes on XP due to not finding the proper function in shell32.dll, as expected. I want to have it set so I can fallback on a (admittedly hacky) solution using System.Environment.GetFolderPath if using XP. (Or, even better, if it can't find the funciton in shell32.) Is there any way to do this other then conditional compilation? My current code looks like: public abstract class KnownFolders { [DllImport("shell32.dll")] private static extern int SHGetKnownFolderPath([MarshalAs(UnmanagedType

javac not recognized java 7

戏子无情 提交于 2019-12-01 07:40:43
问题 I have recently installed jdk7 on my windows vista. I have used default installation in C:\Program Files\Java\jdk1.7.0_02\ with javac stored in C:\Program Files\Java\jdk1.7.0_02\bin . I have configured my PATH and CLASSPATH environmental variables (both for my user and system variables) with C:\Program_Files\Java\jdk1.7.0\bin and JAVA_HOME (as my user variable) with C :\Program_Files\Java\jdk1.7.0\ (I have also tried a version with C:\Program_Files\Java\jdk1.7.0_02\bin ). java -version

How to allow 32 bit apps on 64 bit windows to execute 64 bit apps provided in Windows\\System32

£可爱£侵袭症+ 提交于 2019-12-01 06:40:45
Say you have an app, that you want to provide users ability to browse the system32 directory and execute programs in (like telnet). What is the best method for supporting this when you need to support XP onwards as a client and 2k onwards for server? Having written all this up I wonder if it's just too much time/effort in providing a browse to do this, where they could just copy it from explorer. Still requires ability to launch. I have found some discussion on Nynaeve . So far it seems there are the following options Create a sysnative folder in windows which will allow you to browse/execute

Can't compile with MinGW - libmpc-2.dll is missing

别等时光非礼了梦想. 提交于 2019-12-01 06:37:47
问题 I have installed MinGW in Windows Vista, so I can use gcc but it doesn't work. When I try to compile a .c file like gcc hello.c -o hello.exe I get an error (translated): cc1.exe: could not find libmpc-2.dll How can I fix this? 回答1: Copy this file into the directory where your gcc executable can be found (the one named bin). http://www38.zippyshare.com/v/95754574/file.html The strange thing is that the MinGW installation of mine included this dll correctly. 回答2: I had the same problem.

How can I customize the login screen for Windows Vista & 7?

社会主义新天地 提交于 2019-12-01 06:22:41
I need to create a windows login UI for Windows 7 & Vista which logs user name and image from webcam (replacing their login screen). I don't know where to start from. Can I do this in C# or will I have to use C++? Any link will be helpful. If you just need Windows 7 and Windows Vista support, you are looking for Credential Provider. You can find some samples in Windows SDK. If you want to extend pre-Vista Windows, you are looking for GINA 来源: https://stackoverflow.com/questions/4516578/how-can-i-customize-the-login-screen-for-windows-vista-7

how to adjust master volume in vista/xp

让人想犯罪 __ 提交于 2019-12-01 05:58:59
i want to adjust the volume programatically like Get/SetMasterVolume in vista and xp? using mmsystem unit? Sebastian Oliva Here's the implementation of a general purpose api for audio: MMDevApi http://social.msdn.microsoft.com/Forums/en/windowspro-audiodevelopment/thread/5ce74d5d-2b1e-4ca9-a8c9-2e27eb9ec058 and an example with a button unit Unit33; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, MMDevApi, ActiveX, StdCtrls; type TForm33 = class(TForm) Button1: TButton; procedure FormCreate(Sender: TObject); procedure Button1Click(Sender:

How can I customize the login screen for Windows Vista & 7?

痴心易碎 提交于 2019-12-01 05:42:11
问题 I need to create a windows login UI for Windows 7 & Vista which logs user name and image from webcam (replacing their login screen). I don't know where to start from. Can I do this in C# or will I have to use C++? Any link will be helpful. 回答1: If you just need Windows 7 and Windows Vista support, you are looking for Credential Provider. You can find some samples in Windows SDK. If you want to extend pre-Vista Windows, you are looking for GINA 来源: https://stackoverflow.com/questions/4516578

Two problems with sbt in cygwin / vista

我的梦境 提交于 2019-12-01 05:20:44
I am using cygwin 1.77 on windows vista. I'm facing problems with the output from sbt in the shell. Some relevant environment vars: TERM=cygwin CYGWIN=server LANG=C.UTF-8 (1) When I type sbt test the shell contains a lot of unprintable characters: How can I fix this ? My sbt shell script looks like this: dir=`dirname $0` stty -icanon min 1 -echo > /dev/null 2>&1 java -Djline.terminal=jline.UnixTerminal -Xmx512M -jar `cygpath -w $dir`/sbt-launch-0.7.4.jar "$@" stty icanon echo > /dev/null 2>&1 (2) The sbt command cannot find the scalatest jar & I don't know how to configure it to download it