Welcome





Monday, July 25, 2011

List of DBMS Assignments

 1.  Demonstration of data independence with ADT
 2.  Simple Application using conventional files
 3.  Demonstration of Hierarchical model
 4.  Demonstration of Network model
 5.  Simple tool to convert E-R diagram to tables
 6. Persistent Java API
 7. Pro C
 8. SQL J
 9. Implementation of editor with shadow copying
10. Demonstration of race programs in concurrent programs

Database Management Systems

This blog will now serve as the official blog for DBMS 3-1 2011-2012.

Tuesday, July 19, 2011

static library

CREATION OF STATIC LIBRARY
--------------------------------------------

The creation of static library is illustrated below with the help of different stages.

step1:
--------

vi file1.c /* The file to be called */

#include

void call()
{

printf("hai");
}

--> gcc -c file1.c

In this step,the object file of the code is obtained.



step 2:
--------

/*Header file which has prototype of file1.c*/

vi h1.h

void call();

--> ar rs libstat.a file1.o

The above command enables the object file generated in the previous stage
to be placed in the archiver.




step3:
-------
/*create "include" and "lib" folder(\home\student) */

note: create these folders in \home\student folder.

(a):copy h1.h file to include folder

(b):copy libstat.a to lib folder


step 4:
--------

vi program.c

#include
void main()
{

call();
return 0;

}

This is the application program making use of the static library.


step 5:
--------

gcc --static -I /home/student/include -L /home/student/lib -o program program.c -lstat



note -I stands for include and -L for lib and l for linking

Compiling the application code must be done using the above command


step 6:
-------

./program

Executing the application code





Saturday, July 16, 2011


Screen shots of  Personal Calendar
                                                  -> It looks like this when its opened                      
                                            -> It looks like this when "save" button is clicked
     
                                           -> It looks like this when "view" button is clicked    

           It is done using AWT,Collections,Files,IOstreams and different LayoutManagers. It can store a maximum of three events for a particular date and month. It works only for this year.You can download the .class file here, run it in your own system and test it. Any queries are accepted and answered.