How to declare Dll Procedure?


Declare function "" lib ""
Alias "" (Arg, …..) as Return type.

Showing Answers 1 - 1 of 1 Answers

To declare a DLL procedure, you add a Declare statement to the Declarations section.

1.If the procedure returns a value, write the declare as a Function

Example
Declare Function publicname Lib "libname" [Alias "alias"] [([[ByVal] variable [As type] [,[ByVal] variable [As type]]...])] As Type

2.If a procedure does not return a value, write the declare as a Sub

Example
Declare Sub publicname Lib "libname" [Alias "alias"] [([[ByVal] variable [As type] [,[ByVal] variable [As type]]...])]

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions