![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
what's missing here ? Compiler Error Message: BC30203: Identifier expected. Source Error: Line 11 Line 9: Public Class GetVol Line 10: Line 11: Private Shared<DllImport("kernel32.dll")> _ Line 12: Function GetVolumeInformation(PathName As String, VolumeNameBuffer As StringBuilder, VolumeNameSize As UInt32, ByRef VolumeSerialNumber As UInt32, ByRef MaximumComponentLength As UInt32, ByRef FileSystemFlags As UInt32, FileSystemNameBuffer As StringBuilder, FileSystemNameSize As UInt32) As Long Line 13: |
#4
| |||
| |||
|
|
I think the priveate shared comes after the DLLImport. What I believe the compiler is telling you is it is expecting some identifying name to occur right after private shared. I think what you're looking for is the following: Line 11: <DllImport("kernel32.dll")> _ Line 12: Private Shared Function GetVolumeInformation(...... Hope this helps, Mark Fitzpatrick Microsoft MVP -FrontPage "Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> wrote what's missing here ? Compiler Error Message: BC30203: Identifier expected. Source Error: Line 11 Line 9: Public Class GetVol Line 10: Line 11: Private Shared<DllImport("kernel32.dll")> _ Line 12: Function GetVolumeInformation(PathName As String, VolumeNameBuffer As StringBuilder, VolumeNameSize As UInt32, ByRef VolumeSerialNumber As UInt32, ByRef MaximumComponentLength As UInt32, ByRef FileSystemFlags As UInt32, FileSystemNameBuffer As StringBuilder, FileSystemNameSize As UInt32) As Long Line 13: |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |