WideStudio/MWT Logo
WideStudio/MWT
Programming Guide
WideStudio/MWT Index
Table of contents


샘플1 (Hello World)

여기서는 맨 먼저 실행하여야할 프로젝트의 작성, 응용프로그램 윈도우 의 작성, 이벤트 프로시저의 작성을 합니다. 윈도우에 표시 되는 단추를 누르며는 HelloWorld 라 표시되는 초보적인 샘플입니다.

샘플의 소스코드는 ws/samples/EUCJP/hello/hello.prj, ws/samples/SJIS/hello/hello.prj 입니다. 응용프로그램 빌더로 읽겄다가 컴파일해보아주세요.



[응용프로그램 윈도우의 모습]

#include <WScom.h>
#include <WSCfunctionList.h>
#include <WSCbase.h>
//----------------------------------------------------------
//Function for the event procedure
//----------------------------------------------------------
void btn_proc(WSCbase* object){
  //do something...
  static long cnt = 0;
  if (cnt == 0){
    object->setProperty(WSNlabelString,"Hello World.");
    cnt++;
  }else{
    exit(0);
  }
}
static WSCfunctionRegister  op("btn_proc",(void*)btn_proc);



[응용프로그램 실행의 모습]


Document Release 3.90 for WideStudio/MWT ver 3.90, Jul 2005


WideStudio/MWT documents index | Table of contents

Copyright(C) WideStudio/MWT Development Team, 1999-2005 Last modified: Jul 31, 2005