C++ :: Builder Application Start With Administrator Rights?
Jun 5, 2013
I would need to know how to make the c++ builder application to be started with administrator rights (it's common behaviour for installers - when it is started, it asks for administrator rights).
View 4 Replies
ADVERTISEMENT
May 9, 2012
I want to create an application that starts an application and passes input to that application. I know how to start a process using the classes in System.Diagnostics, but I don't know how to pass data to the process.
For example, and this is just an example, I would like to be able to automatically start an application that requires a username and password and automatically enter the username and password. Of course, that might open the door to security vulnerabilities, but that's not the point of the exercise.
How to implement the functionality I described? Is there a general way to go about doing this or does it depend entirely on the idiosyncrasies of the application in question?
View 2 Replies
View Related
Sep 13, 2012
I use standard libraries and INNO Setup, wich is a free setup file creator.
I succeeded in adding NetFrameWork 4.5 installer into the setup (it runs it after installation, and before running my software (named GOFINDER).
Now, i remember that this happened to me, but after three months of programming, mine used to start and still does. But I know it sometimes doesn't start, and I don't know why exactly.
I checked to make sure that I needed only FrameWork 4.5.
But maybe it is because of Visual C++ Runtime wich is not added upon setup.
I will try to check this after posting cause this has just popped up in my mind.
I'm asking you how can I Make sure, that distributing my software won't do that anymore.
Is it because my application file is not set on Run as Administrator?
Cause normally, it opens without this necesity, except as a Shell (well I have to check back but I think it does if I check on the run as administrator checkbox.
The problem is not really with InnoSetup, but I also would like to know how I can check that box automatically upon setup.
they say they have a documentation but I don't find it on my computer.
And... why would it start on my computer, and not on my beta-testers's one?
View 3 Replies
View Related
Aug 18, 2013
I'm working on a cross-platform threading project, the aim is to start 1 worker-thread that has a queue of worker-items which are serviced by the thread.
The threading framework works fine, both under Windows and LINUX, albeit as designed under Windows, and in a modified form under LINUX.
I have this CSnmpTrapd class which is designed as a worker-item for the worker-thread, it listens for incoming SNMP traps and decodes the packets, this is implemented in csnmptrapd.cpp and csnmptrapd.hpp.
1) When I add this piece of code to my makefile and re-compile the app successful... the app will start (or not?) but generates no console or file logging as is expected, it will not even show printf() output which was added as first statement in main(). My app handles CTRL-C to terminate and this works !?!? But I'm actually not sure my app works at that point.
2) When I compile the app without csnmptrapd.cpp and start it, it will generate console and logging output and behave as expected.
3) When I add the CSnmpTrapd class implementation to an existing cpp file in the project, it will compile and run as expected... the worker-thread handles the CSnmpTrapd worker-item as it should, incoming SNMP traps are captured and decoded, logging generated
View 6 Replies
View Related
Jan 22, 2014
How do to calculate the following equation"5+((56+8)/2)" using expression builder
Note: the equation may change "50+((26+8)/12)"
View 1 Replies
View Related
Dec 9, 2014
I'm trying to write to a named pipe created by a service, as we all know the session 0 isolation implemented in vista and forward makes this task a bit complicated.
well at this point i managed to make almost all to work but my real problem comes when i try to write on the named pipe from my GUI application with no administrator rights
If i run the GUI application with admin rights it works 100% but, I don't need that application to require the user admin rights and for security reasons i rather to leave it without admin...
so i started my research and i found that there is a way to achieve this by calling CreateNamedPipe() with a low integrity security attributes...
well how to implement but i finally made it, the problem is that it gets worse than passing null security attributes, it works with admin rights with NULL security attributes, but when i pass the low integrity security attributes it gives "access denied" even when using admin rights, so i guess im passing the wrong security attributes but how to manually create the security descriptor string.
This is the code:
Service (session0) SERVER
Code:
DWORD WINAPI PipeThreadRSVS(void* pParameter){
LPTSTR _PIPE_NAME = "\.pipeRSVHPipeIn";
bool Break=false;
char Received_Buffer[BlockSize+16];
DWORD BytesRead = 0;
[Code] ....
View 2 Replies
View Related
May 11, 2014
I am having a world of problems of what i thought to be rather simple.
Edit1->Text = "123401278034987120478102873401982734";
Now Edit1->Text is an AnsiString
And I would like to format this to a number value, so that i can say.
CSpinEdit1->Value = "123401278034987120478102873401982734"
In other words transferring the value from Edit1->Text to CpinEdit1->Value;
Integers won't work because the number is to big. So i tried going from String to Number like in this article Converting numbers to strings and string - C++ Articles
But that won't work because its an Ansistring, how would i go about this conversion?
View 4 Replies
View Related
Nov 29, 2014
What happens if I make a server application using tcp protocol and then establish connection with a client application but the server crash and then the client send data. Will the data be lost or the system will continue trying to send it?
View 2 Replies
View Related
Oct 4, 2012
i have task scheduling application which execute every 30 minute i want to keep this process when system is log off in c# console application
View 2 Replies
View Related
Sep 3, 2013
It's written here: URL....But those links don't work. I can't understand how to start programming using ncurses.
View 9 Replies
View Related
Jul 16, 2013
char []c =null;
c=new char[1];
why star from [1] not from [0]???
View 1 Replies
View Related
Jan 1, 2014
I started writing in c because I want to control relays with the parallel port, or anything else. Doesn't really matter what I use I just need to know where to start. Trying to send and receive data from the outside world with c programming on a GNU/Linux os? If so any good some what up to date resources online?
View 5 Replies
View Related
Feb 25, 2013
I'm new to C programming and am quiet lost, create a program that takes a start and stop time and prints the passed, or show me where I can find the information needed?
View 6 Replies
View Related
Feb 21, 2013
How would I go about getting a loop to return to the start?
View 2 Replies
View Related
Oct 23, 2013
How do i start writing Gaming app using C++. What is the environment required. I have mingw compiler installed on Windows8.
View 4 Replies
View Related
Nov 30, 2014
Write a program to simulate a printer queue (priority queue or heap – Bentley article has code) where 3 printers are “fed” by this queue. Each print job has an unchanging priority and higher priority jobs go first (although once started, a job isn't stopped to let a higher one go). For each unit of time, there is a 26% probability that a job will be added to the queue and all jobs take 8 time units to complete. Print job priorities are between 5 and 100. The queue opens 20 time units prior to the start of printing for adding print “jobs”. A print “day” is 1000 time units. The output from your program is:
1) A list of jobs completed with their priorities for each printer
2) A list of jobs not completed (if any).
#include <iostream>
#include <cstdio>
#include <cstring>
[Code].....
View 1 Replies
View Related
Jan 28, 2013
i want to add a prompt at the start of my program which ask a user to enter its password wat will be its syntax it is confusing me alot i have written this code but its gving me a problem
int security(char *num)
{
char pass[10];
ifstream file("pass.txt", ios::in);
[Code].....
View 3 Replies
View Related
Dec 29, 2013
My motive is to get random variable at every start of program. So it does not show same sequence when it run again and again ....
Code:
int main() {
srand( time ( NULL ) );
cout<<rand();
}
When I run this program in code::block the following program is opening with error in new tab called TIME.H
Code:
#ifndef_TIME_H_
#define_TIME_H_
/* All the headers include this file. */
#include <_mingw.h>
#define __need_wchar_t
#define __need_size_t
#define __need_NULL
#ifndef RC_INVOKED
#include <stddef.h>
#endif/* Not RC_INVOKED */
[Code] .....
View 5 Replies
View Related
Dec 29, 2013
My motive is to get random variable at every start of program. So it does not show same sequence when it run again and again
Code:
int main(){
srand( time ( NULL ) );
cout<<rand();
}
When i run this program in code::block the following program is opening with error in new tab called TIME.H
Code: /* * time.h
* This file has no copyright assigned and is placed in the Public Domain.
* This file is a part of the mingw-runtime package.
* No warranty is given; refer to the file DISCLAIMER within the package.
*
* Date and time functions and types.
*
*/
[Code] ....
View 8 Replies
View Related
May 30, 2013
I am doing a homework assignment. I do not want the complete answer, just a hint. I have to load a file of names into an array, display the names, then sort the names alphabetically, display them again, then list how many names start with certain letters. I have everything done but how to display how many names start with a certain letter.
Here are the names:
Collins, Bill Smith, Bart
Allen, Jim
Griffin, Jim
Stamey, Marty
Rose, Geri
...........
And here is the code I have so far.
Code:
#include <iostream>
#include <fstream>
#include <iomanip>
#include <string>
#include <algorithm>
[Code] ....
View 5 Replies
View Related
Feb 14, 2013
I'm poking around with doing a few Haskell-like functions for linked-lists. Take, drop and so on.I've done the code below. The problem is that it mysteriously inserts a 0 at the start of the list.
Code:
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <ctype.h>
#include <malloc.h>
}
[code]....
View 5 Replies
View Related
Mar 20, 2013
I'm interested in learning how to write the software for audio synthesizers. a friend of mine started on the hardware side for them and, as i have no experience with this type of code.
View 7 Replies
View Related
Nov 14, 2014
Right now I am trying to make an alarm clock type program that will start on login and will go off when a certain time is reached. I also want to set a password that will prevent system use until the correct password is entered into the program's input. What functions will I need and how are they used?
View 1 Replies
View Related
Oct 7, 2014
Sum up all the numbers between start and end. Lastly compare this sum to 1000.
--so i got the first part, but how to compare the sum to 1000.
View 3 Replies
View Related
May 8, 2014
I am making a product and in which i use a timer. I want when the product is being start the timer will run and when the product is off the timer will stop. If i again start the product the timer will start from its previous value.
I have problem that the timer start from its initial when i start my product.
View 7 Replies
View Related
May 1, 2012
I am looking at some C++ code that has many variables that start with underscores. Why? What's the point? I know in Python its a way to keep them private, but I don't understand why we would do that in C++ when we can just make something private.
View 14 Replies
View Related