Current location: Hot Scripts Forums » Programming Languages » C/C++ » First big project, need something to help me get started.


First big project, need something to help me get started.

Reply
  #1 (permalink)  
Old 01-22-06, 08:39 PM
phizzlecom phizzlecom is offline
Newbie Coder
 
Join Date: Oct 2004
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
First big project, need something to help me get started.

Greetings C Gurus,

Me and my friend are trying to learn C++, and we've stumbled upon our first project. It will run on the Windows platform, and the idea is to have the program run the second the user logs in. It will prompt the user, and ask them a question, "What is 1+1?". The user will have to enter "2" before all other processes continue. Before we start writing the code, can someone help us figure out some of these general ideas?

Will we need to edit the boot.ini file? Can a C++ program do this? How complicated is this? I guess this will, in theory, work like a "password" program. So I guess my big question is what's involved in doing this, and how do we make a program run itself at login?

Thanks.
__________________
Cheers,
Ryan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 01-26-06, 02:13 PM
digioz's Avatar
digioz digioz is offline
Community VIP
 
Join Date: Oct 2003
Location: Chicago, IL
Posts: 2,167
Thanks: 3
Thanked 8 Times in 8 Posts
Although I think this is a bit difficult for a first project, here is how to do what you want. To make your application run at login for All versions of Windows, you will need to add the following Registry entry:

For all users:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Run

For current user:

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Curre ntVersion\Run

There is two ways to do this:

a. Manually:

- Click "Start > Run" and type "regedit" in the box provided.
- Browse to the desired location shown above through the explorer style interface on the left side of the screen.
- Right Click on the right area, and select "New > String Value".
- Specify a name for your application such as "MyApplication" and hit enter.
- Select the newly created registry entry, and choose "Modify".
- Enter the path to the location on the machine, where your actual application (exe file) is locatated and hit "OK".

b. Using Code:

There is a C++ Class that you can download here:

www.codeproject.com/system/windows_startup.asp

This class will do the same for you as described above using C++ code, but that's assuming that you know how to use that code already.

Enjoy, and best of luck learning C++.


Pete
__________________

Last edited by digioz; 01-26-06 at 02:32 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Programmers needed for forum-building project Tyler Cole Job Offers & Assistance 15 06-12-05 06:09 PM
I need help with a HUGE new project! Debonair23 Job Offers & Assistance 0 05-30-05 10:05 PM
Big PHP project in need of coder(s). Three months timeframe. TDNetwork Job Offers & Assistance 2 03-31-05 07:56 AM
Looking for PHP Programmers for High Profile Mozilla Project stscac Job Offers & Assistance 3 03-31-05 05:03 AM
CodeChargeStudio Project Files On Sale feha General Advertisements 0 07-13-04 11:33 AM


All times are GMT -5. The time now is 10:33 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.