Are you blogging on PH? Get your free blog.

View Vista Library Enteprise Edition\Source code files\INSTALER.CPP

Vista Library Enterprise Edition - Library Management v1.0

Submitted By: Aditya_Neo
Rating: (Not rated) (Rate It)


#include<fstream.h>
#include"xtreme.h"
#include<dos.h>
#include<process.h>
#include<stdlib.h>
#include<conio.h>

#define LOGO_HT 79
#define LOGO_WD 105

void vista_logo(int x,int y)
{
        setcolor(LIGHTGREEN);
        setfillstyle(6,8);
        bar3d(x, y, x+LOGO_WD, y+LOGO_HT, 0, 10);

        settextstyle(7,HORIZ_DIR,3);
        setcolor(LIGHTGREEN);
        outtextxy(x+20,y+25,"VISTA");
}

void show_home_page()
{
        cleardevice();

        for(int i=0;i<6;++i)
        {
                for(int j=0;j<6;++j)
                {
                        vista_logo(LOGO_WD*i,LOGO_HT*j);
                }
        }


}


void starter_load(int line_col, int fill_col, int string_col, char string[] )
{
        setcolor(line_col);

        line(0,midy()-30,xmax(),midy()-30);
        line(0,midy()-31,xmax(),midy()-31);
        line(0,midy()+30,xmax(),midy()+30);
        line(0,midy()+31,xmax(),midy()+31);

        for(int i=0;i<=xmax();i++)
        {

              for(int j=midy()-25;j<=midy()+25;j++)
              {
                      setcolor(fill_col);
                      line(i,j,i,j);
                      delay(1);
              }

              setcolor(string_col);
              settextstyle(3,HORIZ_DIR,4);
              outtextxy(40,midy()-23,string);
        }

        delay(1000);
}

void install()
{
        ofstream fout;
        fout.open("pwd.vis",ios::out);
        fout.close();
        fout.open("bookdat.vis",ios::out);
        fout.close();
        fout.open("movydat.vis",ios::out);
        fout.close();
        fout.open("membdat.vis",ios::out);
        fout.close();
}
void main()
{

        system("ren gui guisetup.exe");
        system("guisetup.exe");
        system("ren guisetup.exe gui");

        khol_de();
        show_home_page();
        starter_load(WHITE,RED,BLUE,"INSTALLING data files ...");
        install();

        cleardevice();

        setcolor(YELLOW);
        settextstyle(3,HORIZ_DIR,2);
        outtextxy(40,midy()-70," Vista Library Enterprise Edition Setup Finished !");
        setcolor(CYAN);
        outtextxy(60,midy()-20,"Press your choice :");
        setcolor(GREEN);
        outtextxy(80,midy()+10," <1.> View Readme");
        outtextxy(80,midy()+40," <2.> Launch Vista Library Enterprise Edition");
        outtextxy(80,midy()+70," <3.> Exit");

        choice:
        char ch=getch();

        if(ch=='1')
        {
                closegraph();
                system("readme.com");
        }
        else if(ch=='2')
        {
                closegraph();
                system("vistal~1.exe");
        }
        else if(ch=='3')
                exit(0);
        else
                goto choice;

}

corner
© 1996-2008. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Publisher: Lars Hagelin.
bootstrapLabs Logo A bootstrapLabs project.