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

modify this c++ source code

hello gurus of C++ programming,

I am a student doing my masters in computer applications.I am a bit
experienced in VB 6.0.I am currently doing a project in vb 6.

To accompish a certain task I have to use C++ programming.So I searched
for the sample coding in the web and I found some source code.

The C++source code reads the hardware manufacturer information from the
harddisk like its

Serial number[the permanent harddisk serial number and not the volume
information which changes on formatting]this cannot be done from VB
and some other datas which I am not interested in.

I am a novice in C++ programming.

currently on running the exe the exe displays the informations to the
user and closes itself(pretty quickly).

I would like you guys to help me in the following areas.

I dont want the exe to display any info to the user,
instead there will be a text file named "sno" [sno.txt opens with
Notepad] at the location "c:\windows\"

On running the exe file
The Drive serial number must be written to the text file "sno"(just the
DRIVE SERIAL NUMBER and nothing else either before or after it).

(if the above number could be copied to the windows clipboard it would
be a better option)

And then the exe should exit.(as it does now)

I am attaching the C++ source code,the exe file and a screen capture of
the result it generates.
(the executable runs very fast: so run the executable by having your
finger on the print screen key and as soon as it runs copy the screen
paste it on any image editing software and you can get the info)

I tried to modify the code by myself but of no use.It wont even compile
I want you guys to help me in modifying the code and compile it into an
executable file.After doing so please send me back the modified source
code and the compiled exe file.

send it to
ja******@gmail.com

http://rapidshare.de/files/8636424/c___help.zip.html

Expecting help from you guys

Dec 5 '05 #1
4 1854
* c++ newbie:

I want you guys to help me in modifying the code and compile it into an
executable file.After doing so please send me back the modified source
code and the compiled exe file.


Disappear, please.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Dec 5 '05 #2
On 4 Dec 2005 18:10:14 -0800, "c++ newbie" <JA******@gmail.com> wrote:
hello gurus of C++ programming,

I am a student doing my masters in computer applications.I am a bit
experienced in VB 6.0.I am currently doing a project in vb 6.


I hope you fail.

No, I really do. You'll probably have graduated by next year and take
up yet another programming job that could have been given to a capable
person who put time and effort into his studies.
Dec 5 '05 #3
c++ newbie wrote:

hello gurus of C++ programming,

I am a student doing my masters in computer applications.


From a student doing his masters I would expect to be able
to do it himself. If you don't know C++ then go to your
local library, grab a book about C++ and start reading.
Eventually you will begin understanding what's going
on in your source code. *Then* start modifying the code
until it does what you expect.

As said: From a master, I would expect that he is able to do that.

--
Karl Heinz Buchegger
kb******@gascad.at
Dec 5 '05 #4
c++ newbie wrote:
hello gurus of C++ programming,

I am a student doing my masters in computer applications.I am a bit
experienced in VB 6.0.I am currently doing a project in vb 6.


A *MASTERS* in computer science, and you only know a 'bit'
about Visual Basic? Nothing else? I suggust going to a
different college that actually teaches computer science,
including non-MicroSoft ideas. You are really wasting
your time at your current place. Most people who have spent
over 4 years in computer science know more that a 'bit'
about a single language.

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Dec 5 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Fuzzyman | last post by:
I am trying to parse an HTML page an only modify URLs within tags - e.g. inside IMG, A, SCRIPT, FRAME tags etc... I have built one that works fine using the HTMLParser.HTMLParser and it works...
4
by: titanandrews | last post by:
Hi, I have ran into a situation that I think should be possible, but I am fairly new to XSLT so maybe not. Suppose I have the following document <ROOT> <FOO name="A"> <CHILD name="B"/>...
4
by: pmud | last post by:
Hi I have a website (ASP.NET project using C# ) which is already put up on the server. I need to make some modification to some web pages.So the project files were copied to the a different server...
2
by: Got2Go | last post by:
Hello, I am trying to come up with a function that will search the source of the page for a specific string. If that string is found, then have it modify specific tags inside of a table and...
3
by: DC Gringo | last post by:
Hi, I'm trying to use a custom action to modify a database (rather than create one) using the VS.NET '03's help example called "Custom Action to Create Database During Installation". I've made...
3
by: DaveO | last post by:
My apologies for individually posting this to multiple newsgroups - my ISP won't allow multiple posts. I'm not a C programmer, so I'm looking for someone to modify some UnZip code for a...
5
by: kidders | last post by:
Below is a script i need to modify to work and its driving me nuts. Essentially it fades the content of an array. The original script specified the object name, I tried to modify it to allow an...
2
by: priyammaheshwari | last post by:
Hi All, I have a huge MS Access database in which requests are added at regular basis as in almost every minute.I have to modify the data type of one of the coloumns in this database,but i cant...
1
by: G Love | last post by:
Hi, I am trying to modify some code in a toolbar I have for generating random 'spam' entries on my forum. I have managed to extract all the relevant files from the firefox .xpi file and the .jar...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.