Sunday, February 8, 2009

making an active x control work in vista

1.made a simple active x control with a combo box and a public function. compiled and made the ocx
2. in client machine, unregistered the previous version using regsvr32 /u {file_name} and registered the new control.
3. in client browser, added the intranet site to trusted sites and set the security to low and to allow unsigned active x.
4. This arrangement worked and the active x was able to execute inside the browser.

Monday, February 2, 2009

installing windows xp by shrinking vista

Procedure for Installing XP on the HP compaq 6710b Laptop without uninstalling Vista and retaining your preinstalled applications like Office 2007 & Norton AV
First get a computer or a laptop with a working and fast internet connection before doing anything. Then if you feel convenient working with the system, follow the steps below or get some help of a friend who can do it for you. Do this only if you feel you can do these steps, else, you can mess up things bad and prevent your laptop from booting up. Also, installing XP may void the warranty..im not sure about this. But, if you feel that Xp is absolutely necessary, then go ahead…

First create a partition in Vista for installing XP (make it a convenient size. Anything from 2 GB upwards will do). Follow the instructions here:-
http://www.howtogeek.com/howto/windows-vista/install-windows-xp-on-your-pre-installed-windows-vista-computer/
Name this partition as XP, and assign drive letter as D.(you may have to rename the CD drive to some other alphabet)

Insert XP cd in the drive and reboot the laptop. Installation of Xp would begin, choose it to install it in D:\. If an error like “setup did not find any hard disk drives installed” appears then you can prepare your custom XP setup disk with the SATA support . Two driver files (intel AHCI SATA support)( iaahci.inf, iastor.inf) for SATA support have to be downloaded from the site given in S.No. 3 below. Run this setup file (sp37005.exe) and Save these files in a convenient location and .Click the link below to do this:-
http://www.howtogeek.com/howto/windows/resolving-setup-did-not-find-any-hard-disk-drives-during-windows-xp-installation/

After XP is installed, you have to make sure that all drivers for the laptop are installed. The driver download page for this model is located here:-
http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us&prodNameId=3356622&prodTypeId=321957&prodSeriesId=3356620&swLang=8&taskId=135&swEnvOID=1093

Now, when u restart the laptop, u will get only XP, on completing this step would bring about a boot menu, which would give you the choice of selecting between vista & XP. For the time being boot in XP and download the following tools(u can look up on google):-
(a) Microsoft .Net Framework 2.0 (about 23 MB)
(b) Vista boot pro 3
After installing vista boot pro, follow the instructions given in the link in 1 above. At this stage I had a problem, that vista was booting properly, but Xp wasn’t. I selected ‘Add New OS Entry’ in vista boot pro 3. I chose legacy version of Windows and named it XP. Then I rebooted, and found that XP & vista were working fine.
If you get /ntldr error while booting in Xp, then copy two files namely, ntldr and ntdetect from your windows XP CD (I386 folder) to D:\ drive, and reboot. This time it should boot allright