19 Haziran 2007 Salı

google arama motoru...

<!-- Search Google -->
<center>
<FORM method=GET action="http://www.google.com/search">
<TABLE bgcolor="#FFFFFF"><tr><td>
<A HREF="http://www.google.com/">
<IMG SRC="http://www.google.com/logos/Logo_40wht.gif" border="0"
ALT="Google" align="absmiddle"></A>
<INPUT TYPE=text name=q size=31 maxlength=255 value="">
<INPUT TYPE=hidden name=hl value="en">
<INPUT type=submit name=btnG VALUE="Google Search">
</td></tr></TABLE>
</FORM>
</center>
<!-- Search Google -->

18 Haziran 2007 Pazartesi

GetSystemVersion();

apiGetInfoFromVersion = Win32API.new("version", "VerQueryValue",
['p','p','p','p'], 'v')
msgp = DL.malloc(DL.sizeof('P'))
infoBufferLength = DL.malloc(DL.sizeof('P'))
apiGetInfoFromVersion.call(infoVersion, "\\", msgp, infoBufferLength)

win32 api programming...

IDM_ABOUT should be in your resource.h file as well, WM_COMMAND and WM_CREATE are windows messages, and are defined in winuser.h which you include automatically by including windows.h. You shouldn't change these, because the values they represent are used internally in Windows for message handling. If you change these your Window won't do much.

With Windows programming, there has to be a way for the coder to determine what should happen when a user clicks a button, types text in a text box, moves a window, minimizes the window, slides a scroll bar, closes the window, etc. While you might not use all of these at the same time (or any of them if you want), you will probably use them at least once in the course of Windows programming in general. To cope with this, Windows uses a message loop. This is typically in your WinMain function and consists of something like

MSG msg;

bool bFinish = false;

while(!bFinish)

{

if(PeekMessage(&msg, hWnd, 0, 0, PM_NOREMOVE) )

{

GetMessage(&msg, hWnd, 0, 0);

TranslateMessage(&msg);

DispatchMessage(&msg);

}

DoOtherStuff();

DoMoreOtherStuff();

}

When the program hits PeekMessage it checks the message queue (each button press and radio button change, or window movement, or window minimize adds a message to the message queue) to see if there's any messages there (PM_NOREMOVE means it just checks and returns true if there is a message waiting, but does not remove the message). We then hit GetMessage which retrieves the message and removes it from the queue (the difference between GetMessage and PeekMessage is basically that Peek gives you the option of not removing messages, and if there are no messages in the queue it will just return false, with GetMessage if there's no messages in the queue it will wait until there is a message. For a simple Windows program that doesn't matter and you can just use something like while(GetMessage(&msg, hWnd, 0, 0)) but if you want to do extra processing in between, eg in a game where something is constantly updating, you need to be able to access the main loop every time it runs, and dont' want to be sitting around waiting for Windows messages). Once it has retrieved a message, it puts it in TranslateMessage which changes certain aspects of it, basically making it more user friendly. Although not essential, I use it every time. DispatchMessage then does the next important thing, sends the translated message to your WndProc function.

This is the function that was named in the WNDCLASS or WNDCLASSEX structure when the window was first created. It passes in a handle to the window that called it (more than one window can share the same wndproc if they name it when they register the class), a UINT which is the Windows message that has been sent (more on that in a sec), a WPARAM which is mostly used for passing in extra data as values, and an LPARAM which tends to be used as a pointer to various structs that are used.

Inside your WndProc you will have something like switch(msg) and then lots of cases. This is where WM_COMMAND comes in. When you press a button or a radio control or in fact use any control on a dialogue, if it sends a message it will send it via the WM_COMMAND message. In the WPARAM it stores the value of the control (the unique identifier such as IDC_TEXT) but it stores it in the loword. Don't worry about this too much, all you need to know is that once you have a case WM_COMMAND: you have to have below it a switch(LOWORD(wParam)) or whatever your WPARAM is called, then you can use the switch statement to switch between cases and find the right control. Eg. You have a button called IDC_PRESSME and you want to check when it's pressed. That's easy, first you need a switch to find if a WM_COMMAND message has been sent, then you check which specific control it is, like so..

LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{

switch(msg)
{

case WM_COMMAND:

switch(LOWORD(wParam))
{

case IDC_PRESSME:

DoSomething();

break;
}

break;

default:

return DefWindowProc(hWnd, msg, wParam, lParam);

break;
}

return 0;
}

I hope that helps to give you an idea how it works, basically everything in windows has a UID, and you use that in message loops and in creating windows and controls from resources.

If I've done anything stupid don't laugh at me, it's early.

chakra renk terapisi...

Kaynağını güneşten alan ışık, elektromanyetik enerjilerle doludur. Bu enerjiler dünyadaki doğal hayatı ettirirler. Bitkilerdeki fotosentez olayı bunun en somut kanıtıdır. Ayrıca canlıların temel yapı taşı olan hücreler, aralarında haberleşmek için “biofoton” adı verilen ışığı kullanırlar. Işık eksik ve yetersiz olduğunda, canlılar yeterli hayat enerjisini alamayacaklarından kendilerini sağlıksız ve mutsuz hissederler. Renk terapisi, metabolizmada sağlıklı bir denge sağlamak için renk enerjilerinden faydalanma işlemidir. Renk terapisinin, fiziksel ve ruhsal olmak üzere iki türlü faydası vardır.

Araştırmalar göstermiştir ki, insanda bedenini kuşatan elektromanyetik bir alan vardır. Kirlian fotoğrafı ile bu alan rahatlıkla görülebilmekte ve hastalık teşhisi yapılabilmektedir. İnsan bedenini kuşatan elektromanyetik alana Aura veya enerji beden adı verilmektedir. Bedenimizi bulut gibi saran bu enerji alan; ışık, elektrik, ısı, ses, manyetik ve elektromanyetik etkiler ile sürekli olarak etkileşim halindedir. Ayrıca bu enerji alanı içinde yedi adet de, chakra adını verdiğimiz enerji dağıtım merkezleri vardır. Chakra eski Hint dilinde tekerlek anlamına gelir. Chakralar enerji bedende omurga üzerine sıralanmış ve her biri bir hormon bezine tekabül eden yedi adet güç merkezidir. Chakralar daha yüksek enerjileri emen ve onları beden tarafından kullanılır hale getiren döner enerji merkezleridir. Bedene giren ve beden tarafından yayılan enerjilerin oranlarını düzenlerler. Ayrıca bedendeki fiziksel, duygusal, zihinsel ve ruhsal fonksiyonların yerine getirilmesi için gerekli olan enerjiyi emerek, bunları ihtiyaç duyulan bölgelere dağıtırlar. Her bir chakra ayrı bir renge sahiptir. Enerji merkezleri kanalıyla emilen enerjilerin vücuda yayılması, dolaşım ve sinir sistemlerinin yardımıyla gerçekleşir. Bu yolla tüm organlar, dokular ve hücreler bu enerjilerden eşit olarak faydalanmış olurlar. İnsanı ayakta tutan bütün bu sistemler chakralara karşılık gelen renklere karşı duyarlıdırlar.

Her chakra vücudun değişik bölgesine enerji taşır. Ancak vücut bir bütün olduğundan, tüm vücut birbirine bağlı olarak çalışır. Bu enerji kapılarından birinde sorun olduğunda (kapanma, yetersiz çalışma ya da aşırı çalışma), bedene enerji akışı tam olamaz ve hastalıklar baş gösterir.

17 Haziran 2007 Pazar

öss soru ve yanıtları...

ÖSS sorularının yanıtları

17.06.2007 - 15:13:42


ÖSS sorularının yanıtlarını veriyoruz Basına dağıtılan kitapçıktan yanıtlar

ÖSS sorularının yanıtları

1. soru : D , 2. soru: E, 3. soru: A, 4- D, 5- A, 6- C, 7- C , 8- A, 9- E, 10- A, 11- B, 12- C, 13- D, 14- B, 15- C, 16- E, 17- B, 18- D, 19- B, 20- C, 21-D, 22- A, 23-A, 24- B, 25- C, 26- E, 27- B, 28- A, 29-D

SOSYAL -1

1- 1- E , 2- E, 3-A, 4-A, 5-D, , 6-B, 7-B, 8-C , 9-D, 10-A, 11-D,

12- C, 13-E, 14, C, 15-D, 16-A, 17-B, 18-C, 19-E, 20-D, 21- E

22- A, 23-B, 24-C, 25- A, 26-B, 27- C, 28- E, 29- D, 30- B

MATEMATİK- 1

1-

2-A

3-

4-c

5-D

6-E

7-D

8- D,

9-B, 10- E, 11- A, 12-D, 13-B, 14-D, 15-E, 16-B, 17-D, 18-B

19-E, 20-C, 21-C, 22-B, 23-C, 24-A, 25-C, 26-A, 27-E, 28-C, 29-A, 30-D

FEN BİLİMLERİ -1

1- B, 2-A, 3-E, 4-D, 5-A, 6-C, 7-D, 8-A, 9-B, 10-C, 11-E,

12-B, 13-C, 14-D, 15-B, 16-E, 17-A, 18-C, 19-C, 20-B,

21-E, 22-E, 23-D, 24-A, 25-E, 26-B, 27-C, 28-A, 29-A, 30-C

TÜM SORU VE CEVAPLARI AYNI ANDA İNDİRMEK İÇİN BU LİNKLERİ KULLANABİLİRSİNİZ

ÖSS 2007 TÜRKÇE SORULARI

ÖSS MATEMATİK 1 SORULARI

ÖSS FEN BİLİMLERİ 1 SORULARI

ÖSS SOSYAL BİLGİLER 1 SINAVI İÇİN TIKLAYIN

ÖSS EDEBİYAT SINAVI İÇİN TIKLAYIN

ÖSS MATEMATİK 2 DENEME SINAVI İÇİN TIKLAYIN

ÖSS SOSYAL BİLGİLER 2 SINAVI İÇİN TIKLAYIN

ÖSS FEN BİLİMLERİ 2 SINAVI İÇİN TIKLAYIN

ÖSS CEVAP ANAHTARI İÇİN TIKLAYIN

Bu haber 5 defa okundu.

Kaynak :
Tarih : 17.06.2007 - 15:13:42