Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Accessing Dos, i'm a newb
sangdukseo
post Sep 17 2005, 02:20 AM
Post #1


Member [Level 3]
******

Group: Members
Posts: 97
Joined: 16-June 05
Member No.: 8,302



Hey, i'm a newbie at c++. Is there anyway to access the windows system files through a c++ program? Kind of like running a command through dos. I could really use help here.

Second question. How do you create a system tray icon in windows? can this be done in c++?

i feel very dumb. please help me out.
Go to the top of the page
 
+Quote Post
switch
post Sep 18 2005, 09:31 AM
Post #2


Premium Member
********

Group: Members
Posts: 178
Joined: 13-October 04
From: NSW, Australia
Member No.: 1,713



lol don't feel dumb, i've been doing c++ for a year and i don't have a clue how to make a system tray icon. my best guess at that you could find a tutorial at www.codeproject.com.

[5 minutes later...] yep, the article is here.

never tried it myself, but as a general rule 'the codeproject' is awesome.

as for running a command through dos, the win32 command 'system()' will run a command as if you are typing it into an MS-DOS prompt. for instance:
CODE
system("edit myFile.txt");

will quickly pop open a console window, run the command "edit myFile.txt" and then show the resultant MS-DOS text editor.

hope that was what you were after.
keep coding!
Go to the top of the page
 
+Quote Post
dul
post Oct 4 2005, 11:09 PM
Post #3


Member [Level 1]
****

Group: Members
Posts: 73
Joined: 21-September 05
Member No.: 12,113



Hi. this is very good class which makes system tray icon. Site is http://www.planet-source-code.com/vb/scrip...d=6347&lngWid=3 . Try this. Thanks.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Accessing Physical Memory(3)


 



- Lo-Fi Version Time is now: 7th October 2008 - 06:34 AM