0% found this document useful (0 votes)
279 views2 pages

Markezd Example

The document provides steps for developing a program to mark text from a network server onto a rectangle using a template file. It involves loading a DLL, getting function pointers, initializing and closing the board, loading the template, getting text from the server, changing the text object, and marking it.

Uploaded by

theDoo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
279 views2 pages

Markezd Example

The document provides steps for developing a program to mark text from a network server onto a rectangle using a template file. It involves loading a DLL, getting function pointers, initializing and closing the board, loading the template, getting text from the server, changing the text object, and marking it.

Uploaded by

theDoo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

We will show an example about how to do the Development

Client need mark one line text in a rectangle, which is shown as following, and the
content of text must be achieved from a network server.

Common step of Development as follows:


Step 1. Create a template file as test.ezd, then create a new text object and named it to
“name”. Adjust the size, position and parameters to reach the machining effect. Then
save file and exit EzCad2.

Step 2. Program software for calling markezd.dll.


a) First step : Dynamic Load MarkEzd.dll
HINSTANCE hEzdDLL = LoadLibrary(_T("MarkEzd.dll"));

b) Second step: get the pointer of the function to be called

lmc1_Initial=(LMC1_INITIAL)GetProcAddress(hEzdDLL,
_T("lmc1_Initial"));
lmc1_Close=(LMC1_CLOSE)GetProcAddress(hEzdDLL,
_T("lmc1_Close"));
lmc1_LoadEzdFile=(LMC1_LOADEZDFILE)GetProcAddress(hEzdDLL,_
T("lmc1_LoadEzdFile"));
lmc1_Mark=(LMC1_MARK)GetProcAddress(hEzdDLL,_T("lmc1_Mark")
);
lmc1_ChangeTextByName=(LMC1_CHANGETEXTBYNAME)GetProcAdd
ress(hEzdDLL,_T("lmc1_ChangeTextByName"));
c) Third step: Call the function
1) Initialization lmc1 board: lmc1_Initial()
2) Open test.ezd: lmc1_LoadEzdFile(_T(“test.ezd”)).
3) Get the text content from network server. User must write this segment
program oneself.
4) Change the content of the named text object.
lmc1_ChangeTextByName (_T(“name”), szTextAchievedFromNetwork);
5) Call lmc1_Mark() for machining
6) If go on, return to 3).
7) Close lmc1 board: lmc1_Close().

d) Fourth step, Release markezd.dll: FreeLibrary(hEzdDLL)

You might also like