If you're trying to transplant a processor being used in a computer made for XP into a computer made for 98, it's just not going to happen.
Socket 478 was the Intel standard for a long time. Both Win98 and WinXP applications utilized it.
Now what i want to put is the processor from the emachine computer to the compaq but when i tried this the computer didnt run so is their any programming i need to do before i can just install it.
Welcome to CF Super

One thing to realize about CPU's (Mobo's actually, but in this case, either-or) is that even though you may have two that look identical on the outside, it's what they do on the inside that really counts.
For example, you have two Socket 478 CPU's - one running at 1.4Ghz and one running at 3.2Ghz. Regardless of speed, they're both Socket 478, so they'll fit (physically) in any Socket 478 Mobo. However, if that Mobo is an older Socket 478, it's BIOS might only be able to recognize CPU's up to 2.0Ghz (for example's sake only - you'd have to check your Board's spec website). That being the case, it will recognize the 1.4Ghz CPU, POST and ultimately boot fine, but if the 3.2Ghz CPU is there, the Board will basically say 'Wait a second, I <don't see a CPU> or <am getting a crazy speed rating off the CPU, this can't be right - something's wrong>' and stop the POST process, thus effectively cancelling the loading process.
Best bet is to visit your Mobo's website and find the specs on it (ie - highest rated CPU speed it can utilize). If there is a BIOS update available, it may have coding to recognize higher-speed CPU's too! Hope that helps a bit!