473,626 Members | 3,467 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Hiding External program

I'm trying to call a external program from another. My main program is a GUI
buildin borland c++ builder, and my sibbling is compiled Matlab code.

I would like to call to the program, passing arguments and suppress the
msdos window from popping up.

I have had success with system( ) and spawnl( ) but cant seem to get the
external program to just run in the background.
Jul 19 '05 #1
4 4465
"Matthew Maylin" <mi***@kent.ac. uk> wrote in message
news:bl******** **@athena.ukc.a c.uk...
I'm trying to call a external program from another. My main program is a GUI buildin borland c++ builder, and my sibbling is compiled Matlab code.

I would like to call to the program, passing arguments and suppress the
msdos window from popping up.

I have had success with system( ) and spawnl( ) but cant seem to get the
external program to just run in the background.

You could try to get the console window with 'FindWindow' and hide it
with 'ShowWindow (.., SW_HIDE)'. This way it will also disappear from the
taskbar. Problem is that you might see a little flash for the short time the
window is created until you hide it.

If you use 'CreateProcess' instead of 'system ()' you can even pass the
SW_HIDE flag in the 'wShowWindow' member of the 'STARTUPINFO' structure
passed to 'CreateProcess' , which will do the same as the above solution,
just without the flash.

Other than that, I am not sure why you posted this in comp.lang.c++ as
your question does not have anything to do with the C++ Language but rather
with the OS and its API you are working with. Try posting to a more
approriate news group, if my answer does not help (which I am not too sure
of, since I have never heard about 'spawnl ()' on the OS I am using).

hth
--
jb

(replace y with x if you want to reply by e-mail)
Jul 19 '05 #2
WW
Jakob Bieling wrote:
[SNIP]

Keep your Windows stuff out of here. Thank you:

http://www.slack.net/~shiva/welcome.txt

http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

--
WW aka Attila
Jul 19 '05 #3
Thanks Jakob. I'll look into thoose suggestions.

WW, hey I'm sorry thought it was a pporpiate for newsgroup. There are worst
crimes in the world you know.
Jul 19 '05 #4
"WW" <wo***@freemail .hu> wrote in message
news:bl******** **@phys-news1.kolumbus. fi...
Jakob Bieling wrote:
[SNIP]

Keep your Windows stuff out of here.


My way of showing the OP that his question requires a platform specific
answer.
--
jb

(replace y with x if you want to reply by e-mail)
Jul 19 '05 #5

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

Similar topics

1
1538
by: LameX | last post by:
Hi people, Do you know how can I hide an external application window (so it will be visible only in the process list) ? I should know how to find TaskID of the application, so I only need to find a way to hide it. I mean i want to hide entire application, not only single window. One time i wrote something similiar in Visual Basic 6.0, but it only worked for some applications (of course not for the applications i'd like to hide), but...
4
2792
by: sam | last post by:
Hi, Is there any way I can prevent people use some binary disambler (eg. strings in unix) to view the const string value in a compiled C++ program? Sam.
4
20133
by: My SQL | last post by:
Hi Can I trigger an external program to run when a new record is added to the mysql table? The external program is in C and instead of scanning the table continuously for new insertions, it will be better if an external program could be triggered. Any suggestions?
2
5316
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: 1>make_buildinfo.obj : error LNK2019: unresolved external symbol __imp__RegQueryValueExA@24 referenced in function _make_buildinfo2 Ask on python-list@python.org . - Josiah
11
3159
by: Alex | last post by:
Hello all, I have a main form(say "form1") .i want to display another form(say "form2") on occuring of an event (say a button click) and want to hide it after some time so that it will again displays while occuring of the same event.I develop it by creating an object of the form2 and displays it in the event by calling form2.Show() and hide it by calling form2.Hide(). the problem is that while displaying the form2 the memory usage of...
11
5640
by: sofeng | last post by:
I'm not sure if "data hiding" is the correct term, but I'm trying to emulate this object-oriented technique. I know C++ probably provides much more than my example, but I'd just like some feedback to find out if I've done anything wrong. Also, I am working on this for an embedded environment, so if there are great inefficiencies with this code, I'd like to know that also. I realize there is overhead with using an "accessor" function. ...
162
10213
by: Sh4wn | last post by:
Hi, first, python is one of my fav languages, and i'll definitely keep developing with it. But, there's 1 one thing what I -really- miss: data hiding. I know member vars are private when you prefix them with 2 underscores, but I hate prefixing my vars, I'd rather add a keyword before it. Python advertises himself as a full OOP language, but why does it miss one of the basic principles of OOP? Will it ever be added to python?
2
2709
by: =?Utf-8?B?YmFzaA==?= | last post by:
Hello, I am compiling a CPP code using Visual studion .net 2003. I get the following error, despite having windldap.h and wldap32.dll in my include and lib paths. Here is the error. uuid.lib rpcrt4.lib ole32.lib oleaut32.lib uuid.lib Creating library libsq00.lib and object libsq00.exp libq00.lib(ootb.obj) : error LNK2019: unresolved external symbol _ldap_unbind@4
2
2834
Frinavale
by: Frinavale | last post by:
This question may seem a bit newbie-ish but I'm new to desktop applications...please bear with me. I have a function that populates a ComboBox with a bunch of names. To populate it I have to make a function call to an external class library (which is poorly designed) many many times (512 to be exact)....you can see that this will take a while. After populating the ComboBox I initialize a user control which displays details about the first...
0
8268
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8202
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8641
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8510
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4093
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4202
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2628
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1812
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1512
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.