Archive for ‘Windows Tips & Tricks’

March 8, 2012

How to work with Turbo C++ 3.0 on Windows 7 & implement the built-in functions of graphics.h in your C program?

Many of you might be having trouble working with Turbo C++ 3.0 on Windows 7 & using the functions of graphics.h of C. This article is dedicated to all those who are facing same problem.

1) Download the TURBO C++ 3.0 software from – http://www.top4download.com/turbo-c-/download-aklqwuba.html

2) Unzip it.

3) Browse into the folder & double-click “install”. The software will get installed inside “C:\TC\” directory by default.

4) After successful installation, move inside the directory “C:\TC\BIN\” & launch it by double-clicking on “TC”.

5) From the “Options” menu, select “Linker”. Click on “Libraries”. Click on “Graphics Libraries” if it is unchecked otherwise, leave it.

5) Download DOSBOX from – http://sourceforge.net/projects/dosbox/files/latest/download?source=directory.

6) Move into the DOSBOX installation directory. “C:\Program Files\DOSBox-0.74\” is the path for default installation. Also, you are required to copy the extracted folder “turboc” & paste it inside this directory. Rename this as “TC”.

7) Open & edit the batch file “DOSBox 0.74 Options” using notepad & append the following four lines for auto-mount –

mount d c:\tc\
d:
cd bin
tc

8) Save it. Now, you are almost done. The only thing left is to change the path of the library files.

9) Launch TC again. Click “Options” -> “Directories”. Ensure following changes –

Include Directories – D:\INCLUDE
Library Directories – D:\LIB

10)Save the changes & close the application. From your Desktop, double-click on the DOSBox icon & start coding. Enjoy!!

A sample graphics program in C would now look like :-

#include<conio.h>
#include<stdio.h>
#include<graphics.h>

void main()
{
int gd = DETECT, gm;
initgraph(&gd, &gm, “D:\\BGI\\”);
line(5, 5, 200, 250);
getch();
closegraph();
}

 

If you face any difficulty regarding this, please leave a “message” on any one of the following pages :-

https://www.facebook.com/sarkarsushovan

https://twitter.com/#!/sarkarsushovan

http://www.myspace.com/558701211

I’ll try to reply you at the earliest. Thank you! 🙂

Advertisements
March 6, 2012

How to install Microsoft Loopback Adapter on Windows 7?

The Microsoft Loopback adapter is a testing tool for a virtual network environment where network access is not available. You can bind network clients, protocols, and other network configuration items to the Loopback adapter, and you can install the network adapter driver or network adapter later while retaining the network configuration information. You can also install the Loopback adapter during the unattended installation process.

To install  Microsoft Loopback adapter in Windows 7 –

1. Click Start – Search for cmd, right-click “cmd” and select “Run as Administrator”.

2. From the command prompt, run or type “hdwwiz.exe“ & hit Enter. This should launch the “Add Hardware Wizard“. Click “Next”. Alternatively, you may skip steps 1 & 2 by launching the “Add Hardware Wizard” as –

“Computer” (right click->Properties) -> “Device Manager” -> “Network Adapters”(left click)
From the Menu bar, select “Action” -> “Add legacy hardware”

3. Select “Install the hardware that I manually select from a list (Advanced)” and click Next.

4. Now from the list select “Network Adapters” and click “Next”.

5. Under Manufacturers, select “Microsoft” and select “Microsoft Loopback Adapter” under “Network Adapter” and click “Next”. This should start the installation. Click “Finish” when the installation completes.

To confirm the loopback adapter installed, right-click “Computer”, select “properties”. Click “Device Manager” and expand “Network Adapters” and you can see the Loopback adapter installed there.

August 12, 2011

Windows 7 Logon UI Changer

This tool will allow you to customize the logon screen for Windows 7 without touching the registry at all. Simply download the piece of software, and make sure to Run as Administrator.
This tool has many features that make it easy to use:

  • The enable option allows you to change the logon background. The disable option restores the logon background back to default with just one click.
  • Resize the selected image to your current resolution
  • Finds the highest JPG compression that would still keep it under 256kb. (Logon backgrounds cannot exceed this size)
  • Saves the selected image as backgroundDefault.jpg and creates a backup of the original

Download –   Click here

            Please, add your comments if you liked it.
August 12, 2011

How to Change your Folder Background?

Do you remember the good old Windows 98? In Windows 98, we could change the background color, image, fonts, etc in any folder but this facility was removed from Windows XP. It was a good feature and many people still miss that feature in Windows XP.
So here I am posting 3 methods to have any desired wallpaper as background image in any folder in Windows XP:

A. Using Desktop.ini Hack to Set a Wallpaper as Folder Background Image:

1. Open Command Prompt and set folder attribute to “system”. Suppose there is a folder “Setup” in “D:\” drive, in which you want to set a wallpaper as background image. So give following command in Command Prompt:
attrib +s D:\Setup
It’ll change the attribute to “system”.

2. Now open Notepad and paste following code :-
[ExtShellFolderViews]
{BE098140-A513-11D0-A3A4-00C04FD706EC} = {BE098140-A513-11D0-A3A4-00C04FD706EC}
[{BE098140-A513-11D0-A3A4-00C04FD706EC}]
Attributes=1
IconArea_Image=path_of_the_wallpaper
IconArea_Text=0x00000000

Now, change “path_of_the_wallpaper” to the exact path of the wallpaper which you want to set as background. Suppose the wallpaper is stored in “D:\Wallpaper\Image1.jpg”, then the code will be as following :-
[ExtShellFolderViews]
{BE098140-A513-11D0-A3A4-00C04FD706EC} = {BE098140-A513-11D0-A3A4-00C04FD706EC}
[{BE098140-A513-11D0-A3A4-00C04FD706EC}]
Attributes=1
IconArea_Image=D:\Wallpaper\Image1.jpg
IconArea_Text=0x00000000

NOTE : If you copy the wallpaper in the same folder which you are editing, then you can simply put the wallpaper name in the file. e.g. if you copy the “Image1.jpg” file in “Setup” folder, then the code will be as following :-
[ExtShellFolderViews]
{BE098140-A513-11D0-A3A4-00C04FD706EC} = {BE098140-A513-11D0-A3A4-00C04FD706EC}
[{BE098140-A513-11D0-A3A4-00C04FD706EC}]
Attributes=1
IconArea_Image=Image1.jpg
IconArea_Text=0x00000000

“IconArea_Text” stands for the text color, you can change it to white, yellow, blue, black or any other color. You just need to know the hexa-decimal number of the color and then replace the code in “IconArea_Text” section. A few most used color codes are as follows :-
Black – 0x00000000
White – 0x00FFFFFF
Green – 0x0000FF00
Blue – 0x00FF0000
Purple – 0x00C000C0
Red – 0x000000FF
Yellow – 0x0000FFFF
Indigo – 0x00FFFF00

3. Now save the file with name “Desktop.ini” (including quotes) and copy the file in the desired folder which is “Setup” in our example.
4. Thats it. Close the folder and re-open it. Now it should show the wallpaper as background.

B. Using the Same Method of “IEShwiz.exe” file used in Windows 9x/NT/2000:

1. Copy “IEShwiz.exe” file from Windows 98/Me/NT/2000 and paste in “%windir%” directory (C:\Windows, if your Windows is installed in C:\ drive).
2. Now open regedit and goto:
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\
Now under this key, create a new key “Customize This Folder”. Now select this newly created key and create another key under it with the name “Command”. Select this new key “Command” and change the value of “Default” in right side pane to IESHWIZ.EXE %1

3. That’s it. Now open any folder and right-click, you’ll get an option “Customize This Folder”. Click on it and follow the wizard and you’ll be able to set a wallpaper as the background and to change font color.

C. Using 3rd party software “Windowpaper XP” to do the task easily:

1. Download “Windowpaper XP” from following link:

1. Download “Windowpaper XP” from following link:
2. Install the software and you can easily change the folder background and font colors.