diff --git a/windows/Makefile.am b/windows/Makefile.am
index 5242fc5f..58d22f93 100644
--- a/windows/Makefile.am
+++ b/windows/Makefile.am
@@ -1,3 +1,3 @@
-dist_noinst_DATA = netgen.sln netgen.vcproj netgen_MSVC2005.sln netgen_MSVC2005.vcproj postBuild_Install.bat
+dist_noinst_DATA = netgen.sln netgen.vcproj netgen_MSVC2005.sln netgen_MSVC2005.vcproj postBuild_netgen.bat nglib.sln nglib.vcproj nglib_MSVC2005.sln nglib_MSVC2005.vcproj postBuild_nglib.bat
diff --git a/windows/nglib.sln b/windows/nglib.sln
new file mode 100644
index 00000000..b77c4cc9
--- /dev/null
+++ b/windows/nglib.sln
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual C++ Express 2008
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "nglib", "nglib.vcproj", "{2E260C8C-595C-442A-A962-51AC06EF8143}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Win32 = Debug|Win32
+ Release|Win32 = Release|Win32
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {2E260C8C-595C-442A-A962-51AC06EF8143}.Debug|Win32.ActiveCfg = Debug|Win32
+ {2E260C8C-595C-442A-A962-51AC06EF8143}.Debug|Win32.Build.0 = Debug|Win32
+ {2E260C8C-595C-442A-A962-51AC06EF8143}.Release|Win32.ActiveCfg = Release|Win32
+ {2E260C8C-595C-442A-A962-51AC06EF8143}.Release|Win32.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/windows/nglib.vcproj b/windows/nglib.vcproj
new file mode 100644
index 00000000..3c54ff4c
--- /dev/null
+++ b/windows/nglib.vcproj
@@ -0,0 +1,1196 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/windows/nglib_MSVC2005.sln b/windows/nglib_MSVC2005.sln
new file mode 100644
index 00000000..31991092
--- /dev/null
+++ b/windows/nglib_MSVC2005.sln
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 9.00
+# Visual C++ Express 2005
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "nglib", "nglib_MSVC2005.vcproj", "{2E260C8C-595C-442A-A962-51AC06EF8143}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Win32 = Debug|Win32
+ Release|Win32 = Release|Win32
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {2E260C8C-595C-442A-A962-51AC06EF8143}.Debug|Win32.ActiveCfg = Debug|Win32
+ {2E260C8C-595C-442A-A962-51AC06EF8143}.Debug|Win32.Build.0 = Debug|Win32
+ {2E260C8C-595C-442A-A962-51AC06EF8143}.Release|Win32.ActiveCfg = Release|Win32
+ {2E260C8C-595C-442A-A962-51AC06EF8143}.Release|Win32.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/windows/nglib_MSVC2005.vcproj b/windows/nglib_MSVC2005.vcproj
new file mode 100644
index 00000000..ced6bc45
--- /dev/null
+++ b/windows/nglib_MSVC2005.vcproj
@@ -0,0 +1,1196 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/windows/postBuild_nglib.bat b/windows/postBuild_nglib.bat
new file mode 100644
index 00000000..093da773
--- /dev/null
+++ b/windows/postBuild_nglib.bat
@@ -0,0 +1,46 @@
+REM *********************************************************************************
+REM *** Netgen Library (nglib) Windows Post-Build Script
+REM *** Author: Philippose Rajan
+REM *** Date: 15/02/2009
+REM ***
+REM *** Used to perform an "Install" of the generated Dynamic Link Library (DLL)
+REM *** and the corresponding LIB file.
+REM ***
+REM *** Call from Visual C++ using:
+REM *** postBuild_nglib.bat $(ProjectName) $(TargetFileName) $(ConfigurationName) $(ProjectDir)
+REM *********************************************************************************
+if [%1]==[] goto BuildEventFailed
+set PROJ_NAME=%1
+set PROJ_EXEC=%2
+set BUILD_TYPE=%3
+set PROJ_DIR=%4
+
+REM *** Change these Folders if required ***
+set NETGEN_TCLSRC=%PROJ_DIR%..\ng
+set INSTALL_FOLDER=%PROJ_DIR%%BUILD_TYPE%-lib\
+
+echo POSTBUILD Script for %PROJ_NAME% ........
+
+REM *** Embed the Windows Manifest into the Executable File ***
+echo Embedding Manifest into the executable: %PROJ_EXEC% ....
+mt.exe -manifest "%PROJ_DIR%%PROJ_NAME%\%BUILD_TYPE%\%PROJ_EXEC%.intermediate.manifest" "-outputresource:%PROJ_DIR%%PROJ_NAME%\%BUILD_TYPE%\%PROJ_EXEC%;2"
+if errorlevel 1 goto BuildEventFailed
+
+REM *** Copy the DLL and LIB Files into the install folder ***
+echo Installing required files into %INSTALL_FOLDER% ....
+xcopy "%PROJ_DIR%%PROJ_NAME%\%BUILD_TYPE%\%PROJ_EXEC%" "%INSTALL_FOLDER%" /i /d /y
+if errorlevel 1 goto BuildEventFailed
+xcopy "%PROJ_DIR%%PROJ_NAME%\%BUILD_TYPE%\%PROJ_NAME%.lib" "%INSTALL_FOLDER%" /i /d /y
+if errorlevel 1 goto BuildEventFailed
+
+REM *** Clean up the build directory by deleting the OBJ files ***
+REM echo Deleting the %PROJ_NAME% build folder %PROJ_DIR%%PROJ_NAME% ....
+REM rmdir %PROJ_DIR%%PROJ_NAME% /s /q
+
+REM *** If there have been no errors so far, we are done ***
+goto BuildEventOK
+:BuildEventFailed
+echo POSTBUILD Script for %PROJ_NAME% FAILED..... Install Manually !!!
+exit 1
+:BuildEventOK
+echo POSTBUILD Script for %PROJ_NAME% completed OK.....!!