Sdk programming, Visual Basic Programming

SDK PROGRAMMING

The SDK programming is a developing Win 32 based programs using the Win 32 API that directly interact with the hardware. Therefore the execution of the SDK programs is fast. A sample SDK program for presenting a window is shown below. The MSG is a structure. UpdateWindow, CreateWindow, ShowWindow, are some examples of SDK functions.

The HWND is a handle to the window. The formed window's address is stored in hWnd. The initial parameter "button" is the class name. The succeeding parameter "hello" is the window name. The BS_PUSHBUTTON is the style. BS stands for the button style. And the next 4 parameters specify the size of the window. The 8th parameter specifies that the created window has no parent. The next parameter specifies that there is no menu. The ShowWindow displays the window.

#include

int WINAPI Winmain(HANDLE hInstance, HANDLE hprevInstance, LPSTR

lpszCmdLine, int nCmdshow)

{

HWND hWnd;

MSG msg;

hWnd=CreateWindow("button","hello",BS_PUSHBUTTON,10,110,100,100,

NULL,NULL,hInstance,NULL);

ShowWindow(hWnd, nCmdshow);

UpdateWindow(hWnd);

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

{

{

TranslateMessage(&msg);

DispatchMessage(&msg);

}

}

return(0);

}

Posted Date: 10/9/2012 7:57:04 AM | Location : United States







Related Discussions:- Sdk programming, Assignment Help, Ask Question on Sdk programming, Get Answer, Expert's Help, Sdk programming Discussions

Write discussion on Sdk programming
Your posts are moderated
Related Questions

two sides are given of a sheet e.g 23*36 i want half or 1/2 of this sheet next i want 1/4(one fourth) of this sheet if sheet size is 23*36 next i want 1/8 similary as above

A variation on the If...Then...Else statement lets you to choose from various alternatives. By adding up Else If clauses expands the functionality of the If...Then...Else statement

This is from the book Programming in Visual Basic 2010 by Julia Case Bradley and Anita C. Millspaugh. The assignment is located in Chapter 3 on page 154. Before I type it in, I wou

I need assistance with writing the Tryparse I have 98% of the assignment done.

Steps for Creating A MDI Form: 1. Build a new form and set IsMdiContainer property to true. 2. Build a child form class to add to the form. 3. Now Right click the proj

anumberisprimeornot

Retrieval Methods: There are 3 ways to find a document. The primary method is a positional retrieval. This is achieved by keeping in mind where you left it. The next method is

Accelerators: The Accelerators are short cut keys. The Accelerators are formed by placing an ampersand before any of the characters of the Caption. As a product the letter fol

how to make dictionary in vb using ms access