how can i minimize all open windows using c++ program? I want to call the minimize function at some places in my program... so write how the function structure can be made and how do i call it?
I'm looking for a library which enables me to take screenshots of a all open applications, and store them as .bmp or .jpg .
I've tried to find something but so far no luck
I don't necessarily need code just a library with good understandable documentation (if such a thing exists). Also, is something like this possible for a beginner-intermediate c++ user? If not where should I start?
I have an application that Opens files with different extensions for viewing purposes only. I use MFC with Multi-Document template.
When I go to Windows Explorer in Windows 7 and right-click on Libraries - Documents, and scroll down to New, Explorer shows multiple links for creating new files with these different extensions.
My application does not create New documents. It just opens them for viewing purposes. In fact, I have disabled the New portion of the mainframe window.
My code includes: EnableShellOpen(); RegisterShellFileTypes(TRUE);
I am at a loss as to what portion of my code would have placed these links into Windows Explorer!
Is there any way to prevent them from being created in the first place?
I am working with a program that provides some files. First i give as a argv[1] value the input file with the ending .inp After that the program provides a file with the ending .sta I need to cut the ending .inp from the inputfile at first and after that for a search in the .sta-file i want to open the input.sta file. I want to add the ending to the file.
ifstream file1("test_T.sta");
This test_T.sta is actually hardcoded, but i need something working like that:
ifstream file1(argv[1].sta); ????
Thus, at first cut the .inp ending and by the searchsequenz add the .sta ending.
I have a batch of .pdf files (~1000) with names 001.pdf 002.pdf ...etc. Still pretty new to C, but would it be possible to write a program that would open a PDF, prompt a new name from user, and when entered, close the .pdf and open the next one in the list?
There is only one thing I need here. When the paint program is opened I need it to automatically open it maximized. Other than that my code works perfectly for what I'm trying to build.
It has to be maximized so when a friend opens it after I send it to him, it auto maximizes and doesn't start drawing on his desktop.
#include <iostream> #include <Windows.h> using namespace std; int main() { system("start C:/Windows/System32/mspaint.exe"); FreeConsole(); Sleep(1000);
I am creating a console based application which needs to be dual tasking, which prompts me to share a single console for the GUI console based and inputs from the user.
I want to know if there is a mechanism through I can open more than one command prompt so that I would use efficiently both of them.
Furthermore, I would need also to know how to control on which to print and on which not to be printed.
Is there such a thing?
I am using Visual Studio 2012 Ultimate on a Windows 8.1 Professional PC.
Taking a OS course and my professor gave us files to reference in a directory located at ~agw/class/os/share/proj3. But when I typed this into the terminal I keep getting a permission denied error message.
[lastname@erdos ~]$ ls dead.letter Desktop Documents Downloads Music Pictures private Public public_html Templates Videos [lastname@erdos ~]$ ~agw/class/os/share/proj3 /u/sobolev/agw/class/os/share/proj3: Permission denied. [lastname@erdos ~]$
I'm not sure what I am doing wrong. Ive opened shared directories for this class before and had no issues.
I'm trying to write a program for a pong game using a tutorial online. Every time i try to run my program its telling me "Cannot find or open pdb file" I have tried running Microsoft visual c++ as administrator and checking the box next to the Microsoft symbol server. I only get a black console screen with a blinking cursor.
Taking a OS course and my professor gave us files to reference in a directory located at ~agw/class/os/share/proj3. But when I typed this into the terminal I keep getting a permission denied error message.
[lastname@erdos ~]$ ls dead.letter Desktop Documents Downloads Music Pictures private Public public_html Templates Videos [lastname@erdos ~]$ ~agw/class/os/share/proj3 /u/sobolev/agw/class/os/share/proj3: Permission denied. [lastname@erdos ~]$
I've opened shared directories for this class before and had no issues.
I am fairly new to programming and I am writing a small POS system which in the background creates a receipt. I guess the relevant code would be this:
#include <stdio.h> int main() { FILE *receipt; receipt = fopen("receipt.txt", "w"); fprintf(receipt, "Coffee Bar
[Code] ....
Of course the last bit wont be running for you, since the variables are missing. My question now is, that I like to open this file in a text editor. The file should be opened with a command withing the code. Is that possible at all? As you might can tell the receipt should pop up after the program ran and the user should be able to print it afterwards.
For homework I need to take a file of numbers (double) and fine their average. But, I seem to be having an issue just opening the file.
#include <iostream> #include <fstream> #include <cstdlib> using namespace std; void get_average(ifstream& input_file); // Precondition: Reads all the numbers from input file stream // Postcondition: Prints out to the screen the average of the numbers
Reading a .dat file, i'm unable to open the file. This program is for a Air Quality index detector, the AQI machine records the particle concentration every minute and saves it into new data file for each day. So I need to make this program run every minute and convert the concentration in to the AQI readings.
The filename is of the format "ES642_2013-11-09.dat", where ES642 is the software name of the machine, and rest is the year, month and day. The code here is just for the file reading section:
Code: #include <iostream> #include <fstream> #include <string> using namespace std;
I've almost finished a Terminal/Command Prompt Program that can do most of the things a Microsoft or Linux Terminal can do - but I have a problem. I've got it to open programs fine, and I can also open their browser to the download page if they don't have it, but I need my program to know if there isn't the software so a bit like command prompt where it says 'The system cannot find the file test.txt.' and then it'll take them to the website if they like.
'test.exe': Loaded 'C:UsersPcDocumentsVisual Studio 2010Projects estDebug est.exe', Symbols loaded. 'test.exe': Loaded 'C:WindowsSysWOW64 tdll.dll', Symbols loaded (source information stripped). 'test.exe': Loaded 'C:WindowsSysWOW64kernel32.dll', Symbols loaded (source information stripped).
[Code]...
The thread 'Win32 Thread' (0x2d0) has exited with code 1 (0x1).
The program '[6040] test.exe: Native' has exited with code 1 (0x1). my code is not wrong but there is an error which ı dont understand ...where is my error?
I want to check if there are files present in a directory that match a certain regex, i.e., "reader_contact_info_%d", and if there are, I'd like to get the names of these files, perhaps the number that exist, and then open them and read them.
I could do something via executing an ls command Code: ls reader_contact_info_* but there are performance implications as the current process will suspend while the ls command executes.
I'm not sure how to do this though? It doesn't have to run on Windows, so that's not a problem.