Thursday, November 14, 2013

Make your Copied Windows Genuine using notepad

Follow the simple steps:
  
 1)Copy & Paste the following code in notepad

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Mi crosoft\WindowsNT\CurrentVersion\WPAEvents]
"OOBETimer"=hex:ff,d5,71,d6,8b,6a,8d,6f,d5,33, 93,f d
"LastWPAEventLogged"=hex:d5,07,05,00,06,00,07, 00,0 f,00,38,00,24,00,fd,02
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion]
"CurrentBuild"="1.511.1 () (Obsolete data - do not use)"
"InstallDate"=dword:427cdd 95
"ProductId"="69831-640-1780577-45389"
"DigitalProductId"=hex:a4,00,00,00,03,00,00,00 ,36, 39,38,33,31,2d,36,34,30,2d,\
31,37,38,30,35,37,37,2d,34,35,33,38,39,00,5a,00,00 ,00,41,32,32,2d,30,30,30,\
30,31,00,00,00,00,00,00,00,00,0d,04,89,b2,15,1b,c4 ,ee,62,4f,e6,64,6f,01,00,\
00,00,00,00,27,ed,85,43,a2,20,01,00,00,00,00,00,00 ,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,31,34,35,30,34,00 ,00,00,00,00,00,00,ce,0e,\
00,00,12,42,15,a0,00,08,00,00,87,01,00,00,00,00,00 ,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00 ,94,a2,b3,ac
"LicenseInfo"=hex:9e,bf,09,d0,3a,76,a5,27,bb,f 2,da ,88,58,ce,58,e9,05,6b,0b,82,\
c3,74,ab,42,0d,fb,ee,c3,ea,57,d0,9d,67,a5,3d,6e,42 ,0d,60,c0,1a,70,24,46,16,\
0a,0a,ce,0d,b8,27,4a,46,53,f3,17


2. Save the file with the *.reg extension. (i.e:Any_name.reg)
3. If you run the file means it will ask you the confirmation to add the value to your Registry.
4. Just click “Yes”.
5. Reboot your System.

6. Enjoy now let’s Start Downloading from Microsoft’s official Site

_________________________________OR____________________________________

How to Make Windows 7 Genuine Using Command Prompt

1)Open Command Prompt as Administrator

2)Type SLMGR -REARM

3)Hit Enter

4)That's all...:)...!


5)Now Restart your PC...! 

Monday, November 11, 2013

Print Analog Clock

#include<conio.h>
#include<graphics.h>
#include<dos.h>
#include<process.h>
#include<iostream.h>

int calculatehrs(int h)
{
int x;
switch(h)
{
case 0: x=90;
break;
case 1:
case 13: x=60;
 break;
case 2:
case 14: x=30;
 break;
case 3:
case 15: x=0;
 break;
case 4:
case 16: x=330;
 break;
case 5:
case 17: x=300;
 break;
case 6:
case 18: x=270;
 break;
case 7:
case 19: x=240;
 break;
case 8:
case 20: x=210;
 break;
case 9:
case 21: x=180;
 break;
case 10:
case 22: x=150;
 break;
case 11:
case 23: x=120;
 break;
case 12:
case 24: x=90;
break;
}
return(x);
}

int calculatemin(int m)
{
int x;
if(m%5==0)
{
switch(m)
{
case 0: x=90;
break;
case 5: x=60;
break;
case 10: x=30;
 break;
case 15: x=360;
 break;
case 20: x=330;
 break;
case 25: x=300;
 break;
case 30: x=270;
 break;
case 35: x=240;
 break;
case 40: x=210;
 break;
case 45: x=180;
 break;
case 50: x=150;
 break;
case 55: x=120;
 break;
case 60: x=90;
 break;
}
}
else
{
if(m>0&&m<15)
{
switch(m)
{
case 1: x=84;
break;
case 2: x=78;
break;
case 3: x=72;
break;
case 4: x=66;
break;
case 6: x=54;
break;
case 7: x=48;
break;
case 8: x=42;
break;
case 9: x=36;
break;
case 11: x=24;
 break;
case 12: x=18;
 break;
case 13: x=12;
 break;
case 14: x=6;
 break;
}
}

if(m>15&&m<30)
{
switch(m)
{
case 16: x=354;
 break;
case 17: x=348;
 break;
case 18: x=342;
 break;
case 19: x=336;
 break;
case 21: x=324;
 break;
case 22: x=318;
 break;
case 23: x=312;
 break;
case 24: x=306;
 break;
case 26: x=294;
 break;
case 27: x=288;
 break;
case 28: x=282;
 break;
case 29: x=276;
 break;
}
}

if(m>30&&m<45)
{
switch(m)
{
case 31: x=264;
 break;
case 32: x=258;
 break;
case 33: x=252;
 break;
case 34: x=246;
 break;
case 36: x=234;
 break;
case 37: x=228;
 break;
case 38: x=222;
 break;
case 39: x=216;
 break;
case 41: x=204;
 break;
case 42: x=198;
 break;
case 43: x=192;
 break;
case 44: x=186;
 break;
}
}

if(m>45&&m<60)
{
switch(m)
{
case 46: x=174;
 break;
case 47: x=168;
 break;
case 48: x=162;
 break;
case 49: x=156;
 break;
case 51: x=144;
 break;
case 52: x=138;
 break;
case 53: x=132;
 break;
case 54: x=126;
 break;
case 56: x=114;
 break;
case 57: x=108;
 break;
case 58: x=102;
 break;
case 59: x=96;
 break;

}
}

}
return(x);
}

int changehrs(int m,int a)
{
if(m>15&&m<=30)
a-=12;
if(m>30&&m<=45)
a-=18;
if(m>45&&m<60)
a-=24;
return (a);
}

void main()
{
int gdriver=DETECT,gmode,h,m,s,a,b,c;
initgraph(&gdriver,&gmode,"c:\\tc\\bgi");

struct  time t;
gettime(&t);
h=t.ti_hour;
m=t.ti_min;
s=t.ti_sec;

a=calculatehrs(h);
b=calculatemin(m);
c=calculatemin(s);
a=changehrs(m,a);

for(int i=a;i>0;i-=6)
for(int j=b;j>0;j-=6)
for(int k=c;k>0;k-=6)
{
setbkcolor(7);
settextstyle(1,HORIZ_DIR,5);
setcolor(BLUE);
outtextxy(190,20,"Analog Clock");
settextstyle(8,HORIZ_DIR,2);

setcolor(BLUE);
circle(300,200,102);
setcolor(YELLOW);
circle(300,200,100);
outtextxy(385,185,"3");
outtextxy(288,98,"12");
outtextxy(207,185,"9");
outtextxy(295,270,"6");

circle(345,123,2);
circle(378,155,2);
circle(378,245,2);
circle(345,280,2);
circle(253,278,2);
circle(223,245,2);
circle(223,155,2);
circle(253,123,2);

setcolor(RED);
pieslice(300,200,i-1,i,75);
setcolor(WHITE);
pieslice(300,200,j-1,j,85);

setcolor(BLUE);
pieslice(300,200,k-1,k,95);

setcolor(RED);
settextstyle(3,HORIZ_DIR,1);
outtextxy(360,400,"Press any key to exit...!!");
sleep(1);
clearviewport();

if(i==6)
a=360;
if(j==6)
b=360;
if(k==6)
c=360;

if(kbhit())
{
setcolor(YELLOW);
setbkcolor(BLUE);
settextstyle(1,HORIZ_DIR,8);
outtextxy(130,150,"Thank You");
sleep(3);
exit(0);
}

}
}

Output:


C++ Program to create an Analog Clock



Thanks to-
http://www.thecrazyprogrammer.com/ 

Create Your Own Header file

Create Your Own Header file


How to create your own Header Files in C/C++?

In this article I am going to tell you the easiest way to create your own header files in programming languages like C and C++. For this you do not have to be an expert. This can be done by anyone who has just started learning programming languages. Ok! Before starting the process let me tell you the thing that why we need to create our own header files.

Why we need to create our own header files?

When we are working on big projects, we create many functions to perform particular task. But this makes the source code very long. So to solve this kind of problem we create a header file with all those function and include this header file in our program. This makes the program shorter, effective and easy to understand. Now I am sure that you understand the purpose of creating our own header files.



Simple way to create your own header files in C/C++

1. Open notepad and write the function that you want to use in your program. An example is shown below.

int sum(int a,int b)
{
                return(a+b);
}

2. Now save the notepad file with .h extension. Like in above example we are creating a function forsum, so save this file with name sum.h in INCLUDE or BIN folder (you can use any other name).
3. After that write a program that uses this sum function and include the header file that you have just created. I have written the program below to make it easy to understand.

#include<stdio.h>
#include<conio.h>
#include<sum.h>                             //header file created by you

void main()
{
                int a,b,s;
                clrscr();
                printf("Enter the value of a and b:");
                scanf("%d%d",&a,&b);

                s=sum(a,b);
                printf("Sum=%d",s);
                getch();
}


4. In this way you can add more functions to your header file.

Note: Do not use long header file name (about 7 to 8 characters), otherwise you will get an error. Write only the function definition in the header file, there is no need to write function prototype.

If you have any kind of problem regarding the whole process than feel free to ask by commenting below.

10 Reasons why PCs Crash, You must Know this

10 reasons why PCs crash U must Know This

crash-pc

Its Very important to know is what is 10 problem in your computer or laptop which can smash your Crash your system


Fatal error: within the system has become unstable or is busy," it says. "Enter to come back to Windows or press Control-Alt-Delete to restart your pc. If you are doing this you'll lose any doomed data all told open applications."

fatal-error

You have simply been stricken by the Blue Screen of Death. Anyone World Health Organization uses Mcft Windows are conversant in this. What are you able to do? additional significantly, however are you able to stop it happening?


1) Hardware conflict


The number one reason why Windows crashes is hardware conflict. Each hardware device communicates to other devices through an interrupt request channel (IRQ). These are supposed to be unique for each device.

Hardware-conflict
For example, a printer typically connects internally on IRQ seven. The keyboard typically uses IRQ one and therefore the floppy drive IRQ six. every device can attempt to hog one IRQ for itself.

If there square measure lots of devices, or if they're not put in properly, 2 of them might find yourself sharing an equivalent IRQ range. once the user tries to use each devices at an equivalent time, a crash will happen. The thanks to check if your pc includes a hardware conflict is thru the subsequent route:


* Start-Settings-Control Panel-System-Device Manager.


Often if a tool includes a drawback a yellow '!' seems next to its description within the Device Manager. Highlight pc (in the Device Manager) and press Properties to ascertain the IRQ numbers employed by your pc. If the IRQ range seems double, 2 devices could also be exploitation it.


Sometimes a tool would possibly share Associate in Nursing IRQ with one thing delineated  as 'IRQ holder for PCI steering'. this will be unnoticed. the most effective thanks to fix this drawback is to get rid of the matter device and install it.


Sometimes you'll need to notice more moderen drivers on the net to form the device operate properly. an honest resource is web.driverguide.com. If the device could be a soundcard, or a modem, it will usually be mounted by moving it to a distinct slot on the motherboard (be careful regarding gap your pc, as you'll void the warranty).


When operating within a pc you must switch it off, undo the mains lead Associate in Nursingd bit an unpainted metal surface to discharge any electricity.


To be truthful to Mcft, the matter with IRQ numbers isn't of its creating. it's a gift drawback going back to the primary laptop styles exploitation the IBM 8086 chip. ab initio there have been solely eight IRQs. these days there square measure sixteen IRQs during a laptop. it's simple to run out of them. There square measure plans to extend the amount of IRQs in future styles.
2) Bad Ram

Ram (random-access memory) problems might bring on the blue screen of death with a message saying Fatal Exception Error. A fatal error indicates a serious hardware problem. Sometimes it may mean a part is damaged and will need replacing.


But a fatal error caused by Ram might be caused by a mismatch of chips. For example, mixing 70-nanosecond (70ns) Ram with 60ns Ram will usually force the computer to run all the Ram at the slower speed. This will often crash the machine if the Ram is overworked.

bad-ram-signal

One way around this problem is to enter the BIOS settings and increase the wait state of the Ram. This can make it more stable. Another way to troubleshoot a suspected Ram problem is to rearrange the Ram chips on the motherboard, or take some of them out. Then try to repeat the circumstances that caused the crash. When handling Ram try not to touch the gold connections, as they can be easily damaged.


Parity error messages also refer to Ram. Modern Ram chips are either parity (ECC) or non parity (non-ECC). It is best not to mix the two types, as this can be a cause of trouble.


EMM386 error messages refer to memory problems but may not be connected to bad Ram. This may be due to free memory problems often linked to old Dos-based programmes.


3) BIOS settings


Every motherboard is supplied with a range of chipset settings that are decided in the factory. A common way to access these settings is to press the F2 or delete button during the first few seconds of a boot-up.


Once inside the BIOS, great care should be taken. It is a good idea to write down on a piece of paper all the settings that appear on the screen. That way, if you change something and the computer becomes more unstable, you will know what settings to revert to.


A common BIOS error concerns the CAS latency. This refers to the Ram. Older EDO (extended data out) Ram has a CAS latency of 3. Newer SDRam has a CAS latency of 2. Setting the wrong figure can cause the Ram to lock up and freeze the computer's display.


Mcft Windows is better at allocating IRQ numbers than any BIOS. If possible set the IRQ numbers to Auto in the BIOS. This will allow Windows to allocate the IRQ numbers (make sure the BIOS setting for Plug and Play OS is switched to 'yes' to allow Windows to do this.).


4) Hard disk drives


After a few weeks, the information on a hard disk drive starts to become piecemeal or fragmented. It is a good idea to defragment the hard disk every week or so, to prevent the disk from causing a screen freeze. Go to


* Start-Programs-Accessories-System Tools-Disk Defragmenter


This will start the procedure. You will be unable to write data to the hard drive (to save it) while the disk is defragmenting, so it is a good idea to schedule the procedure for a period of inactivity using the Task Scheduler.


The Task Scheduler should be one of the small icons on the bottom right of the Windows opening page (the desktop).


Some lockups and screen freezes caused by hard disk problems can be solved by reducing the read-ahead optimisation. This can be adjusted by going to


* Start-Settings-Control Panel-System Icon-Performance-File System-Hard Disk.


Hard disks will slow down and crash if they are too full. Do some housekeeping on your hard drive every few months and free some space on it. Open the Windows folder on the C drive and find the Temporary Internet Files folder. Deleting the contents (not the folder) can free a lot of space.


Empty the Recycle Bin every week to free more space. Hard disk drives should be scanned every week for errors or bad sectors. Go to


* Start-Programs-Accessories-System Tools-ScanDisk


Otherwise assign the Task Scheduler to perform this operation at night when the computer is not in use.


5) Fatal OE exceptions and VXD errors


Fatal OE exception errors and VXD errors are often caused by video card problems.


These can often be resolved easily by reducing the resolution of the video display. Go to


* Start-Settings-Control Panel-Display-Settings


Here you should slide the screen area bar to the left. Take a look at the colour settings on the left of that window. For most desktops, high colour 16-bit depth is adequate.


If the screen freezes or you experience system lockups it might be due to the video card. Make sure it does not have a hardware conflict. Go to


* Start-Settings-Control Panel-System-Device Manager


Here, select the + beside Display Adapter. A line of text describing your video card should appear. Select it (make it blue) and press properties. Then select Resources and select each line in the window. Look for a message that says No Conflicts.


If you have video card hardware conflict, you will see it here. Be careful at this point and make a note of everything you do in case you make things worse.


The way to resolve a hardware conflict is to uncheck the Use Automatic Settings box and hit the Change Settings button. You are searching for a setting that will display a No Conflicts message.


Another useful way to resolve video problems is to go to


* Start-Settings-Control Panel-System-Performance-Graphics


Here you should move the Hardware Acceleration slider to the left. As ever, the most common cause of problems relating to graphics cards is old or faulty drivers (a driver is a small piece of software used by a computer to communicate with a device).


Look up your video card's manufacturer on the internet and search for the most recent drivers for it.


6) Viruses


Often the first sign of a virus infection is instability. Some viruses erase the boot sector of a hard drive, making it impossible to start. This is why it is a good idea to create a Windows start-up disk. Go to


* Start-Settings-Control Panel-Add/Remove Programs


Here, look for the Start Up Disk tab. Virus protection requires constant vigilance.


A virus scanner requires a list of virus signatures in order to be able to identify viruses. These signatures are stored in a DAT file. DAT files should be updated weekly from the website of your antivirus software manufacturer.


An excellent antivirus programme is McAfee VirusScan by Network Associates ( www.nai.com). Another is Norton AntiVirus 2000, made by Symantec ( www.symantec.com).


7) Printers


The action of sending a document to print creates a bigger file, often called a postscript file.


Printers have only a small amount of memory, called a buffer. This can be easily overloaded. Printing a document also uses a considerable amount of CPU power. This will also slow down the computer's performance.


If the printer is trying to print unusual characters, these might not be recognised, and can crash the computer. Sometimes printers will not recover from a crash because of confusion in the buffer. A good way to clear the buffer is to unplug the printer for ten seconds. Booting up from a powerless state, also called a cold boot, will restore the printer's default settings and you may be able to carry on.


8) Software


A common cause of computer crash is faulty or badly-installed software. Often the problem can be cured by uninstalling the software and then reinstalling it. Use Norton Uninstall or Uninstall Shield to remove an application from your system properly. This will also remove references to the programme in the System Registry and leaves the way clear for a completely fresh copy.


The System Registry can be corrupted by old references to obsolete software that you thought was uninstalled. Use Reg Cleaner by Jouni Vuorio to clean up the System Registry and remove obsolete entries. It works on Windows 95, Windows 98, Windows 98 SE (Second Edition), Windows Millennium Edition (ME), NT4 and Windows 2000.


Read the instructions and use it carefully so you don't do permanent damage to the Registry. If the Registry is damaged you will have to reinstall your operating system. Reg Cleaner can be obtained from www.jv16.org


Often a Windows problem can be resolved by entering Safe Mode. This can be done during start-up. When you see the message "Starting Windows" press F4. This should take you into Safe Mode.


Safe Mode loads a minimum of drivers. It allows you to find and fix problems that prevent Windows from loading properly.


Sometimes installing Windows is difficult because of unsuitable BIOS settings. If you keep getting SUWIN error messages (Windows setup) during the Windows installation, then try entering the BIOS and disabling the CPU internal cache. Try to disable the Level 2 (L2) cache if that doesn't work.


Remember to restore all the BIOS settings back to their former settings following installation.


9) Overheating


Central process units (CPUs) area unit sometimes equipped with fans to stay them cool. If the fan fails or if the processor gets recent it should begin to overheat and generate a selected reasonably error known as a kernel error. this can be a standard downside in chips that are overclocked to control at higher speeds than they're presupposed to.


One remedy is to get a bigger better fan and install it on top of the CPU. Specialist cooling fans/heatsinks are available from www.computernerd.com or www.coolit.com


CPU problems can often be fixed by disabling the CPU internal cache in the BIOS. This will make the machine run more slowly, but it should also be more stable.


10) Power supply problems


With all the new construction going on around the country the steady supply of electricity has become disrupted. A power surge or spike can crash a computer as easily as a power cut.


If this has become a nuisance for you then consider buying a uninterrupted power supply (UPS). This will give you a clean power supply when there is electricity, and it will give you a few minutes to perform a controlled shutdown in case of a power cut.


It is a good investment if your data are critical, because a power cut will cause any unsaved data to be lost.