Hi All,
I have a problem, involving c++ and
vb.net api calling.
I want to read ID3 tags, any version of them 1 - 2.4! I have found this fully compiled c++ project from id3lib.sourceforge.net.
It comes in the form of dll (obviously) but you cant just import that into
vb and access its functions because its not an active x or a com component, or something along those lines, basically I can't access it.
However I have just had a look on line about API calling, so I know roughly how it could be done from
vb, like importing the interop class and doing a DLL import, however I do not fully understand the arguments that could be parsed. for example:
Code:
<DllImport("KERNEL32.DLL", EntryPoint:="GetSystemDirectoryW", _
SetLastError:=True, CharSet:=CharSet.Unicode, _
ExactSpelling:=True, _
CallingConvention:=CallingConvention.StdCall)> _
Public Shared Function GetSystemDirectory(ByVal Buffer _
As StringBuilder, ByVal Size As Integer) As Long
' Leave function empty - DLLImport attribute
' forces calls to GetSystemDirectory to
' be forwarded to GetSystemDirectory in KERNEL32.DLL
End Function
This apparently can access the GetSystemDirectory function from the kernel 32 dll! However I don't understand where the setlasterror comes from and all the rest?! I guess that when it starts with the shared function everything in the brackets will be the arguments as the c++ code intended so thats easy enough, however I would like everything explained, or sent to a place where everything is explained explicitly!
Cheers