473,795 Members | 2,892 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1902
* 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
1583
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 fine.... on good HTML. Having done a google it looks like parsing dodgy HTML and having HTMLParser choke is a common theme. I would have difficulties using regular expressions as I want to modify local reference URLS as well as absolute ones.
4
1658
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"/> </FOO>
4
1745
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 where I could modify tha pages. But when I open the .aspx pages with Visual studio.net, then I just see the HTML code & no design view of the page. How should I edit the page when in Visual Studio I cant see the design view. Just in case...
2
1720
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 display a link on the page. This link, when clicked will then restore the modified tags back to their original values.
3
2337
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 two modifications to the sample in the document...both are in the "Protected Sub AddDBTable" (towards the bottom). I've changed ' Creates the database.
3
4155
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 Self-Extracting stub. I have a copy of the source code of the UnZipSFX utility, also available from : http://sourceforge.net/project/showfiles.php?group_id=118012
5
1491
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 object to be passed instead as there are two fading areas on the page code below, to be honest I could see absolutely no reason why but im not that offay with javascript so this could be down to me. Deadlines are getting tight on this one so not...
2
1690
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 copy the database to my system and make this change and then put it back.So i want to make the changes through ASP code.I had written the following code to do the same but this is not working. <%@Language=VBScript Dim conn,rs,sConnection Set...
1
1411
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 file, the code of interest initially looks like so (this was written by someone else and I suspect it was partially taken from another source prior to that too so I'm unsure if the following code is all necessary); function Tools_SpamSeries() {
0
9519
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10438
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10001
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7540
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3727
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.