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
Let us modify the webTime ASP.NET project that we developed. We will add drop down lists for modifying the different style elements for the label element that displays the time. We

Properties: Every control has a default property related with it. The default property does not require to be named when you are functioning. The control Check box as value

I have all my program done except the loan part that I am having a lot of troubles with

Properties: VBScript Err Object   Properties   Description   D escription Property The descriptive string related

Task 1 - Design the DATEX operator's user interfaces for: 1. Preparing messages. 2. Sending messages. 3. Viewing received messages. 4. Optionally view the details of the codin

Executesql: The ExecuteSQL is used for executing the query on the database. The CRecordset uses the RFX mechanism to replace data between field data members of the record set

Earlier versions of VBScript had no mechanism for making user-defined constants. Constants, if utilized, were implemented as variables & distinguished from other variables by using

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

Problem 1. Describe the importance and usage of .net framework in visual Studio 2. Write a program to sort and display an array of integers in ascending order using the conc

The Frame: As the name suggests, the frame is a combination of the building blocks, structure and the borders of an item. The frame gives the "physical" presence to a window.