missing identifier ? - 03-23-2006 , 04:00 PM
what's missing here ?
Compiler Error Message: BC30203: Identifier expected.
Source Error: Line 11
Line 9: Public Class GetVol
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
Re: missing identifier ? - 03-23-2006 , 04:13 PM
Aren't you mixing C# syntax with VB.NET??
Declare Function LogonUserA Lib "advapi32.dll" (ByVal lpszUsername As
ByVal lpszDomain As String, _
ByVal lpszPassword As String, _
ByVal dwLogonType As Integer, _
ByVal dwLogonProvider As Integer, _
ByRef phToken As IntPtr) As Integer
Re: missing identifier ? - 03-23-2006 , 07:07 PM
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,
Microsoft MVP -FrontPage
"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> wrote
Re: missing identifier ? - 03-23-2006 , 10:47 PM
that seems to do it .
"Mark Fitzpatrick" <markfitz (AT) fitzme (DOT) com> wrote
|Thread Tools||Search this Thread|