473,397 Members | 2,084 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

How to hide command line arguments in a windows application

SC
I'm trying to hide command line arguments passed to a C++/Qt application
compiled for Windows. Under Linux, I replaced argc in the main with empty
spaces and it works, a 'ps -ef' does not show arguments anymore. But with
the same application compiled for Windows, I still can see the arguments
using prcView (for example). Do someone have an idea to do that?

Thanks for your help,

Stéphane
Jul 22 '05 #1
2 3413
SC wrote:

Off-topic to the n.g.

I'm trying to hide command line arguments passed to a C++/Qt application
compiled for Windows. Under Linux, I replaced argc in the main with empty
spaces and it works, a 'ps -ef' does not show arguments anymore. But with
the same application compiled for Windows, I still can see the arguments
using prcView (for example). Do someone have an idea to do that?


ps -wwef would show still in Linux !! Post to some specific
newsgroups related to windows implementation of the C compiler that you
are using.

--
Karthik.
Humans please 'removeme_' for my real email.
Jul 22 '05 #2
"SC" <sc*****@arkoon.net> wrote in message news:<c7**********@s1.read.news.oleane.net>...
I'm trying to hide command line arguments passed to a C++/Qt application
compiled for Windows. Under Linux, I replaced argc in the main with empty
spaces and it works, a 'ps -ef' does not show arguments anymore. But with
the same application compiled for Windows, I still can see the arguments
using prcView (for example). Do someone have an idea to do that?

Thanks for your help,

Stéphane


Restart your application without arguments, then exit the first instance.
Implemenatation left to the reader, as it's best done using Qt (==OT)

Regards,
Michiel Salters
Jul 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Hari | last post by:
can i have command line arguments in VS.NET applicatio? if yes how? Can i have some code snippets of the above functionality? I know we can acjieve this in console application form command...
7
by: Steve M | last post by:
I'm trying to invoke a Java command-line program from my Python program on Windows XP. I cannot get the paths in one of the arguments to work right. The instructions for the program describe the...
4
by: Primo | last post by:
Hi, This problem has been frustrating me for days and I hope you experts can help me out. I am trying to run a command, which I would normally run from the command line, from within my C#...
3
by: Dubya | last post by:
Hello Everyone, I have this little app, that I would like to configure two modes of operation by using command line arguments. If the app is started with no arguments, the Main UserForm shows...
1
by: Rune Jacobsen | last post by:
Hi, I've been trying to figure this one out, but my experience just doesn't have what it takes... :| I am writing an application that reads an XML file and displays the contents in various...
40
by: raphfrk | last post by:
I have a program which reads in 3 filenames from the command line prog filename1 filename2 filename3 However, it doesn't work when one of the filenames has spaces in it (due to a directory...
4
by: Milan | last post by:
How do you pass in arguments from the command line to a .Net windows app. Senario: vb.net application should be able to execute from command prompt by passing login and password and should be...
9
by: Brad Pears | last post by:
I want to pass an integer customer# into my vb app from the command line when I run it... something like this.... c:\program files\Myapp\myvbapp.exe 100 So in the case above, when my...
7
by: Jwe | last post by:
Hi, I've written a program which has both a command line interface and Windows form interface, however it isn't quite working correctly. When run from command line with no arguments it should...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.