FAQ Database Discussion Community


Check if file was modified after xx days in the past

date,batch-file,windows-7,last-modified
I am checking for the date modified in a file. I would like to test whether the file was modified after the /d -3. According to the docs, this will check if the file was modified before that date. I need to check if the file was modified after that...

How to determine if a window handle is the taskbar thumbnail view?

c++,windows,windows-7,handle,taskbar
I have a code that gets the window handle that the mouse cursor is pointing at, and I am required to determine if the mouse cursor points at a window that is not a part of the task bar. My code is able to recognize if I'm pointing at the...

Error calling dateadd function

function,windows-7,vb6,dateadd
Please help me on this. I run the same code on other computer and they return no error. But on my pc this still pops up. EDIT: Code: Private Sub Form_Load() Msgbox (DateAdd("d",-1,Date)) End Sub Output: Run-time error '5'; Invalid procedure call or argument BTW. The computer I used is...

Multiple attachments in MS Access 2010?

windows-7,ms-access
I'm trying to create a Web form with Access where the user inputs their info and can upload 2 picture attachments. The result I am getting when creating the database says I can't have more than one attachment on the Web. Verbatim: The Web does not support multiple attachment columns....

Can I include crypt.h in c++ on windows?

visual-c++,windows-7
I have a c++ project in which I am using crypt.h but the compiler does not recognize it: "Cannot open include file: 'crypt.h': No such file or directory". My operating system is Windows 7. #include <crypt.h> Is there another name for it? Can I replace it somehow?...

WPF Application Installs Each Time I Open It via Shortcut

c#,wpf,visual-studio-2013,windows-7,windows-installer
What I Have Done: I created a Visual Studio Setup Project that creates the installer for my WPF application. This installer creates the MSI I use to install the application. I created a Primary Output with my primary project and created a shortcuts to this. The application installs successfully. Problem:...

Use PowerShell to add and remove shortcuts from Explorer's favorite bar

powershell,windows-7,powershell-v2.0,explorer
Is there a way to use PowerShell to manage Explorer's shortcut? For example, remove 7346 then add a link to ~/Projects/9999? ...

What is Eclipse CDT is doing with 'make' under the hood

c,gcc,windows-7,make,eclipse-cdt
I'm on Windows 7 and have MinGW/gcc installed. I'm using the Eclipse CDT plugin to compile and build my first simple C programs, and am trying to follow what exactly the plugin is doing under the hood. I create a new "Hello World!" C project with the following directory structure:...

Batch Script List Checking

list,batch-file,command-line,windows-7
I'm working on a Windows 7 command line batch script to automate our build process. Some of the projects that need to be built are dependent on other projects. The normal process (assuming no dependencies) is to do a dir /AD /B from the repository root directory to get the...

Delphi - Generating files from Program Files folder Win7

delphi,windows-7
recently I encountered a file-creation problem, when my delphi application is executed using a start-menu or desktop shortcut, even if its ran as admin. If I run it directly from its folder as admin, there are no issues. Basically I have created a delphi 32-bit GUI program which builds an...

Does Windows 7 with platform update support desktop duplication?

windows-7,directx-11,screen-capture
The articles in MSDN are misleading and doesn't provide a clear answer whether or not Windows 7 with platform update will support desktop duplication. Did anyone know if this is possible? I am developing an application for desktop streaming, I currently use mirror driver for windows 7, but i am...

Bower install doesn't seem to be working (Windows 7) - not getting bower_components directory, grunt serve cannot find bower packages

windows-7,yeoman,bower,bower-install
I'm having problems getting bower install working. I'm running through a yo webapp generator which does scaffolds out for me. In my bower.json file, it give me two dependencies: { "name": "webapp-test", "private": true, "dependencies": { "jquery": "~1.11.1", "modernizr": "~2.8.2" } } When I run a bower install after the...

Perforce client connecting to server WSAETIMEDOUT

windows,windows-7,perforce
I've been ripping my hair out for a few days over this and need help. I have a perforce server and an external client. Steps I've taken: 1. Opened port 1666 on my router (TCP and UDP) for my servers IP. 2. Allowed port 1666 through windows firewall. 3. I...

Intellij IDEA crashes when trying to compile/run a program

intellij-idea,windows-7,crash
I wanted to try out IDEA because I kinda want to move away from Eclipse. However, everytime I try to build or run code from inside IDEA, it just crashes with no error message. The only information I get is from Windows itself: Problemsignatur (Problem signature): Problemereignisname (Problem event name):...

Can't get an error in VB6 on Windows 7 while I can on Windows Xp

windows-7,vb6,windows-xp
I must correct some trouble on a program which is made in VB6. When I try to print a file in XPS type and then I close the folder selection box the program give me a "Run time error 482". So I decide to get the error with this :...

Can I use Chromecast to cast what I see in my Windows 7 laptop's webcam?

windows-7,webcam,chromecast
I have two kids at home and sometimes, they do something cute while I am in the room. Calling others into the room spoils the moment. But if I have my laptop in the room, I can try casting it up on the TV using my chromecast. Is this possible?

mysql ruby gem not installing on Windows 7

mysql,ruby,windows-7,gem,rubygems
Not a duplicate. This question is mysql gem and the other question is mysql2 gem. They do have the same answer though, but the other question's answer doesn't tell what the solution is explicitly. The answer is hidden in the comments. See yellow text of the answer for this...

This Operation has been canceled due to restrictions in effect on this computer, Please contact your administrator

excel,windows-7,ms-office
I am getting the error message "This Operation has been canceled due to restrictions in effect on this computer, Please contact your administrator" in Excel 2010 (win 7) when try to open a hyperlink to a pdf file located on a shared network drive. The file path on the hyperlink...

Detect keyboard on windows 7 using C#

c#,wpf,windows-7,keyboard,detection
I have been looking for a way to either detect a touchscreen device (when it uses the pointer device driver instead of a touchscreen display driver) or to detect when a keyboard is present from within C# & WPF. Please note that this is under Windows 7 embedded, not windows...

HTML syntax highlighting in VIM on Windows 7

html,windows,vim,windows-7,command-prompt
I've set syntax highlighting on when running VIM from the command prompt. I do this by putting in the line syntax on in .vimrc file. I have also in my .vimrc the setting set background=light. And my command prompt background color is white and text color is black. When I...

Whats the best way to start building an application that should work on windows 8 tablet

eclipse,windows,visual-studio-2012,windows-8,windows-7
Background: I have to build a Windows 8 application using HTML5 and Javascript. The application should work on windows 8 tablets and should do authentication using the windows provided native javascript Apis. Issue: I have a windows 7 laptop. I am coming from Java background and don't know about the...

How to stop “Do you want to scan and fix drive” message in Windows 7? [closed]

windows,windows-7,hard-drive,removable
When I connect my external hard drive, Windows always prompts me with this message, how do I stop this from popping up? I'm familiar with registry edits if that's the best method.

batch file reg query with logical operators (NOT)

windows,batch-file,windows-7,registry,logical-operators
I am trying to write a reg query batch file that looks for key data that does NOT contain something. Currently, this code searches for a key Dependent Files (REG_MULTI_SZ) and will write the output to a file. I need it to ignore any data within Dependent Files containing "**.GPD*"....

How do I send an SMS programmatically on Windows 7 and have my own personal mobile phone number show up as the sender?

api,windows-7,sms
I want to be able to programmatically send an SMS message from an app (coded in any language or using any protocol) on my Windows 7 OS that when sent will show my own personal mobile phone number as the sender. I don't mind paying for a service or for...

Windows Wallpaper directory (custom)

windows,windows-7,wallpaper
Often I download a photo that I like, then set the photo as my background. Then I delete the photo (and the wallpaper stays there). Where is the copy of the file (such that its still able to display the file). I mistakenly changed my background and now I can't...

WindowsSDK_IncludePath macro missing

visual-c++,visual-studio-2013,windows-7
Just like the title says. I go to project properties -> VC++ Directories -> Include Directories -> Macros>> It's not in that list at all. The result is that VS cannot open Windows.h. How can I reset this macro to its default value (or set it at all)?...

How long has Windows 7 been locked?

batch-file,vbscript,windows-7
Is there a way to find out either programatically (batch file, VBS), or by means of a 3rd-party tool how long a workstation has already been locked (using the Win+L shortcut)? The output of the script or the 3rd-party tool should be f.e. 60 minutes, if the workstation is locked...

C++ - GetUserName() when process is run as administrator

c++,windows-7,windows-xp,windows-vista,username
I have a simple C++ program that prompt the user name #include <windows.h> #include <Lmcons.h> #include <winbase.h> int _tmain(int argc, _TCHAR* argv[]) { wchar_t username[UNLEN + 1]; DWORD username_len = UNLEN + 1; ::GetUserName(username, &username_len); MessageBox(NULL, username, NULL, 1); return 1; } GetUserName() performs as expected in administrator accounts, meaning...

How to create a YUM proxy with Nexus OSS on Windows

windows-7,open-source,nexus,yum
Version: Nexus OSS 2.11.2-03 OS: Windows 7 Professional Error: "createrepo" not available and "mergerepo" not available For clarity sake, I am trying to create a yum proxy using Nexus OSS on Windows7. Now, I get it that creating a yum repo/proxy on windows is a bit counter intuitive, but that's...

Extract File Name from Txt File with dir

windows,csv,batch-file,windows-7,cmd
I have a txt file that is used to store a directory that is used in a bat. In the bat I need to set two variables. The full directory and then just the file name from the directory. I looked at the commands that relate to it and found...

for IIS, should i use Win7 or Server 2012r2?

windows-7,iis-7,iis-7.5,windows-server-2012-r2
Ill need to set up a test IIS. From a rapid research, ive found that Win7 and Server 2012r2 are pretty much offering the same (for IIS purposes). Major difference is supported RAM and parallel RDP sessions. Rather than that, relying on the fact i need IIS, which one is...

Can git retain file owner, permissions, ACLs, and file attributes on a local Windows NTFS machine?

windows,git,windows-7,permissions,ntfs
If I commit some code on a Windows machine with an NTFS hard drive into git, and then check it back out again in a another directory, will it retain my original Owner, NTFS permissions ACLs, and file attributes? If so will it automatically break inheritance to do so, or...

Localhost, subdomain, using XAMPP

php,windows-7,xampp
I am a web developer and frequently want to view different projects on my local machine. Currently my localhost is set to "C:/xampp/htdocs/". I would like to create a "company.localhost" that points to "C:/xampp/htdocs/company/". I have edited c:\windows\system32\drivers\etc\hosts to include the line 127.0.0.1 company.localhost I have edited c:\xampp\apache\conf\extra\httpd-vhosts.conf to include...

Compile a Visual Studio C# project for two TargetPlatformVersion

c#,winforms,visual-studio-2013,windows-8,windows-7
I developed a .NET windows application which worked both on Windows 7 and 8.1. Then I added the Toast notification feature that came with Windows 8 (from this question: How can I use the Windows.UI namespace from a regular (Non-Store) Win32 .NET application?). This also worked, I just had to...

Windows gVim 7.3 is creating unexpected folders when opening a file

windows,vim,windows-7
My setup is: Windows7 SP1 (Enterprise) gVim 7.3 Whenever I open a file, Gvim will create 2 folders in the same folder as the file is located. The folders' names are Files and (x86). This only started happening recently. Any idea what could be causing this? My _vimrc files is...

Eclipse.exe run issue - exit code 13

java,eclipse,windows-7
I'm trying to install the latest version of Eclipse on Windows 7. When I try to run it, I get this message. What is exit code=13? JVM: Version 8 Update 40 In command prompt, java version gives 1.8.0_40 I've read about error code 13, but this did not help. Also,...

Prevent proxy reassignment

windows,windows-7,internet-explorer-8,gpo
I work in big company and big brother always watching and enforce its own rules. However to do my job I have special proxy server settings in IE8 which gives me access to what I need. All legal and based on job description. Everything is fine except every few hours...

Eclipse EGit, working with forked project. Getting updates from the original project

eclipse,git,github,windows-7,egit
Hello everybody I have this "big" and frustrating problem, I have forked a project from git and as usual it is available in my account in GitHub. I then set up a project in eclipse selecting from an existing URI. All is ok, if I work with my own version...

How to connect to Windows 7 audio

c#,.net,audio,windows-7,naudio
I want to programmatically be able to connect to my computer's audio output (the exact same thing I'd hear if I plugged my headphones into the side of my laptop) and collect the audio. So far, I haven't really been able to find anything that does this, other than Core...

Stand alone WPF application using a service ID or like

c#,wpf,service,windows-7
I've been asked to write a C# application to run on a Windows 7 machine to display the time of day, weather, etc.. That I can do. What I'm looking for is guidance to run the application on a Windows7 machine without logging as a user. In essence the machine...

Schedule to run a executable jar file on windows 7

jar,windows-7,scheduled-tasks
I created a task in task scheduler on Windows 7 system and made it repeatable every 10 minutes. In program, i selected the executable java jar file. But it does not run the jar file at the scheduled time. When i double click and run the jar file, it runs...

Why is a destructor not called when I click the close button on the console?

c++,windows-7,destructor,terminate
I have a command line application on Windows 7. It consists mainly of an endless loop. When I click on the close button of the command-line console window, it seems to be killed instantly. However, I close an SQLite database connection in the destructor, and so I am afraid that...

windows phone: deserialise and store both json key and value to modal

c#,windows-phone-8,windows-7,windows-phone-8.1,json-deserialization
Hello guyzzzz i want to store both key and value in modal class...below is my json.. { "Example": [ { "Invoice": { "TFDGFF": " 200", "BF": " 200", "MD": "10", "EFM": " 12", "ATT": "4" }, "TF": "200" }, { "Invoice": { "DF": " 49", "DR": " 49", "KJ": "4",...

Problems with RXTX in Windows 7, but not in Windows 8

java,windows,windows-7,portability,rxtx
I'm working on a project which uses RXTX. I export it as an exacutable jar and it is in a folder like: MainFolder - lib - RXTXcomm.jar - ... more jars - logs - config.properties - App.jar <-- Executable jar In my computer (Windows 8.1) works perfectly, but it has...

windows 7 exit batch file when command fails

batch-file,windows-7
I'm writing a batch file on windows 7 that executing some commands one after another: copy source1 dest1 call someFile1.bat copy source2 dest2 call someFile2.bat copy source3 dest3 Is there a way to return error code 1 if any of the commands returns error code 1? Thanks!...

Can Notepad read UTF-32?

unicode,windows-7,notepad,utf-32
These bytes represent the word "hi" in UTF-32LE: FF FE 00 00 68 00 00 00 69 00 00 00 However this is what Notepad displays: ...

How can i find where a method or a variable is used in Android Studio (shortcut)

java,android,windows-7,android-studio,keyboard-shortcuts
I know how to find the source by using ctrl + left click on a method, for example, but what if I want to find where this method is used? I'm using Windows 7. Let's suppose I have the following method: class A { public int sum(int a, int b)...

How to upgrade PhpStorm 7 to PhpStorm 8 on Windows 7

php,windows-7,phpstorm
Is there are a way to upgrade PhpStorm 7 to PhpStorm 8 on Windows 7 while keeping current settings ? or do we have to uninstall 7 and install 8 after exporting settings ?

Javascript runtime error using IE11 on Win7: Unable to set property 'disabled' of undefined or null reference

javascript,windows,windows-7,internet-explorer-11
I am currently working on some IE11 compatibility issues. The code is fully functional in compatibility mode as it was previously optimize last for IE5. The affected code is as follows: /* * This function sets the specified button state in the repair processing form */ function setOperationButton(buttonId, disabledState, sourceImage,...

PostgreSQL error Fatal: role “username” does not exist

postgresql,windows-7,windows-7-x64,roles
I'm setting up my PostgreSQL 9.1 in windows. I can't do anything with PostgreSQL: can't createdb, can't createuser; all operations return the error message Fatal: role root does not exist root is my account name, which I created while installing Postgresql But I am able to connect using: username :...

PhpStorm 8.0.3 crashing itself and Windows Samba share

windows-7,centos,phpstorm,samba,windows-explorer
I access the code on my CentOS VM through a Samba share on my Windows machine. I have been using PhpStorm for a while now, however this morning I have been unable to use PhpStorm to access the Samba share. When PhpStorm loads it shows a blank screen (no project...

How to avoid WPF Application not Responding when logging off

c#,wpf,windows-7,.net-4.0
When trying to press the standard Windows 7 logoff button while my WPF app is running, I get "This program is preventing Windows from logging off". I would like to force it to close without having to press "Force log off". Similarly, pressing "End Task" in the (applications) Task Manager...

Find selected language LCID after changing display language

windows,windows-7
I have a Windows 7 machine that has had several languages installed using Control Panel Region and Language Keyboards and Languages Install/Uninstall languages When I change the display language using Control Panel Region and Language Keyboards and Languages Choose a display language everything displays correctly. I need to read which...

Keeping the terminal in focus

python,selenium,windows-7,cmd
I have a python script which uses selenium to automate web page, drawing focus away from the terminal where user input is required. Is there anyway in python to switch focus back to the terminal, programmatically? I will be running my program in the Windows Command Prompt on Windows 7,...

Can Apache Cordova compile to legacy Windows desktop apps (non-metro)?

javascript,cordova,windows-7,windows-xp,cordova-3
I need to develop an app that retrieves and saves data interacting with users, with a high focus on multi-platform support and rapid development. The app does not require heavy graphics or processing etc. I'm considering the use of Apache Cordova. Can it compile and run as a native desktop...

Determine underlying calls triggered by Windows GUI action

c++,windows,winapi,windows-7,event-log
This is a follow-up question to one I asked on superuser.com. How can I trace the consequences of GUI actions. Is there some kind of low level event log in windows? Example If the user double-clicks on <name>.pdf, the consequences are: the extension is determined, the full path is determined...

Copy Shortcuts to New PC [closed]

windows,windows-7,favorites
When you open up Windows Explorer on the left side it will show you Favorites, Libraries Computer. I have drag/drop about 10 shortcuts under my favorites for quick access. How can I copy those shortcuts onto a different computer?

InnoSetup - while compiling sign tool failed with exit code 0x1

windows-7,windows-8.1,inno-setup
Its failing to compile in signing. In my innosetup packaging i have to include some third party software such as VLC, Google Chrome, Putty, etc etc. The moment those third party tools are included compile/build is failing. But when i do not use them its compiling well. (unfortunately i cant...

unable to delete node_modules folder

node.js,windows-7,npm
I was trying to remove the node_modules directory, created by npm install, on windows 7 and I got the following message The source file name(s) are larger than is supported by the file system. Try moving to a location which has a shorter path name, or try renaming to shorter...

Does PHP silently optimize consecutive fseek-commands into one fseek command?

php,performance,windows-7,32bit-64bit,internal
I am running Windows 7 - 64 bit, with the latest XAMPP version that has a 32-bit PHP version. On testing http://php.net/manual/en/function.fseek.php#112647 for a very big file (bigger than PHP_MAX_INT 2147483647) I'm now pretty sure, that the consecutively following fseeks are summed up before being executed on the filepointer. I have...

How to correctly have modeless form appear in taskbar

windows,delphi,windows-7,delphi-xe6,windows-95
I am trying to achieve the age-old Delphi dream of having a modeless form appear in the taskbar. What is the correct way to have a modeless form appear in the taskbar? Research Effort These are my attempts to solve the problem. There are a lot of things needed to...

VirtualBox Linux does not return ping and host machine cannot access apache on that guest

linux,windows-7,virtualbox
I have a Windows7 as host and Debian as guest via VirtualBox. everything worked just fine until I did apt-get update on my guest machine and I think it scrambled some settings (not sure though...). My current VB network settings are: Adapter 1: Bridged Adapter Adapter 2: Host-only adapter My...

How to configure Visual Studio so multiple instances have separate icons in the TaskBar?

visual-studio,visual-studio-2012,visual-studio-2013,windows-7,visual-studio-2015
Is there a way to configure Visual Studio so separate instances of it have separate icons in the Task Bar? I find this way uses fewer mouse clicks, and I often find myself opening up one instance of VS 2012 and another instance of VS 2013 just to get this...

Why does this hosts file entry only work with a browser and the host name?

windows,windows-7,ip,hosts
My workstation's C:\Windows\System32\drivers\etc\hosts file contains the following (hypothetical) IP address mapping: 111.222.33.444 sub.domain.tld In Firefox I can successfully browse to the sub.domain.tld host name. Since I can browse to the host name... Why can I not browse directly to the 111.222.33.444 IP address? Why can I ping neither 111.222.33.444 nor...

How to run application from command prompt with arguments?

windows,command-line,windows-7,environment-variables
I have an application named DriveMaster which I want to run from command line with different arguments. The application is residing in: "C:\Program Files (x86)\ULINK DM2012 PRO NET\v970\DriveMaster.exe\" Now in Windows - Run, if I open command prompt and want to give a command like: DriveMaster /s:Scriptname.srt This should be...

Developing C++/CLI project for Windows 8 Tablet on Windows 7

visual-studio-2010,windows-7,c++-cli,windows-8.1
I have a code base of native C++. Recently I incorporated a Windows 8 tablet into the system that we deploy to. I have a .NET managed DLL that accesses the Tablet orientation sensor. This managed code is wrapped by an unmanaged class that I can access from the native...

Use same mongodb database over Windows 7 & Ubuntu

windows,mongodb,ubuntu,windows-7,ubuntu-14.04
I would like to use the same MongoDB database I use on windows 7 as I do on Ubuntu. On Ubuntu, I went into the file: /etc/mongodb.conf and changed dbpath=/var/lib/mongodb to dbpath=/media/meaniostack/OS/data/db which is the database on the windows partition. When I tried starting up mongod & mongo, I got...

From Qt, under Win7, how to know which window style is used for display?

c++,qt,windows-7
I'd like to workaround this bug. So I need to know if user display configuration under Window7 is using "Aero" or "Classic" style. Is there a way to do that? I tried QApplication::style()->objectName() but this alsways returns me "windowsvista" whatever style is selected.......

SQL query design for getting a table with column depending on a column value in SQL Server

sql,sql-server,sql-server-2008,windows-7,pivot
I would like to do a SQL query in SQL Server to get a table: Table1: id t value 1 R 2412 1 Q 98797 2 R 132 2 Q 7589 I need to get table: id R_value Q_value 1 2412 98797 2 132 7589 I used case and when,...

'GetProcessIdOfThread': identifier not found

c++,visual-studio-2013,windows-7
Here is my codes in stdafx.h : // stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #pragma once #define _WIN32_WINNT 0x0502 #include "winsock2.h" #include "windows.h" #include "stdio.h" #include "Iphlpapi.h" #include <psapi.h> #include "Ntsecapi.h"...

DateTime parsing not working in Windows 7: The string was not recognized as a valid DateTime

c#,datetime,windows-7,datetime-parsing
Before i begin to explain ,i need to tell I have tried all the possible solutions for this problem that are provided in stackoverflow. But doesn't work in windows 7. On windows 7 parsing datetime is not working. i have tried the following code snippets DateTime.ParseExact(arr[TransactionDateIndex], "M/dd/yyyy h:mm:ss tt", null);...

How do I do a sum of contents in an adjacent cell equal a set value

excel,windows-7,excel-formula
What formula would I use to do a sum of the contents of a range of cells, provided that the contents of an adjacent cell equal another cell. The example I could give is, if I have a set of invoices which quote a purchase order, I want to see...

Sequential file IO from different threads fail with FileSystemException

java,multithreading,windows-7,io
I am trying to see how fast i can do something like: write a small file rename it delete it This basically looks like: import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; public class QuickIO { public static void main(String[] args) throws IOException { Path fileToWriteTo = Paths.get("C:\\Temp\\somefile.txt"); Path fileToMoveTo...

Anypoint Studio (Eclipse) on Windows 7 with multiple users

eclipse,windows-7,mule-studio
I'm trying to create a Windows 7 VM that can be used be developers to do various development work. I've installed Anypoint Studio, and I find that each of the user's workspaces is visible to all of the other users, and in fact the workspace launcher defaults to the last...

Is there a tree selection option for files & directories in install4j?

windows-7,install4j
I have a zip file from which I want to extract only some files that I would select. Since the selection is dynamic, I figured that the best way to select these files since they are inside folders that could be nested inside other folders, would be a selection tree....

boot2docker - An error occurred trying to connect when running docker version command

windows-7,docker,containers,boot2docker
When I use boot2docker to start the boot2docker-vm, then in gitbash I run the docker version command I get the following: $ docker version Client version: 1.6.2 Client API version: 1.18 Go version (client): go1.4.2 Git commit (client): 7c8fca2 OS/Arch (client): windows/amd64 FATA[0021] An error occurred trying to connect: Get...

How to perform same action as changing Windows 7 display from Landscape to Portrait

c++,c,winapi,graphics,windows-7
I need to write a program which programmatically changes the Landscape mode to Portrait of a touchscreen in Windows 7. The resolution is 1920 x 1080 and I thought I could switch the 1920 with the 1080 and use ChangeDisplaySettings or ChangeDisplaySettingsEx to make the change. but it doesn't work....

How to flush all cmd messages to a txt file?

batch-file,windows-7,cmd
I am executing a .bat file from cmd . But for some reason, at some point there are some error messages on cmd screen, and the cmd window self exits so that I don't have enough time to read those error messages. So I tried to flush everything to a...

sfInit() snowfall package in R hangs on Windows 7

r,windows-7,snow,snowfall
I have been trying to follow some guides for utilizing all (4) of my processors on my work machine running Windows 7. They all suggest the snowfall() package. However when I run the following code, R runs until I terminate it. In other words, R hangs. sfInit(parallel = TRUE, cpus...

Opening a file in Eclipse that is associated with another program

java,eclipse,windows-7
I am trying out Eclipse, specifically: Eclipse Standard/SDK Version: Luna Service Release 2 (4.4.2) Build id: 20150219-0600 ...on Windows 7 with Java 8 update 45 installed. I have .sql files associated with a program other than Eclipse, and want to keep it that way. However, I would like to open...