Delphi Eıntfcasterror Hatası
-
Hocalar, bir dll' i tlb dosyasına çevirdim. sonra burdaki bazı com objelerini kullanıyordum ki. bir tanesini yaratmaya çalışırken böyle bir hata aldım.
_Ckdu_cache:
// *********************************************************************// // Interface: _Ckdu_cache // Flags: (4560) Hidden Dual NonExtensible OleAutomation Dispatchable // GUID: {0137B6A2-76D0-3E27-A13C-557542A3AAD5} // *********************************************************************// _Ckdu_cache = interface(IDispatch) ['{0137B6A2-76D0-3E27-A13C-557542A3AAD5}'] function Get_ToString: WideString; safecall; function Equals(obj: OleVariant): WordBool; safecall; function GetHashCode: Integer; safecall; function GetType: _Type; safecall; function close: Byte; safecall; function get_capabilities: Integer; safecall; function read(buf: PSafeArray; num_bytes: Integer): Integer; safecall; function seek(offset: Int64): Byte; safecall; function get_pos: Int64; safecall;Cockdu_cache :
// *********************************************************************// // The Class CoCkdu_cache provides a Create and CreateRemote method to // create instances of the default interface _Ckdu_cache exposed by // the CoClass Ckdu_cache. The functions are intended to be used by // clients wishing to automate the CoClass objects exposed by the // server of this typelibrary. // *********************************************************************// CoCkdu_cache = class class function Create: _Ckdu_cache; class function CreateRemote(const MachineName: string): _Ckdu_cache; end;constructor :
constructor TKduCache.Create(_targetID, _cachePath: String); var cache : _Ckdu_cache; begin cache:= CoCkdu_cache.Create; end;
Error: EIntfCastError with message 'Interface not supported'Nasıl çözebilirim? -
teamviewer ac id pass pm yolla amigo
-
WH0 bunu yazdı
teamviewer ac id pass pm yolla amigo
Çözdüm hoca, exe' nin yanına yeni dll' i almayı unutmuşum. Eski dll de sadece cache' in içini değiştirdiğimden diğer yerlerde hata vermeyip sadece burada veriyormuş. yeni oluşturduğum dll' i exe' nin yanına atınca gitti hata
Toplam Hit: 2889 Toplam Mesaj: 3
