void wickedSunny(char* szBlog);

Thursday, July 01, 2004

studied a bit

finally studied a bit of C after wasting nearly all the day. morning was
gone in playing cricket, then afternoon went off to tidy up my blog,
evening doent suits me to study .. then pizza's and then movie ( cruel
intentions 3) ..

but finally out of this hectic schedule i found some time to study C
concepts .. did 30 ques .. Huh !
Feeling happy !!! nah not for studying..wtfc .. but for the template i
made for my blog. even had a hack to hide the ad at the top.

if u r also fed up of the sucking ad in ur blog page then add this line at
the top of ur template.



gfx.sikander

Wednesday, June 30, 2004

photogallery Updated

just updated my photgallery !!

found a little time to find a good photo host (obviously free) as
placements got a little postponed,thx to jayaram. doing a good job as
placement sec.

played cricket after a long time .. bln came suddenly ..evebdy ran away ..
but Ramneek got caught :) Hee Hee.
i guess enuf masti now ..and its time to study ..

bye byee..

gfx.sikander
--
:: sanyam ::
" the future is in the air, can feel it everywhere "

Monday, June 28, 2004

Windows Messaging

Windows Messaging

Understanding how Windows works at a low level can make the high-level programming process a lot easier. Just as
important, it can help developers to get the results they expect from their programs and to avoid many of those
unpleasant surprises.

Windows is a message passing system. Every event, from clock ticks to mouse moves and from key presses to mouse clicks,
generates a message. Each of these messages has a specific window as its destination address; each message communicates
data such as the mouse location, which mouse button a user clicked, what key was typed, whether the key was released, and
so forth.

Messages include unique identifiers, and there are hundreds of important system messages, most of which start with a "WM_"
prefix. Clicking the left mouse button, for example, generates a WM_LBUTTON message, while the right mouse button
generates a WM_RBUTTON message. In addition, separate messages would be generated when a button is pressed (DOWN),
released (UP) or double-clicked (DBLCLK).

Using Visual Basic terminology, each message passes parameters "by reference" and not "by value". In other words, a
message passes a pointer to the parameter's memory address, rather than passing specific parameter values. The
coordinates of the mouse cursor might be set into a data structure, for example, and then the address of that data
structure is passed as a Windows message parameter. Developers often use the stack, which is itself a last-on/next-off
structure, as the mechanism for passing these parameters.

In addition, the data to which a message points can be changed by other programs before a message reaches its final
destination. That final destination window will never know the message had been intercepted and its parameters modified.
This process is known as "sub-classing," and many useful Windows utilities perform these kinds of tasks.

Finally, the destination window operates upon the message and its contents in an endless succession until the system is
turned off. Resizing a window, data entry, drag-and-drop and all the other aspects of a windowing system are served
through this process, all of which is overseen by the executive -- Windows itself. By default, the operating system
typically directs all non-system messages to the highlighted window of the current application.

Spying on Messages With WndProc

When a message reaches its destination, it is usually directed to a routine known as "WndProc." If a message is targeted
at a particular WndProc routine, the associated application then operates upon the message (remember, this is the only
real means by which communications takes place on a Windows system). Each WndProc on a system is called one at a time;
the message is operated upon and then passed on to the next WndProc routine. This continues until the WndProc list is
exhausted, and then the process continues with the next message.

As a result of this process, slow or poorly written applications can adversely affect the entire system. An application
can, by "swallowing" or modifying messages in the Wndproc chain, do odd things--some humorous, others intrusive or buggy.
Although there exist an enormous number of pre-defined message types (these message types can be found in the "winuser.h"
file), nothing prevents a new one from being defined and operated upon in some new and exciting way by an application,
either.

Controls As Windows

As you drag Visual Studio controls from the various toolboxes onto a form, you're actually seeing only a visual
representation of the control; the actual programming and functionality of the control are behind the scenes, safely
ensconced behind the Visual Studio GUI. Each VS control is actually a fully functional window, responding as required to
messages, such as WM_PAINT (to redraw itself) or positioning messages when dragged across the active form. Each control's
window includes a set of intrinsic properties, including its relative position, foreground and background coloration,
size and so forth.

Windows itself is just responding to the messages you (and your programs) generate.

gfx.sikander
--
www.sanyam.tk
"the future's in the air, Can feel it everywhere !!"

Sunday, June 27, 2004

I love U, more than my CPU

I LOVE YOU MORE THAN MY COMPUTER !!


Believe me it is true...........

* You installed the best in me.
* Your picture is always in my background.
* You clicked my heart gently.
* Your love reset my life and deleted all the sadness in me.
* You restored my kindness after I thought it was corrupted.
* I'm always connected to you with more than 56 heart beat
persecond.
* You hacked my brain and registered your name in it.
* You are the only one that could navigate my feelings
and explore my emotions at the same time.
* You are the only one that can log into my heart and never logout.
* You don't have to search for me, cause we are
always linked to each others.
* I see your name everywhere, my FrontPage, my homepage
and all my software.
* I scanned my life and found that I'm only infected by you.
* You are the virus I'd never remove, and why should I do?.
* You formatted my life and added happiness to view.
* Believe me it is true..........
I love you more than my CPU .

gfx.sikander