Hey hey,
Momenteel ben ik bezig met een asp.net (VB) project en hierin moet ik een C# DLL gebruiken.
Deze DLL heb ik geplaatst in de /Bin folder, maar ik kan er geen reference naar maken:
"A reference to "<dllNaam>" could not be added. No type libaries were found in the component."
Ik heb op 2 manieren geprobeerd de DDL te importeren:
en
Beide manieren geven natuurlijk de error:
Unable to load DLL 'psutils.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Het lijkt me puur te komen omdat ik geen reference naar de DLL kan aanmaken.
Iemand een idee voor een oplossing?
Momenteel ben ik bezig met een asp.net (VB) project en hierin moet ik een C# DLL gebruiken.
Deze DLL heb ik geplaatst in de /Bin folder, maar ik kan er geen reference naar maken:
"A reference to "<dllNaam>" could not be added. No type libaries were found in the component."
Ik heb op 2 manieren geprobeerd de DDL te importeren:
code:
1
2
3
4
5
6
| Private Declare Auto Function KMCompress Lib "psutils.dll" ( _
ByVal dst As String, _
ByVal dlen As UInteger, _
ByVal src As String, _
ByVal slen As UInteger, _
ByVal sTmp As String) As String |
en
code:
1
2
3
4
5
6
7
8
| <DllImport(DllName, CallingConvention:=CallingConvention.StdCall, EntryPoint:="KMCompress", CharSet:=CharSet.Auto, SetLastError:=True)> _
Shared Function KMCompress( _
ByVal dst As String, _
ByVal dlen As UInteger, _
ByVal src As String, _
ByVal slen As UInteger, _
ByVal sTmp As String) As String
End Function |
Beide manieren geven natuurlijk de error:
Unable to load DLL 'psutils.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Het lijkt me puur te komen omdat ik geen reference naar de DLL kan aanmaken.
Iemand een idee voor een oplossing?