There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Software Development
Tag Cloud
audio blue screen boot bsod computer cpu crash dell desktop driver drivers error excel external hard drive firefox format freezes freezing hard drive hardware hijackthis internet internet explorer itunes laptop malware motherboard mouse network networking outlook 2007 power printer problem ram router screen slow sound spyware trojan usb virus vista vista 32-bit windows windowsxp windows xp winxp wireless
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
uhh......can't write hello world?!?!?!


Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
IMM's Avatar
IMM IMM is offline IMM is authorized to help remove malware.
Distinguished Member with 3,165 posts.
 
Join Date: Feb 2002
07-Jul-2002, 11:29 PM #16
I should have written this earlier (rather than talked about how to format posts for this board )

It looks your code linked as well as compiled to produce the executable file Project~2.exe.

This was suggested earlier - have you opened a DOS window and changed to the directory in which your code resides (c:\windows\desktop\code I think you said) and then typed Project~2.exe at the command line ??
(It's nice to have a context menu utility like DosHere for this sort of thing)

What is likely happening is that your code runs but the dos window it runs in is closing automatically after it runs (and code like that won't take very long to run )

The code additions which were suggested merely hold the DOS window open until you hit a key.

I'm not familiar with your compiler and IDE but it lives at http://www.bloodshed.net/devcpp.html

If there is an option when you create a new project - what you need for something like this will likely be called a console type project which will create DOS like executables. There is also likely a way to run the output from within the IDE (Go or Debug or similar)

Last edited by IMM : 07-Jul-2002 11:36 PM.
semidevil's Avatar
Senior Member with 178 posts.
 
Join Date: Jun 2002
07-Jul-2002, 11:46 PM #17
hmm..........a creating the new project as a console application did help. I saw an MS-Dos box, but it went away in a split second.......now how can I make it stay........
IMM's Avatar
IMM IMM is offline IMM is authorized to help remove malware.
Distinguished Member with 3,165 posts.
 
Join Date: Feb 2002
08-Jul-2002, 12:02 AM #18
As I said before - you can
1) run it from an already open DOS box
OR
2) add the code which will hold it open until you tap a key.
It was discussed in http://forums.techguy.org/t84500/s1c...0106de848.html
OR
3) look around in the IDE for a setting which will do it for you. It may hold open automatically if you run it in the debugger for example.
DJ P@CkMaN's Avatar
Senior Member with 414 posts.
 
Join Date: Aug 2001
Location: Burpengary, QLD, Australia
08-Jul-2002, 07:45 AM #19
hey eddie,
i've heard you guys talking about a free borland compiler. i have been having trouble with VC++ and i would be interested in trying this. where could i download it from?

thanks
eddie5659's Avatar
Computer Specs
Moderator with 18,680 posts.
 
Join Date: Mar 2001
Location: Bradford, England
08-Jul-2002, 07:20 PM #20
Er, it wasn't free. It was supplied with the book:

This is the nearest I could find:

http://www.amazon.com/exec/obidos/AS...241028-1173732

Though this is the main site of Borland:

http://www.borland.com/products/index.html

The one I have is an old version, and its in 14 days, though as programming is not a good point with me, I make it into 14 weeks

Still, have to study it again. Never got past chapter 2

eddie
__________________
Just go with the flow, like a twig on the shoulders of a mighty stream

Weekends I may be busy, so there may be a delay in replies.
DJ P@CkMaN's Avatar
Senior Member with 414 posts.
 
Join Date: Aug 2001
Location: Burpengary, QLD, Australia
08-Jul-2002, 07:55 PM #21
sorry about that, i've seen someone talk about a free version of borland C++ compiler but never mind, i can stick with VC++
Snake~eyes's Avatar
Senior Member with 640 posts.
 
Join Date: Apr 2002
09-Jul-2002, 11:03 AM #22
Quote:
Originally posted by DJ P@CkMaN:
sorry about that, i've seen someone talk about a free version of borland C++ compiler but never mind, i can stick with VC++
yah there is such a thing.
DJ P@CkMaN's Avatar
Senior Member with 414 posts.
 
Join Date: Aug 2001
Location: Burpengary, QLD, Australia
10-Jul-2002, 08:48 AM #23
any ideas of where to get it would be appreciated
Snake~eyes's Avatar
Senior Member with 640 posts.
 
Join Date: Apr 2002
10-Jul-2002, 11:33 AM #24
IMM's Avatar
IMM IMM is offline IMM is authorized to help remove malware.
Distinguished Member with 3,165 posts.
 
Join Date: Feb 2002
10-Jul-2002, 02:02 PM #25
Snake~eyes's Avatar
Senior Member with 640 posts.
 
Join Date: Apr 2002
10-Jul-2002, 02:20 PM #26
i remember that thread and looked for it.. oh well
DJ P@CkMaN's Avatar
Senior Member with 414 posts.
 
Join Date: Aug 2001
Location: Burpengary, QLD, Australia
10-Jul-2002, 10:11 PM #27
lol.. not helping snakey!!
Snake~eyes's Avatar
Senior Member with 640 posts.
 
Join Date: Apr 2002
10-Jul-2002, 11:04 PM #28
oh well.. lol

just chitchatting
DJ P@CkMaN's Avatar
Senior Member with 414 posts.
 
Join Date: Aug 2001
Location: Burpengary, QLD, Australia
11-Jul-2002, 03:29 AM #29
u wanna "chit chat" head over to my site and make the forums look busy
Snake~eyes's Avatar
Senior Member with 640 posts.
 
Join Date: Apr 2002
11-Jul-2002, 12:27 PM #30
phpbb sux0rz
and i have my own sites to chitchat
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 05:53 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.