什么是SDK的编程方式?如何通过delphi进行SDK编程? 什么是SDK的编程方式?如何通过delphi进行SDK编程?SDK编程有何好处?该看什么书?该使用什么工具? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 SDK是软件开发包delphi进行SDK编程就是调用API 看书当然是 《windows 95 programming》了。delphi开发环境就可以,只要不用vcl,纯粹的API调用,语法是pascal procedure TFrmMaterial.Button1Click(Sender: TObject);begin messagebox(handle,'你好',MB_ok+MB_ICONINFORMATION)end;messagebox是API函数 这样就是 sdk很有用啊—————————————————————————————————┏━★━━◆━━★━┓ ♂欢|◢CSDN◣|使♂ ▲自由保存帖子,浏览,关注检测┃迎|◥论坛助手◤|用┃ ▲完善的CSDN客户端工具┗━☆━━◇━━━☆┛ ▲自动添加签名......让你更快,更爽,更方便地上CSDN...http://www.csdn.net/expert/topic/573/573604.xmlhttp://www.chinaok.net/csdn/csdn.zip 如果用C可以这样写/*---------------------------------------------------------- HELLOWIN---Displays "Hello Windows2000!" in client area (c) yexiong, 2001 --------------------------------------------------------*/#include <windows.h>LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,PSTR szCmdLine,int iCmdShow){ static TCHAR szAppName[]=TEXT("HelloWin"); HWND hwnd; MSG msg; WNDCLASS wndclass; wndclass.style =CS_HREDRAW|CS_VREDRAW; wndclass.lpfnWndProc =WndProc; wndclass.cbClsExtra =0; wndclass.cbWndExtra =0; wndclass.hInstance =hInstance; wndclass.hIcon =LoadIcon(NULL,IDI_APPLICATION); wndclass.hCursor =LoadCursor(NULL,IDC_ARROW); wndclass.hbrBackground=(HBRUSH)GetStockObject(WHITE_BRUSH); wndclass.lpszMenuName =NULL; wndclass.lpszClassName=szAppName;if(!RegisterClass(&wndclass)){ MessageBox(NULL,TEXT("This program requires Windows NT!"),szAppName,MB_ICONERROR); return 0;}hwnd=CreateWindow(szAppName, //windows class name TEXT("The Hello Program"), //windows caption WS_OVERLAPPEDWINDOW, //windows style CW_USEDEFAULT, //initial x position CW_USEDEFAULT, //initial y position CW_USEDEFAULT, //initial x size CW_USEDEFAULT, //initial y size NULL, //parent window handle NULL, //window meun handle hInstance, //program instance handle NULL); //creation parameters ShowWindow(hwnd,iCmdShow); UpdateWindow(hwnd); while(GetMessage(&msg,NULL,0,0)) { TranslateMessage(&msg); DispatchMessage(&msg); } return msg.wParam;}LRESULT CALLBACK WndProc(HWND hwnd,UINT message,WPARAM wParam, LPARAM lParam){ HDC hdc; PAINTSTRUCT ps; RECT rect; switch(message) { case WM_CREATE: PlaySound(TEXT("hellowin.wav"),NULL,SND_FILENAME|SND_ASYNC); return 0; case WM_PAINT: hdc=BeginPaint(hwnd,&ps); GetClientRect(hwnd,&rect); DrawText(hdc,TEXT("Hello,Windows 2000!"),-1,&rect,DT_SINGLELINE|DT_CENTER|DT_VCENTER); EndPaint(hwnd,&ps); return 0; case WM_DESTROY: PostQuitMessage(0); return 0; } return DefWindowProc(hwnd,message,wParam,lParam);} WinMain函数是整个执行文件的入口函数,而所有程序的消息循环都在WndProc中进行。只能这样给你们楼上二位解释,想要知道具体的含义,自己去看书去,我这里有winsdk.chm讲sdk编程的,谁要我给他发,但是必须先开帖子给我分。我开始给几个人发了,发了就没有反应了,CSDN上面的人讲信用的没有几个,我发的源程序也是,发出去就没有人理我了,靠,以后再也不做好事了。 你能给我发一份吗,我绝对开贴给你分,我保证[email protected] 你能给我发一份吗,我已经给你分了[email protected] 做delphi程序元是不是太悲哀了! 如何根据名称找到菜单项,并点击它? 求DELPHI7入门书籍 Access数据库怎么查找介于短日期型字段的纪录? 有谁在delphi用过FORMULAONE控件做过报表!!! 在线求助:Delphi的三方控件TEKRTF的用法! 如何检测串口是否已被占用或是没有联通讯线??? 关于计数的问题!100! 用户权限问题,急! Delphi调用Oracle存储过程插入图片 如何实现带参数的程序,比如像dir /?可以自动识别参数'/?'调用不同的处理函数 怎样将Edit里面第二和第三个字符strtoint
delphi进行SDK编程就是调用API
delphi开发环境就可以,只要不用vcl,纯粹的API调用,语法是pascal
begin
messagebox(handle,'你好',MB_ok+MB_ICONINFORMATION)
end;
messagebox是API函数 这样就是
┏━★━━◆━━★━┓
♂欢|◢CSDN◣|使♂ ▲自由保存帖子,浏览,关注检测
┃迎|◥论坛助手◤|用┃ ▲完善的CSDN客户端工具
┗━☆━━◇━━━☆┛ ▲自动添加签名......让你更快,更爽,更方便地上CSDN...
http://www.csdn.net/expert/topic/573/573604.xml
http://www.chinaok.net/csdn/csdn.zip
HELLOWIN---Displays "Hello Windows2000!" in client area
(c) yexiong, 2001
--------------------------------------------------------*/#include <windows.h>LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,PSTR szCmdLine,int iCmdShow)
{
static TCHAR szAppName[]=TEXT("HelloWin");
HWND hwnd;
MSG msg;
WNDCLASS wndclass;
wndclass.style =CS_HREDRAW|CS_VREDRAW;
wndclass.lpfnWndProc =WndProc;
wndclass.cbClsExtra =0;
wndclass.cbWndExtra =0;
wndclass.hInstance =hInstance;
wndclass.hIcon =LoadIcon(NULL,IDI_APPLICATION);
wndclass.hCursor =LoadCursor(NULL,IDC_ARROW);
wndclass.hbrBackground=(HBRUSH)GetStockObject(WHITE_BRUSH);
wndclass.lpszMenuName =NULL;
wndclass.lpszClassName=szAppName;if(!RegisterClass(&wndclass))
{
MessageBox(NULL,TEXT("This program requires Windows NT!"),szAppName,MB_ICONERROR); return 0;
}hwnd=CreateWindow(szAppName, //windows class name
TEXT("The Hello Program"), //windows caption
WS_OVERLAPPEDWINDOW, //windows style
CW_USEDEFAULT, //initial x position
CW_USEDEFAULT, //initial y position
CW_USEDEFAULT, //initial x size
CW_USEDEFAULT, //initial y size
NULL, //parent window handle
NULL, //window meun handle
hInstance, //program instance handle
NULL); //creation parameters ShowWindow(hwnd,iCmdShow);
UpdateWindow(hwnd); while(GetMessage(&msg,NULL,0,0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return msg.wParam;
}LRESULT CALLBACK WndProc(HWND hwnd,UINT message,WPARAM wParam, LPARAM lParam)
{
HDC hdc;
PAINTSTRUCT ps;
RECT rect; switch(message)
{
case WM_CREATE:
PlaySound(TEXT("hellowin.wav"),NULL,SND_FILENAME|SND_ASYNC);
return 0;
case WM_PAINT:
hdc=BeginPaint(hwnd,&ps); GetClientRect(hwnd,&rect); DrawText(hdc,TEXT("Hello,Windows 2000!"),-1,&rect,DT_SINGLELINE|DT_CENTER|DT_VCENTER);
EndPaint(hwnd,&ps);
return 0;
case WM_DESTROY:
PostQuitMessage(0);
return 0;
}
return DefWindowProc(hwnd,message,wParam,lParam);
}
[email protected]
[email protected]