If the function returns a string, you would
Code:
Dim strHash As String
Dim MySomething As Something
' Put the values into MySomething that the function needs to do its job
strHash = Getfilehash(MySomething)
(The âsomething as somethingâ is a description of how the function is created, not a sample of how it is to be used. In this case you must provide an argument to the function of the type 'something.' In the declaration of that argument [u]in the DLL</u> it is called 'something,' but you need not call it that. You can see here that I called it MySomething.) If the function returns an object, say of the type clsRtrnObj, then you would
Code:
Dim objHash As clsRtrnObj
Code:
Dim MySomething As Something
' Put the values into MySomething that the function needs to do its job
Set objHash = Getfilehash(MySomething)
The obj prefix, and the str prefix have no affect in the code, but only make it easier to understand when you come back to it later to re-use it in another app, or to modify/debug it.