473,803 Members | 3,422 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

visible window from system function

i have a c++ program compiled in visual c++ that links to a c
library. when a system function is called in the c library a blank
command window is displayed while the c logic is executing. this is
from the windows cmd.exe that is executed by the system function. i
need to prevent the window from being displayed and would prefer doing
so from the c++ code (may not get access to c library source). any
suggestions? yes, i'm a newbie.

Mar 9 '07 #1
3 2465
extrnh wrote:
i have a c++ program compiled in visual c++ that links to a c
library. when a system function is called in the c library a blank
command window is displayed while the c logic is executing. this is
from the windows cmd.exe that is executed by the system function. i
need to prevent the window from being displayed and would prefer doing
so from the c++ code (may not get access to c library source). any
suggestions? yes, i'm a newbie.
Ask on a windows programming group.

--
Ian Collins.
Mar 9 '07 #2
On Mar 9, 2:37 am, "extrnh" <rgst...@comcas t.netwrote:
i have a c++ program compiled in visual c++ that links to a c
library. when a system function is called in the c library a blank
command window is displayed while the c logic is executing. this is
from the windows cmd.exe that is executed by the system function. i
need to prevent the window from being displayed and would prefer doing
so from the c++ code (may not get access to c library source). any
suggestions? yes, i'm a newbie.

That's the console window, you're building a console app. YOu need to
build a win app and never create/show the window. How to do that
you'll learn in a windows programming group or searching google. Good
luck.

Mar 9 '07 #3
On Mar 9, 2:43 am, "Cupu" <stefan.constan ...@gmail.comwr ote:
On Mar 9, 2:37 am, "extrnh" <rgst...@comcas t.netwrote:
i have a c++ program compiled in visual c++ that links to a c
library. when a system function is called in the c library a blank
command window is displayed while the c logic is executing. this is
from the windows cmd.exe that is executed by the system function. i
need to prevent the window from being displayed and would prefer doing
so from the c++ code (may not get access to c library source). any
suggestions? yes, i'm a newbie.

That's the console window, you're building a console app. YOu need to
build a win app and never create/show the window. How to do that
you'll learn in a windows programming group or searching google. Good
luck.
my apologies for not explaining the problem correctly. the visual c++
part is an mfc automation dll. it is executed by a vba macro in
excel. i have a posting on a windows programming group, no reponses
to date.

Mar 11 '07 #4

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

Similar topics

2
5292
by: Jon | last post by:
Hi all, I am trying to create a page that contains a number of div elements, with links on the left side of the page allowing the user to select which div to display. Some of the pages contain tables with border styles used to block off the columns and the headers, but not the individual rows. The pages will be displayed using IE 5.5 and later in the finished app. Now to the problem, which is a little awkward to describe:
14
11100
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a window.open function? I would prefer not to create a separate HTML page. So far all I have is the basic var cwin = window.open('images/KJV-THANKS.gif', 'Thanks', 'width=243,height=420,'); cwin.focus();
6
12206
by: vooose | last post by:
How would you determine if a window(Form) is visible. By visible I mean that you can currently see it, as apposed to Form.Visible. (which returns True when the window sits behind other windows) Using Form.Focused is no good because the form is still visible even when its not focused. -- Wal http://www.vooose.com
9
3350
by: WRH | last post by:
Hello I am new to asp but I made some Jscript functions which work fine. The functions contain some strings used as a registration key for some apps. It is important that these strings not be visible to a client using a browser. My question is...can a knowledgeable browser user view Jscript source code in an asp file?
4
2358
by: reikoshea | last post by:
okay ive been working at this for probably 4 hours now, and I (not to mention my boss) am pretty upset. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html;
1
2003
by: tony | last post by:
Hello!! I have an application that consist of several windows forms. Lets call these A,B and C for simplicity. I have one main meny where the user can choose window form A or B or C. When a user bring up a window for the first time I create an instance otherwise I just set visible = true. When a user brings up a window form for example B and the user click on the
15
3041
by: Mephisto187 | last post by:
How can I find the currently visible desktop? By calling EnumWindowStations and EnumDesktops I get a list of all available desktops. But is there a way to figure out which one of them is currently visible? I've tried to find the visible desktop by comparing the desktop handle, returned by the OpenDesktop function, to the desktop handle received by calling OpenInputDesktop. The result is that the default desktop is always the one...
1
1793
by: extrnh | last post by:
i have a visual c++ automation server (mfc dll) that links to a c library. the server is called by an excel vba macro. when a system function is called in the c library a blank command window is displayed while the c logic is executing. this is from the windows cmd.exe that is executed by the system function. i need to prevent the window from being displayed and would prefer doing so from the c++ code (may not get access to c library...
5
11277
by: dgardner | last post by:
This one has me stumped and I hope someone can help. I have a form with a button on it. When I click the button, I want a label named lblWait to be visible. (When the form opens, the label is not visible.) I have this line of code: Me.lblWait.Visible = True Then there is a line that defines strSQL. This takes a minute or so.
0
9565
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
10550
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10317
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...
1
10295
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10069
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...
1
7604
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6844
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5633
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3799
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.