To alias the name of a DLL function so that it can be called using a different name in BASIC+, use the AS keyword. For example, if the function GetPrivateProfileString is already declared as taking an LPCHAR for the second parameter and you need to call it using an LPVOID for the second parameter without changing the current definition, you can alias the function using a new name, like GetPrivateProfileSection.

 

SHORT PASCAL GetPrivateProfileString(LPCHAR,LPCHAR,LPCHAR,LPCHAR,SHORT,LPCHAR)
SHORT PASCAL GetPrivateProfileString(LPCHAR,LPVOID,LPCHAR,LPCHAR,SHORT,LPCHAR) AS GetPrivateProfileSection
  • No labels