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

For this assignment you have to design and implement a VB.NET project which prepares a bill of payment due, given the purchase amount. The project models a typical purchase transac

I have a problem with Visual Basic: exchangeable 2 images of place I have 2 picturebox''s placed a button when I click on the button, the 2 pictures of this place change with e

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

Message Box: The Message Box can be specified a title as shown in figure to specify the title for the message box follow by the command given below:  Private Sub Command1_C

Indexing: In libraries, the card catalog is the index. The three indices are used in the library. The Author, Subject and title are the 3 indices. Each index is relative. The

i have a database i want mange it network and i want write it with vb.net so how i can do this

Benefits of Using DLLs: The dynamic linking has the following advantages which are as shown below: It saves memory and decreases the swapping. Many processes can use a s

The Document: The document contains the user's data. For illustration, after working on a text processor, the user may wish for to save the file. Such an action builds a docum

APPWIZARD   The Appwizard is a tool used for creating a project. It follows a series of steps to create a project. Steps Involved in Creating A Project: Step 1: Fr