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
CONTROL STATEMENTS   The conditional expression uses a comparison operator that results in true or false value. If the comparison is valid the outcome is true, or else the out

A constant is a meaningful name which takes the place of a number or string and never alters. VBScript described a number of intrinsic constants. You can get thorough information r

USE OF SERIALIZE FUNCTION IN DOCUMENT CLASS TO IMPLEMENT FILE void CStoreDoc::Serialize(CArchive& ar) { if (ar.IsStoring()) { // TODO: add storing code here }

i need to do my final project for my last year bsc honours degree in Business Information systems. I need to develop a system which is operational for hotel management system. th

Displaying a file With Scrolling: To display a file with the scrolling option allows the steps as shown below: 1. Generate a SDI application. 2. In the Step 6 of the App


Visual Basic 1. What is the method of creating a new project in VB.SSS 2. Illustrate Code Editor Window and Solution Explorer. 3. Write a VB program to sort and display a

everything about events

You are asked to create the LOTO game customized according to the following constraints: 1. Create a grid containing 20 numbers (20 buttons: button1, button2, …button20) 2. When t

Adding Records: 1. As in the earlier case Set the DatabaseName property as "C:\ex.mdb", now Set the Record Source for the data control as Customer and Set the Record Type to 0