vo_to_net:getexefilename
Differences
This shows you the differences between two versions of the page.
vo_to_net:getexefilename [2018/03/03 05:36] – created wolfgangriedmann | vo_to_net:getexefilename [2018/03/03 05:37] (current) – wolfgangriedmann | ||
---|---|---|---|
Line 3: | Line 3: | ||
In VO most programmers used libraries and not DLLs. So, when executing any of these functions, they are called directly from the executable, and therefore this code works in VO: | In VO most programmers used libraries and not DLLs. So, when executing any of these functions, they are called directly from the executable, and therefore this code works in VO: | ||
- | [code]function GetExeFileName() as string | + | <code>function GetExeFileName() as string |
local pszBuffer as psz | local pszBuffer as psz | ||
local cName as string | local cName as string | ||
Line 12: | Line 12: | ||
MemFree( pszBuffer ) | MemFree( pszBuffer ) | ||
- | return cName[/code] | + | return cName</code> |
But in X# libraries are DLLs and therefore external entities. This call can be changed to | But in X# libraries are DLLs and therefore external entities. This call can be changed to | ||
- | [code]function GetExeFileName() as string | + | <code>function GetExeFileName() as string |
local cName as string | local cName as string | ||
cName := System.Reflection.Assembly.GetEntryAssembly(): | cName := System.Reflection.Assembly.GetEntryAssembly(): | ||
- | return cName[/code] | + | return cName</code> |
vo_to_net/getexefilename.1520055415.txt.gz · Last modified: 2018/03/03 05:36 by wolfgangriedmann