0

I am having a problem solving the expected, line number or end of line in the following.

Declare PtrSafe Function GetSystemDirectory Lib "KERNEL32" Alias "GetSystemDirectoryA" ()
    (ByVal Buffer As String, ByVal size As Longptr) As Longptr
GSerg
  • 76,472
  • 17
  • 159
  • 346
DonA
  • 1
  • 1
  • Possible duplicate of [How to continue the code on the next line in VBA](https://stackoverflow.com/q/22854386/11683) – GSerg Jan 22 '20 at 22:19
  • On top of that, your declaration is wrong. The second parameter is `As Long`, and so is the return value. You don't mindlessly replace all `Long`s with `LongPtr`s, only those that are pointer-sized. – GSerg Jan 22 '20 at 22:21

0 Answers0