aru_aakash
Board Regular
- Joined
- May 22, 2009
- Messages
- 74
Hello Gurus,
I have following line of codes :
<code>
</code>
The above UDF uses API call to FindExecutable function.
Query: Last line of code gives nothing to Exec function. But still on supplying the filename and path to this function, i am getting the executable file path.
Also i do not understand where ALen is used.
Please advise. As i am finding difficultly in understanding DLL's functions.
Thanks<code></code>
I have following line of codes :
<code>
Code:
Function Exec(strFile As String) As String
Dim strPath As String
Dim ALen As Integer
strPath = Space(255)
ALen = FindExecutableA(strFile, "\", strPath)
Exec = Trim(strPath)
End Function
The above UDF uses API call to FindExecutable function.
Query: Last line of code gives nothing to Exec function. But still on supplying the filename and path to this function, i am getting the executable file path.
Also i do not understand where ALen is used.
Please advise. As i am finding difficultly in understanding DLL's functions.
Thanks<code></code>
Last edited by a moderator: