Petar Atanasov said:
..paul. said:
how do i list all available functions in an unmanaged .dll?
i tried using reflection, but that seems to only work with managed assemblies
Hi, Paul
If the unmanaged .dll is COM based:
1) Use Tlbimp
[
http://msdn2.microsoft.com/en-us/library/tt0cf3sx(vs.80).aspx]
2) Examine file with
Ildasm
[
http://msdn2.microsoft.com/en-us/library/f7dy01k1(VS.80).aspx]
3) And than wrap with
RCW [
http://msdn2.microsoft.com/en-us/library/8bwh56xe.aspx]
HTH,
Petar Atanasov
http://a-wake.net
i tried this:
Dim result As DialogResult
result = ofd1.ShowDialog()
If result = Windows.Forms.DialogResult.OK Then
''
'' for this example ofd1.filename =
"c:\windows\system32\wininet.dll"
''
System.Diagnostics.Process.Start("C:\Program Files\Microsoft
Visual _Studio 8\SDK\v2.0\Bin\tlbimp.exe " & ofd1.FileName &
"/out:myTest.dll")
Threading.Thread.Sleep(5000)
System.Diagnostics.Process.Start("C:\Program Files\Microsoft
Visual _Studio 8\SDK\v2.0\Bin\ildasm.exe myTest.dll/out:myTest.il")
End If
but it doesn't work. error is - file not found.