Sdk programming, Visual Basic Programming

Assignment Help:

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);

}


Related Discussions:- Sdk programming

Create a visual basic application to play Hangman game, Create a Visual Bas...

Create a Visual Basic that allows a user to play a variation of Hangman. User Inputs The user types a letter into the textbox.   Functional Items 1. Read a

Check whether a number is palindrome or not, Function IsPalindrome(str) ...

Function IsPalindrome(str) Dim iStart,iEnd,ctr,blnPalin str=trim(str) blnPalin=true iEnd=len(str) iCnt=round(iEnd / 2) iStart=1 for ctr=1 to cint(iCnt) if(mid(str,iEnd,

Wage calculator and ta calculations, ( Wage Calculator with Tax Calculation...

( Wage Calculator with Tax Calculations) Develop an application that calculates an employee’s earnings, as shown in Fig. 4.23. The user should provide the hourly wage and number of

Simple programming, For this assignment you have to design and implement a ...

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

Investment loan program, I have all my program done except the loan part th...

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

Lotto program, You are asked to create the LOTO game customized according t...

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

Dictionary object in vbscript, The Dictionary object stores data as key, it...

The Dictionary object stores data as key, item pairs. A Dictionary object is the corresponding of a PERL associative array. Items, that can be any form of data, are stored in the a

Create an application for hospital management, 1.   Make project in Visual ...

1.   Make project in Visual Studio 2008. 2.   Controller Class is used for functioning. 3.   Login Form where three people can login like manager, staff and receptionist we c

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd