Archive for March, 2012

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! 🙂

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.