什么是SDK的编程方式?如何通过delphi进行SDK编程?SDK编程有何好处?该看什么书?该使用什么工具?

解决方案 »

  1.   

    SDK是软件开发包
    delphi进行SDK编程就是调用API
      

  2.   

    看书当然是 《windows 95 programming》了。
    delphi开发环境就可以,只要不用vcl,纯粹的API调用,语法是pascal
      

  3.   

    procedure TFrmMaterial.Button1Click(Sender: TObject);
    begin
      messagebox(handle,'你好',MB_ok+MB_ICONINFORMATION)
    end;
    messagebox是API函数  这样就是
      

  4.   

    sdk很有用啊—————————————————————————————————
    ┏━★━━◆━━★━┓ 
    ♂欢|◢CSDN◣|使♂        ▲自由保存帖子,浏览,关注检测
    ┃迎|◥论坛助手◤|用┃        ▲完善的CSDN客户端工具
    ┗━☆━━◇━━━☆┛       ▲自动添加签名......让你更快,更爽,更方便地上CSDN...
    http://www.csdn.net/expert/topic/573/573604.xml
    http://www.chinaok.net/csdn/csdn.zip
      

  5.   

    如果用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);
    }
      

  6.   

    WinMain函数是整个执行文件的入口函数,而所有程序的消息循环都在WndProc中进行。只能这样给你们楼上二位解释,想要知道具体的含义,自己去看书去,我这里有winsdk.chm讲sdk编程的,谁要我给他发,但是必须先开帖子给我分。我开始给几个人发了,发了就没有反应了,CSDN上面的人讲信用的没有几个,我发的源程序也是,发出去就没有人理我了,靠,以后再也不做好事了。
      

  7.   

    你能给我发一份吗,我绝对开贴给你分,我保证
    [email protected]
      

  8.   

    你能给我发一份吗,我已经给你分了
    [email protected]