473,326 Members | 2,095 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,326 software developers and data experts.

Help creating a program with no console window

Hi everyone,

I've been learning C++ primarily to write little applications to display on my Z-10 speakers' LCD screen.
This is fine, and I've got a nice little binary clock showing on screen.

The only problem is that if I want this running, I have to have a command line window open running my program.

I'm using the Bloodshed IDE - I figured at first that this was from choosing the "Console Application" when starting a new project, but all templates have the same effect.

Is there a nice easy solution to this?
I couldn't find one elsewhere on the internet.

EDIT: Oh, and apologies for the word "help" in the title ... without it it's ambiguous whether I want it to open with no window or if it is already doing so and I want it to stop.
Jul 12 '08 #1
2 3204
oler1s
671 Expert 512MB
I'm using the Bloodshed IDE - I figured at first that this was from choosing the "Console Application" when starting a new project, but all templates have the same effect.
Templates? You want to be looking at the project settings for setting a window. That's what any template does, it sets up project settings for you. There should be some option for setting console vs windows vs dll build. You want windows.

Oh, and you need to modify your code for a windows application. Mainly that your main function signature changes. Any basic windows tutorial will show you the correct signature. You don't have to do anything else fancy though.

On a side note, I encourage people using Dev-C++ to switch to Visual C++. Visual C++ 2008 Express Edition is free and significantly better.
Jul 12 '08 #2
That's what I was referring to.

I have gotten it to work now, by loading up a Windows application as you mentioned and just tearing out most of the code.

All is now happy.

Thanks
Jul 12 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Tom | last post by:
A question for gui application programmers. . . I 've got some GUI programs, written in Python/wxPython, and I've got a help button and a help menu item. Also, I've got a compiled file made with...
2
by: Eric Ching | last post by:
Can I run pythonw with a script that takes command line arguments then launches a GUI? I try pythonw myscript.pyw -option arg (etc.) and nothing happens. Nothing, as in I am immediately returned...
12
by: serge calderara | last post by:
Dear all, I have an application which is suppose to start another executable process. As soon as that process is running, I need to retrive its handle. The problem of the particular process I am...
7
by: Miktor | last post by:
At the minute I am using the following rather unwieldy function to prevent the console window in Dev C++ from closing before I can see the output from my program: // function to prevent the...
12
by: Noam | last post by:
I had originally written a program as a c# console application. The program used a reference that I wrote in c++. Later I was told to re-write the application as a windows service. When the service...
5
by: Marin | last post by:
Right now my solution to this is adding Console.ReadLine at the end but I'm wondering if it's possible to do it automatically? If I chose "Start without debug" it does just that, it pauses right...
12
by: adamurbas | last post by:
ya so im pretty much a newb to this whole python thing... its pretty cool but i just started today and im already having trouble. i started to use a tutorial that i found somewhere and i followed...
11
by: CProgrammer331 | last post by:
A very silly question which I never could answer to: How to create a simple Win32 program that doesn't show any window (neither minimized) the easiest way?
2
by: hcaptech | last post by:
This is my Test.can you help me ? 1.Which of the following statement about C# varialble is incorrect ? A.A variable is a computer memory location identified by a unique name B.A variable's name...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.