델파이 소스보구 후다닥 바꿔봣음니다.
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "ncUnit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
//2003.8.31 ncnt2.dll 사용하기 by sparrow
TForm1 *Form1;
typedef char * __stdcall (* pfun)(TPoint *P);
pfun GetWordFromPoint;
HANDLE H;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::FormCreate(TObject *Sender)
{
H = LoadLibrary("ncnt2.dll");
if(H == NULL) return;
GetWordFromPoint = (pfun)GetProcAddress(H,"GetWordFromPoint");
if(GetWordFromPoint == NULL) exit(0);
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Timer1Timer(TObject *Sender)
{
TPoint P;
GetCursorPos(&P);
Form1->Caption=StrPas(GetWordFromPoint(&P));
}
//---------------------------------------------------------------------------
void __fastcall TForm1::FormClose(TObject *Sender, TCloseAction &Action)
{
FreeLibrary(H);
}
//---------------------------------------------------------------------------
그럼 ^^
물어보자 님이 쓰신 글 :
: 최준호.스페로 님이 쓰신 글 :
: : 안녕하세요 스페로 입니다.
: :
: :
http://sparrow.borlandforum.com/board/boardview.asp?table_name=tip&board_idx=121
: :
: : 요넘으로 비스므리 해보실수 잇을 겁니다.
:
: 델파이 소스인데 빌더에서는 어떻게 써야하는지요?
: 빌더에서 사용할 수 있는 방법을 일러주시면 감사하겠습니다.