How to install Code::Blocks with a Fortran compiler

How to install Code::Blocks with a Fortran compiler

To install a Fortran compiler (gFortran) to be used within the Code::Blocks IDE editor:

  1. Go to http://www.codeblocks.org/downloads
  2. Click on “Download the binary release”
  3. Click on “Windows 2000/XP/Vista/7//8”
  4. Click on “codeblocks-13.12mingw-setup.exe” to download from SourceForge.net
  5. Once downloaded (~100MB), install Code::Blocks IDE
    • Full installation
    • Destination “Program Files\CodeBlocks”
    • “Do you want to run CodeBlocks now?” NO
  6. Start Code::Blocks from the shortcut on Desktop (or find in programs)
  7. When the IDE opens, go to “Settings” > “Compiler…”
  8. From the “Selected Compiler” option, select the “GNU Fortran Compiler” from the list
  9. From below, select “Toolchain executables” TAB
  10. Now check that the “Compilers installation directory” is set to the MinGW folder within Codeblocks
    [bash]c:\Program Files\CodeBlocks\MinGW[/bash]
  11. Click Ok to close the options dialog, close Code::Blocks and re-open
  12. You should now be able to create and compile Fortran sources

Create a simple program (try .f90 or .f95 or .f) and compile:

[cpp]program test
do i=1,5
print*, ‘Hello Fortran’
end do
end program[/cpp]

How to manually restore Sage Line 50 v9.x data files

This is what you need to do if your Sage Accounts application has been corrupt and you can’t open it:

[text]Save your data files directory (Sage\Accounts)
Uninstall/completely remove the Sage installation
Re-install Sage Line 50 v9.x
Start Sage and complete the Company wizard with typical information
Close it
Copy the ACCDATA folder with contents to your new installed Sage
Start Sage and type your username (if one did exist when you created this data)
[/text]

In some cases deleting the QUERY.DTA file from your data dir could help resolve the problems of login errors.

How to install VB 6.0 with SP6 on Windows 7

1. Install Visual Basic 6.0 (as Administrator)

Select custom install as follows:

Microsoft VB 6.0
Active X
Data Access
Graphics

2. Skip MSDN and all other install options (Source Safe, VC++, etc).

3. Uncheck registration and complete the setup.

4. Run VB (should run fine).

Note: VB should run fine, but in some cases may need the vb6.exe set with compatibility settings on:

path: c:\Program Files\Microsoft Visual Studio\VB98\vb6.exe

R-click > Properties > Compatibility and check the following:

Run in Windows XP mode
Disable Visual Thems
Disable Desktop Composition
Disable display scalling on high DPI settings

5. Install VB 6.0 SP6 if needed (there should be no issues and previous SPs are not needed).

Note: MDAC 2.5 are NOT needed for Windows Vista and later.

credits: Ask the FortyPoundHead

How to create a System Repair Disc for Windows 7

Creating a System Repair Disc can solve you a few boot problems encountered with Windows 7.

  1. Note the OS type (x32 or x64 bit)
  2. Insert an empty DVD into your drive
  3. Start > Programs > Maintenance > Create a System Repair Disc
  4. Select the drive and click on Create disc

Your repair disc is now ready to take over the world of corrupt booting Windows.

Note: The repair disc will support only the relative OS type i.e. 32 or 64 bit.

Credits: SevenForums

How to install Windows 7 on HP-3400 Pro PC with FreeDOS

Note: Some business-line PCs may come with pre-installed non Windows OS like FreeDOS. These systems most probably use Linux as there main boot system and this is why a typical Windows installation may not boot properly in some cases.

Case: Install Windows 7 (64bit)

  1. Boot with a Windows 7 (64bit) setup DVD and install windows
  2. If your system loops on restart then you may need to do as follows:

[bash]#Type the following to take you to MS DiskPart prompt
diskpart
#The next command will select a disk to proceed
select disk 0
#Type the next command to see a list with system volumes.
#Note down the CD/DVD drive letter i.e. “E”
list volume
#The next command will take you back to command prompt
exit
#Type the following to take you to drive E
e:
#cd into the boot dir
cd /boot
#Type next command to reset the MBR
bootsect /nt60 SYS /mbr[/bash]

Credits: SevenForums