C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 20th, 2003, 07:52 PM
Ogre Ogre is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 1 Ogre User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to Ogre
lots of dos questions

first off I am a newbie at C++ and I am programming a dos program and I need to know a couple of stuff I can't figure out.
1. how do you open applications
2. how do you get system information
3. some fun ideas to put in it like openning the cd drive

I think that is it. I need to know where to find good tutorials about C++ dos programming, and if anyone is willing to teach me can someone msn me at URL

Reply With Quote
  #2  
Old May 20th, 2003, 10:21 PM
infamous41md's Avatar
infamous41md infamous41md is offline
not a fan of fascism (n00b)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Feb 2003
Location: ct
Posts: 2,756 infamous41md User rank is Sergeant (500 - 2000 Reputation Level)infamous41md User rank is Sergeant (500 - 2000 Reputation Level)infamous41md User rank is Sergeant (500 - 2000 Reputation Level)infamous41md User rank is Sergeant (500 - 2000 Reputation Level)infamous41md User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 11 h 4 m 29 sec
Reputation Power: 26
1)check out the other thread in this section about this
2) win32 api provides a number of functions for obtaining file system info, network info, pretty much everything. try googling for win32 system info or something along those lines
3) i have no idea how to do it in C, but i have a real simple javascript that does that, if u want to have it let me know.

Reply With Quote
  #3  
Old May 22nd, 2003, 12:12 PM
homncruse homncruse is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 14 homncruse User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
1.)
Code:
#include <stdlib.h>
system ("insert program path here");

That would be the simplest way to do it - although probably not the most efficient.

2 & 3.) I'm just speculating here, since I have no idea how to go about it.. but for number 3, wouldn't it be similar to operating any other hardware through a program? Once you figure out how to get the system info, it should be able to tell you what their CD-ROM driver is, and you can have your program access that and force it to open the CD-ROM. I've no idea how to do it though - just speculation.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > lots of dos questions


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT