C++ :: How To Get List Of Applications Showing By Task Manager Through API
Oct 21, 2014I am searching for a way/api through which i can get list of Applications as showing by task manager inside Applications tab. Is there any way?
View 3 RepliesI am searching for a way/api through which i can get list of Applications as showing by task manager inside Applications tab. Is there any way?
View 3 RepliesI want to show all running processes of windows.
my motive is whenever any running process closes/quits whether it be console or window based on windows it notify(s) me or user that some .exe has been closed.
Basically the question is to develop an application that allows: Create an application which stores information about people, along with a task list.
The user should be able to Store people's information
Name,
Age,
Telephone number,
Address
-Retrieve information by entering name
- Remove a person's record by entering their name
-Return records for all people, sorted according to an information type other than age
-Enter a task which needs doing, a priority entered for its urgency
-View highest priority task on the list
-User should be able to remove highest priority item on the list
How to develop this application on a console command line interface style or any other style.
how can i write a contact manager system(CMS) in c ?
View 2 Replies View RelatedI need to write a program that acts as a file manager for all the files and folders in the directory given as an argv parameter and all of its subdirectories. This means be able to move, rename, delete the files in the sub directories. Also I need to be able to store the structure of folders and files in a binary tree adt (I have one already). But I'm not sure what libraries to use with this and how do I open a directory is it like a file with fopen?
View 4 Replies View RelatedI'm working a personal project where I have two applications namely Server, Client. when Server is started, it continuously transmits data. When Client is opened, it is ready to consume the data and display it.
I will put both .exe files in a shared location (LAN). Therefore Sever and Client will be launched from different machines. When I searched for articles that teach how to establish communication between the two, I was offered with choices like NamedPipes, WCF, Polling etc.. I'm not sure whether they will work in a LAN based environment.Also are there any other means of establishing communication?
Here is what I am trying to do. I am reading from a socket. On receipt of specific data from the socket I have to start some computation (takes more than 5s). But if there is another input from the socket when the computation is in progress I need to disregard the ongoing computation and start all afresh. I have not come across any method which could suspend the ongoing task in the same context. I have thought of running computation in a separate thread. But I feel there must be some other methods doing it in the same context which I am unaware of. And, is my understanding correct that process would take up the new task only after completing the previous computation (which I do not want).
View 6 Replies View Relatedhow i am using wxDev-c++ and i need to make.Tasks would include: use a class or struct variable, and create a program that can perform the following actions:
1. The data provided by the user to enter the keyboard.
2. The display of the stored data.
3. edit the data.
Example of data: name surname age.
I Try like it,its let me input and save it but how to edit it or i am doing it bad?
#include<iostream>
#include<fstream>
using namespace std;
int main()
[code]....
Given N tasks (numbered 1-N) and a series of task restrictions (do task 3 before task 2) print out all possible task orderings.
Example input:
3
3 2
Explanation: there are 3 tasks and task 3 must be done before task 2 (each restriction will have its own line)
Example output:
1 3 2
3 1 2
3 2 1
Any time I run my program after I make a selection from the menu the output is printed on the console screen then immediately a windows screen comes up saying project.exe has stopped working.
Below is my code, and I suspect the error has something to either
A) due with how I'm calling the method or
B) how I have the method coded.
Main
#include <iostream>
#include <fstream>
#include <string>
#include "telephone.h"
#include "tbook.h"
[Code] .....
I have been asked to create a program to overload a function which should accept and print first one integer and then two integers. Here is the code i have produced so far: [URL] ....
Code:
#include <iostream>
using namespace std;
//Overloading f1 three ways
int f1(int a);
double f1(double a);
long f1(long a);
[Code] .....
I am aware the code should work. my only concern is the error i receive on line 12. I am certain there should be a value in the bracket but i dont know what.
I need to write a windows form application that allows the user to enter a credit card number and credit card type and then determines whether it is a valid number using the following rules:
1.) the first number is:
a. 4 for visa
b. 5 for master card
c. 37 for american express
d. 6 for discover
2.) passes the mod 10/ luhn check, which is calculated as:
a. from right to left, multiply every other digit by 2. when doubling a digit results in a two digit number, add the numbers to get
a single digit. ( like 6 * 2 = 12 therefore 1 + 2 = 3).
b. add all the single digits from 2a
c. add all the odd places from right to left in the card number
d. sum the results fro steps 2b and 2c
e. if the resulting number in 2c is divisible by 10, the card number is valid otherwise it is invalid.
The chapter is introducing methods so that is the main thing i will be using for each step.
I have an client application and server application, I want to make an update program, In my program I want client send a message to server if there is an new version or not, and server reply with a text message ,send will be done via web service .
View 1 Replies View RelatedI want to create an application that automatize different applications in the sense that my application will be able to press automatically different buttons on another application.
For example: my application will start, let's say, Microsoft Office, will press some buttons in MSOffice, and will close MSOffice.
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 am looking a good design pattern that takes a combination of a Observer Design Pattern and Command Design Pattern.
Observer Design Pattern:
Subject - ISystem
ConcreteSubject - "Different Types of Systems"
Observer - INotifier
ConcreteObserver - "Different Types of Notifier's"
Command Design Pattern: Used to create a task. "Different Types of Task" ....
I am checking out this simple piece of code:
private void button1_Click(object sender, EventArgs e) {
Stopwatch sw = Stopwatch.StartNew();
Task Task1 = Task.Factory.StartNew(() => {
Console.WriteLine("Task1 started in : "+ " "+sw.ElapsedMilliseconds);
Thread.Sleep(4000);
Console.WriteLine("Task1 finished in : " + " " + sw.ElapsedMilliseconds);
}
);
}
and the results are :
Task1 started in : 2 in milliseconds
Task1 finished in : 4015 in milliseconds.
The problem is, that if i count the time with an external device, just like the timer of my watch or my cellphone s,the total time is 4,8 or 4,9 seconds, which i wouldn t expect that to happen.
The first thing i ve thought, is that it takes the ThreadPool about 800msec or 1 sec to create the thread so as to execute this task, but even if it is so, shouldn t the stopwatch count the time precisely?So , why is there a deviation between an external timer and the stopwatch ?
The following code is an example of how task are created with micro cos III in c. I am trying to figure how to create similliar code in C++. My problem is how do I instantiate objects and how to use member functions to represent task. Within the create task routine the address of function is passed as argument. How do I do this in C++? Will I need more than one class? New to embedded C++.
/*!
* @brief LED Flasher Task
*/
void
led5_task (void * p_arg)
{
OS_ERR err;
(void)p_arg; // NOTE: Silence compiler warning about unused param.
[Code]...
My use case is this: I have a C# Console application. I would like to run it via the Windows Task Scheduler, and would like it to attempt to run until it succeeds. My problem is that I can't achieve this. How does the Windows Task Scheduler recognize that a program has failed? I tried returning 1 or 32 instead of 0 but that didn't work. One possibility is to have the rerun logic in the C# console application but it feels like there must be a better way.
View 6 Replies View RelatedI have a service that has some settings. As the service is running as a system user, the settings file is located in
C:Windowssystem32configsystemprofileAppDataLocal<PRODUCTNAME><ExecutableName+GUID><VERSION>user.config
Now i want to be able to change some settings at runtime using a normal Winforms App. Is there a good and easy way to change the user.config of a different application directly? I tried with ConfigurationManager but that does not seem to work.
I'm trying figure out how Windows Firewall functions by experimenting with Bittorrent's add exception to windows firewall option, I deleted the entry from the Firewall options and also located that the regkeys are in HKLM/System/CurrentControlSet/Services/SharedAccess/Parameters/FirewwallPolicy but I can't figure out what registries are made when an application is added as an exception in the Windows Registry.
View 6 Replies View RelatedI intend writing a Windows form c# application that freezes windows and disables all other running application in the background while executing for security reasons. How I could go about this?
View 1 Replies View RelatedI will sketch the scenario I would like to get working below. I have one main application.
That application, based on user interactions, can load other applications in a secure shell. This means these child applications cannot interact with the OS anymore, nor with each other.
The parent program can at any time call functions of these child programs.
The child program can at any time call functions of these parent programs.
How to implement this in C++? Preferably both parent and child should be written in C++.
The performance of loading the child applications doesn't matter. The only thing that matters is the performance of the communication between child and parent.
SLD_ttf lib and I have been following the Lazy Foo' tuts on it but the text is not appearing. I have found out that it is not loading the font as I have added in the code saying if it has failed.
Code:
font = TTF_OpenFont( "lazy.ttf", 28 );
if( font == NULL )
{
return false;
}
i have saved this font in the project (project name/project name/lazy.ttf).
I am trying to display images on top of my Background image gui, so like buttons an stuff but the problem is that there not showing ontop. I can only get one of them to show
// includes
#include <windows.h>
#include <stdio.h>
#include "res.h"
// defines
#define LWA_COLORKEY 0x00000001
#define LWA_ALPHA 0x00000002
[Code] ....
I've run across this issue before, but for the like of me, I can't figure out what keeps causing it. The problem compiles and runs as expected; however in the salaried object (Employee #1 in main.cpp) the console displays the number of vacation days as -858993460 instead of the value entered.
The parent Employee class is abstract with calculatePay() and displayEmployee() being pure virtualls and with a Benefits, Salaried, and Hourly class derived from it.
The Salaried displayEmployee() and the portion of the Main.cpp that contains the salaried object follows. What causing this?
Salaried displayEmployee()
Code:
void Salaried::displayEmployee()
{
cout << endl;
cout << "Employee Information" << endl;
cout << "----------------------------------" << endl;
cout << "Employee Name: " << setw(7) << FirstName << " " << LastName << endl;
cout << "Gender: " << setw(12) << Gender << endl;
[Code] .....