Easy language calling external DLL detailed tutorial examples

First, the preparatory work

First, the tool: easy language

Second, prepare a DLL

1) Open the Easy language - Create a Windows dynamic link library

 

2) Then a subroutine or a new right using shortcut: Ctrl + N. Then write code. I am here to write a string concatenation of two examples Ha!

Subroutine name: The name of this method. Also you need to use call back oh.

Return Value Type: fill in according to their own needs.

Public: This must tick, or will not call.

 

 

 

3) After writing compiled into a DLL file

 

 

Third, write the procedure calls

1) Open the Easy language - Create a new Windows program window

2) Then we have just written dll loaded in. Click Insert - "Dll ​​command

 

3) Fill in the information to be called DLL

Dll command name: this is no limit on how thinking about how to take take

Returns: this dll you keep calling in subroutines (methods) return value to be the same.

Library file name: This is the path that you have just compiled a Dll. You can write the relative and absolute paths

In case the corresponding command name: this is what you want to call in a dll where subroutine (method) name

Parameter name: this is a routine (method) you want to call in the corresponding parameters.

 

4) We add a button back window

 

5) Then double-click the button to enter the interface to write code, write the following code

Note: You just named a new command that DLLmi what you write directly what then fill in the corresponding parameters can Oh!

6) Then we run the program. Click the button will pop up two to string concatenation information with your friends!

 

 
 
Website: http://www.xtyos.cn
GitHub: https://github.com/2629180692
blog Park: http://www.cnblogs.com/wurendao
completion date © 2019-06-01 uninhabited island
experience What problem are welcome to put forward the comments below or contact me Oh!

[Reprinted articles sure to keep the source and the signature, thank you! ]

Guess you like

Origin www.cnblogs.com/wurendao/p/10959007.html