Konuyu Oyla:
  • Derecelendirme: 0/5 - 0 oy
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to find an entry point ...
#1
Delphi' de oluşturduğum library' i vb.net altından Import edip metodunu çağırdığımda
"Unable to find an entry point named 'xxxxx' in DLL " hatası alıyorum.

Entry Point' i Import komutunda belirtmeme ve Delphi tarafında metodu export etmeme rağmen bu hatayı aşamadım.
Ustalarına bir sorayım dedim ... Smile

Kod şu şekilde :


Delphi Kodu :

library DelphiDllTest;

{$R *.res}

   Function GetFakeValue(_sFilePath : String): String; stdcall;
   Begin
// _sFilePath' i yaşadığım sorun nedeniyle şu an kullanmadım.
         Result := 'xxxx';
   End;

exports
   GetFakeValue;
begin
end.

vb.net Kodu :

<DllImport("C:\DelphiDllTest\DelphiDllTest.dll", CallingConvention:=CallingConvention.StdCall, CharSet:=CharSet.Ansi, EntryPoint:="GetFakeValue")>
Public Shared Function GetFakeValue(ByVal _sFilePath As String) As String
End Function

vb.net Altından Çağırma :

Return GetFakeValue("test.txt")
Cevapla


Konu ile Alakalı Benzer Konular
Konular Yazar Yorumlar Okunma Son Yorum
  is not a valid floating point value Hatası [ÇÖZÜLDÜ] SenayAkgun 14 12.954 23-12-2018, Saat: 22:07
Son Yorum: mustafaozpinar
  Floating point division by zero Hatası Mericx 0 1.977 06-06-2017, Saat: 15:06
Son Yorum: Mericx



Konuyu Okuyanlar: 1 Ziyaretçi