Friday, August 20, 2010

Deloitte , How the recruitement happened in CEG campus!!

Written test:
Quants included questions mainly on time and work, numbers, A.P..then there were 2 big descriptive questions, under each of them u hv a lot of questions, similar to data interpretation..then there was data sufficiency questions, logical reasoning... under verbal there was identifying incorrect usage of words, RC..time management was the key..40 questions ,1 hr...leave out the difficult questions and answer the easiest..for those who are taking CAT classes regularly, ppl will expect u to clear it...

No technical....

100 students shortlisted from written test..

After written test case study was there


Case study :
Just like group discussion..Time duration :30 mins
you will be given a topic and the person (hr) will go away he ll not be observing the discussion..
we have to make an concensus (arrive at a conclusion based on the majority thinking)
after the HR arrives we have to present it individually to the HR.

The HR asked not to enter into technical concepts..

Next interview...Then job

All the best guys dono whether i ll attend it or not...

Do well....

Saturday, February 28, 2009

hey guys!
post in ur mini project title n members as comments to this!

Tuesday, February 3, 2009

WELCOME


WELCOME CSE ppl!
this blog has been created as some outsides are found in our common Id!
everyone are provided with a seperate id n pass code! :d
keep rocking!

vp fourth

#include
#include
#include"resource.h"
HMENU hMenuInit;
HMENU hMenuInitWindow,hMenuFirstWindow,hMenuSecondWindow;
HMENU hMenuInitWindow;
HINSTANCE hInst;
LRESULT CALLBACK MainWndProc(HWND hwnd,UINT wMessage,WPARAM wParam,LPARAM lParam);
LRESULT CALLBACK FirstChildProc(HWND hwnd,UINT wMessage,WPARAM wParam,LPARAM lParam);
LRESULT CALLBACK SecondChildProc(HWND hwnd,UINT wMessage,WPARAM wParam,LPARAM lParam);
char mainclass[]="Main Class";
char firstchild[]="First Child";
char secondchild[]="Second Child";
int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,PSTR lpszCmdLine,int iCmdShow)
{
WNDCLASS wc;
MSG msg;
HWND hWndMain,hWndChild;
hInst=hInstance;
if(!hPrevInstance)
{
wc.style=CS_HREDRAW|CS_VREDRAW;
wc.lpfnWndProc=(WNDPROC)MainWndProc;
wc.cbClsExtra=0;
wc.cbWndExtra=0;
wc.hIcon=LoadIcon(hInstance,IDI_APPLICATION);
wc.hCursor=LoadCursor(NULL,IDC_ARROW);
wc.hInstance=hInstance;
wc.hbrBackground=(HBRUSH)GetStockObject(WHITE_BRUSH);
wc.lpszClassName=mainclass;
wc.lpszMenuName=MAKEINTRESOURCE(IDR_MENU1);
RegisterClass(&wc);
wc.style=CS_HREDRAW|CS_VREDRAW;
wc.lpfnWndProc=(WNDPROC)FirstChildProc;
wc.cbClsExtra=0;
wc.cbWndExtra=0;
wc.hIcon=LoadIcon(hInstance,IDI_APPLICATION);
wc.hbrBackground=(HBRUSH)GetStockObject(WHITE_BRUSH);
wc.hCursor=LoadCursor(NULL,IDC_ARROW);
wc.hInstance=hInstance;
wc.lpszClassName=firstchild;
wc.lpszMenuName=MAKEINTRESOURCE(IDR_MENU1);
RegisterClass(&wc);
wc.style=CS_HREDRAW|CS_VREDRAW;
wc.lpfnWndProc=(WNDPROC)SecondChildProc;
wc.cbClsExtra=0;
wc.cbWndExtra=0;
wc.hIcon=LoadIcon(hInstance,IDI_APPLICATION);
wc.hbrBackground=(HBRUSH)GetStockObject(WHITE_BRUSH);
wc.hCursor=LoadCursor(NULL,IDC_ARROW);
wc.hInstance=hInstance;
wc.lpszClassName=secondchild;
wc.lpszMenuName=MAKEINTRESOURCE(IDR_MENU1);
RegisterClass(&wc);
}
hMenuInit=LoadMenu(hInst,MAKEINTRESOURCE(IDR_MENU1));
hMenuInitWindow=GetSubMenu(hMenuInit,0);
hMenuFirstWindow=GetSubMenu(hMenuInit,2);
hMenuSecondWindow=GetSubMenu(hMenuInit,1);
hWndMain=CreateWindow(mainclass,"Welcome",WS_OVERLAPPEDWINDOW|WS_SYSMENU,CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,NULL,NULL,hInstance,NULL);
hWndChild=GetWindow(hWndMain,GW_CHILD);
ShowWindow(hWndMain,iCmdShow);
UpdateWindow(hWndMain);
while(GetMessage(&msg,NULL,0,0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return msg.wParam;
}
LRESULT CALLBACK MainWndProc(HWND hwnd,UINT wMessage,WPARAM wParam,LPARAM lParam)
{
static HWND hwndClient;
CLIENTCREATESTRUCT clientcreate;
static HWND hwndChild1,hwndChild2,hChild;
MDICREATESTRUCT mdicreate;
switch(wMessage)
{
case WM_CREATE:
clientcreate.hWindowMenu=hMenuInitWindow;
hwndClient=CreateWindow("MDICLIENT",NULL,WS_CHILD|WS_CLIPCHILDREN|WS_VISIBLE,0,0,0,0,hwnd,(HMENU)1,hInst,(LPSTR)&clientcreate);
return 0;
case WM_COMMAND:
switch(LOWORD(wParam))
{
case ID_FIRST:
mdicreate.szClass=firstchild;
mdicreate.szTitle="first";
mdicreate.x=CW_USEDEFAULT;
mdicreate.y=CW_USEDEFAULT;
mdicreate.cx=CW_USEDEFAULT;
mdicreate.cy=CW_USEDEFAULT;
mdicreate.style=0;
mdicreate.lParam=0;
hwndChild1=CreateMDIWindow(firstchild,"first",0,CW_USEDEFAULT,0,CW_USEDEFAULT,0,CW_USEDEFAULT,0,hwndClient,hInst,0);
break;
case ID_SECOND:
mdicreate.szClass=secondchild;
mdicreate.szTitle="second";
mdicreate.x=CW_USEDEFAULT;
mdicreate.y=CW_USEDEFAULT;
mdicreate.cx=CW_USEDEFAULT;
mdicreate.cy=CW_USEDEFAULT;
mdicreate.style=0;
mdicreate.lParam=0;
hwndChild2=CreateMDIWindow(secondchild,"second",0,CW_USEDEFAULT,0,CW_USEDEFAULT,0,CW_USEDEFAULT,0,hwndClient,hInst,0);
break;
case IDM_CLOSE:
if(SendMessage(hwndChild1,WM_QUERYENDSESSION,0,0))
SendMessage(hwndClient,WM_MDIDESTROY,(WPARAM)hwndChild1,0);
hChild=GetWindow(hwndClient,GW_CHILD);
DestroyWindow(hChild);
return 0;
break;
case IDM_EXIT:
PostQuitMessage(0);
break;
case IDM_CASCADE:
SendMessage(hwndClient,WM_MDICASCADE,0,0);
break;

case WM_DESTROY:
PostQuitMessage(0);
break;
default:
hwndChild1=(HWND)SendMessage(hwndClient,WM_MDIGETACTIVE,0,0);
if(IsWindow(hwndChild1))
SendMessage(hwndChild1,WM_COMMAND,wParam,lParam);
break;
}
break;
case WM_QUERYENDSESSION:
case WM_MDIDESTROY:
hChild=GetWindow(hwndClient,GW_CHILD);
DestroyWindow(hChild);
return 0;
break;
}
return DefFrameProc(hwnd,hwndClient,wMessage,wParam,lParam);
}
LRESULT CALLBACK FirstChildProc(HWND hWnd,UINT wMessage,WPARAM wParam,LPARAM lParam)
{
switch(wMessage)
{
case WM_CREATE:
MessageBox(hWnd,"First","1st",0);
return DefMDIChildProc(hWnd,wMessage,wParam,lParam);
}
return DefMDIChildProc(hWnd,wMessage,wParam,lParam);
}
LRESULT CALLBACK SecondChildProc(HWND hWnd,UINT wMessage,WPARAM wParam,LPARAM lParam)
{
switch(wMessage)
{
case WM_CREATE:
MessageBox(hWnd,"Second","2nd",0);
return DefMDIChildProc(hWnd,wMessage,wParam,lParam);
}
return DefMDIChildProc(hWnd,wMessage,wParam,lParam);
}

Saturday, January 31, 2009

vp third program

//Login Screen using Dailog Box

#include"windows.h"

#include"resource.h"

int i=0;

char str1[20],str2[20];

HANDLE hInst;

LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);

LRESULT CALLBACK login(HWND,UINT,WPARAM,LPARAM);

int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,PSTR

szCmdLine,int iCmdShow)

{

HWND hwnd;

MSG msg;

WNDCLASS wc;

static char szAppName[]="USERNAME AND PASSWORD";

wc.cbClsExtra =0;

wc.cbWndExtra =0;

wc.hbrBackground =(HBRUSH)GetStockObject(WHITE_BRUSH);

wc.hCursor =LoadCursor(NULL,IDC_ARROW);

wc.hIcon =LoadIcon(NULL,IDI_APPLICATION);

wc.lpfnWndProc=WndProc;

wc.lpszClassName=szAppName;

wc.lpszMenuName=NULL;

wc.hInstance =hInstance;

wc.style =CS_HREDRAW|CS_VREDRAW;

RegisterClass(&wc);

hwnd=CreateWindow(szAppName,szAppName,WS_OVERLAPPEDWINDOW|

      WS_VISIBLE, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL, NULL, hInstance, NULL);

UpdateWindow(hwnd);

while(GetMessage(&msg,NULL,0,0))

{

TranslateMessage(&msg);

DispatchMessage(&msg);

}

return msg.wParam ;

}

LRESULT CALLBACK WndProc(HWND hwnd,UINT message,WPARAM wParam,

LPARAM lParam)

{

static HINSTANCE hInstance;

DLGPROC dlgProc;

switch(message)

{

case WM_SIZE:

dlgProc=(DLGPROC)login;

DialogBox((HINSTANCE)hInst,

MAKEINTRESOURCE(IDD_DIALOG1), hwnd,dlgProc);

return 0;

case WM_DESTROY:

PostQuitMessage(0);

return 0;

}

return DefWindowProc(hwnd,message,wParam,lParam);

}

LRESULT CALLBACK login(HWND hdlg,UINT message,WPARAM wParam,

LPARAM lParam)

{

switch(message)

{

case WM_COMMAND:

switch(LOWORD(wParam))

{

case IDC_EDIT1:

GetDlgItemText(hdlg,IDC_EDIT1,str1,20);

return 0;

case IDC_EDIT2:

GetDlgItemText(hdlg,IDC_EDIT2,str2,20);

return 0;

case IDOK:

if(strlen(str2)<6)

{

MessageBox(hdlg,"Password should have 6

or more characters.","Invalid Password",

MB_OK|MB_ICONINFORMATION);

return 0;

}

if((strcmp(str1,"User1")==0)

&&(strcmp(str2,"abcxyz")==0))

MessageBox(hdlg,"Login Successful","Message",

MB_OK |MB_ICONINFORMATION);

else

{

              MessageBox(hdlg,"Login Failed", “Message",

              MB_OK|MB_ICONINFORMATION);

i++;

if(i==3)

{

MessageBox(hdlg,"Access Denied",

          "Message",MB_OK|MB_ICONINFORMATION);

PostQuitMessage(0);

}

}

return 0;

case WM_DESTROY:

PostQuitMessage(0);

return 0;

}

break;

}

return 0l;

}


VP first two expts

#include

LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);

int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,PSTR lpCmdLine,int nShowCmd)

{

      static char szAppName[]="Mouse";

      WNDCLASS wc;

      HWND hwnd;

      MSG msg;

      wc.style=CS_HREDRAW|CS_VREDRAW;

      wc.lpfnWndProc=(WNDPROC)WndProc;

      wc.cbClsExtra=0;

      wc.cbWndExtra=0;

      wc.hInstance=hInstance;

      wc.hIcon=LoadIcon(NULL,IDI_APPLICATION);

      wc.hCursor=LoadCursor(NULL,IDC_ARROW);

      wc.hbrBackground=(HBRUSH)GetStockObject(WHITE_BRUSH);

      wc.lpszMenuName=NULL;

      wc.lpszClassName=szAppName;

      RegisterClass(&wc);

      hwnd=CreateWindow(szAppName,szAppName,WS_OVERLAPPEDWINDOW|WS_VISIBLE,CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,NULL,NULL,hInstance,NULL);

      UpdateWindow(hwnd);

      while(GetMessage(&msg,NULL,0,0))

      {

            TranslateMessage(&msg);

            DispatchMessage(&msg);

      }

      return msg.wParam;

}

LRESULT CALLBACK WndProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam)

{

      HDC hdc;

      switch(message)

      {

      case WM_LBUTTONDOWN:

            InvalidateRect(hwnd,NULL,TRUE);

            return 0;

      case WM_MOUSEMOVE:

            if(wParam && MK_LBUTTON)

            {

                  hdc=GetDC(hwnd);

                                                    SetPixel(hdc,LOWORD(lParam),HIWORD(lParam),RGB(255,0,0));

                  ReleaseDC(hwnd,hdc);

            }

            return 0;

            case WM_LBUTTONUP:

            InvalidateRect(hwnd,NULL,FALSE);

            return 0;

      case WM_DESTROY:

            PostQuitMessage(0);

            return 0;

      }

      return DefWindowProc(hwnd,message,wParam,lParam);

} 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

OUTPUT:     
 
 

Your browser may not support display of this image. 
 
 
 
 
 
 
 
 
 
 
 
 
 

       
 
 
 
 
 
 
 
 

SOURCE CODE:   

#include

#define MAXPOINTS 100

LRESULT CALLBACK WndProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam)

{

PAINTSTRUCT ps;

static POINT PT[MAXPOINTS];

int icount=0;

HDC hdc;

HPEN hPen,hPen1;

HBRUSH hbr;

RECT rect;

switch (message)

{

case WM_PAINT:

hdc=BeginPaint(hwnd,&ps);

GetClientRect(hwnd,&rect);  

hPen1=CreatePen(PS_SOLID,10,1);

hbr=(HBRUSH)GetStockObject(7);

SelectObject(hdc,hPen1);

Rectangle(hdc,100,120,620,300);

hPen=CreatePen(PS_SOLID,3,1);

SelectObject(hdc,hPen);

hbr=CreateHatchBrush(HS_HORIZONTAL,RGB(55,220,0));

SelectObject(hdc,hbr);

Ellipse(hdc,100,120,620,300);

MoveToEx(hdc,100,120,NULL);

LineTo(hdc,165,150);

MoveToEx(hdc,620,120,NULL);

LineTo(hdc,550,150);

MoveToEx(hdc,100,300,NULL);

LineTo(hdc,165,270);

MoveToEx(hdc,620,300,NULL);

LineTo(hdc,550,270);

hbr=CreateHatchBrush(HS_VERTICAL,RGB(155,120,220));

SelectObject(hdc,hbr);

Rectangle(hdc,165,150,550,270);

DeleteObject(hPen);

DeleteObject(hPen1);

DeleteObject(hbr);

EndPaint(hwnd,&ps);

return 0;

case WM_DESTROY:

PostQuitMessage(0);

                                                               

return 0;

}

                                            

return DefWindowProc(hwnd,message,wParam,lParam);

}

                                    

int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,PSTR lpCmdLine,int nShowCmd)

{

static char szAppName[]="MyApp";

WNDCLASS wc;

HWND hwnd;

MSG msg;

wc.style=CS_HREDRAW|CS_VREDRAW;

wc.lpfnWndProc=(WNDPROC)WndProc;

wc.cbClsExtra=0;

wc.cbWndExtra=0;

wc.hInstance=hInstance;

wc.hIcon=LoadIcon(NULL,IDI_APPLICATION);

wc.hCursor=LoadCursor(NULL,IDC_ARROW)

wc.hbrBackground=(HBRUSH)GetStockObject(WHITE_BRUSH);

wc.lpszMenuName=NULL;

wc.lpszClassName=szAppName;

RegisterClass(&wc);

hwnd=CreateWindow(szAppName,szAppName,WS_OVERLAPPEDWINDOW|WS_VISIBLE,CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,NULL,NULL,hInstance,NULL);

UpdateWindow(hwnd);

while(GetMessage(&msg,NULL,0,0))

{

TranslateMessage(&msg);

DispatchMessage(&msg);

}

return msg.wParam;

} 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


Your browser may not support display of this image. 
 
 
 
 
 

My Blog List

Wanna play chess?