folder Tahribat.com Forumları
linefolder Delphi - Pascal
linefolder Delphi Eıntfcasterror Hatası



Delphi Eıntfcasterror Hatası

  1. KısayolKısayol reportŞikayet pmÖzel Mesaj
    ozgunlu
    ozgunlu's avatar
    Banlanmış Üye
    Kayıt Tarihi: 11/Kasım/2011
    Erkek

    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?

     

    Hello, i am nothing. I come from Neverland.
  2. KısayolKısayol reportŞikayet pmÖzel Mesaj
    wh0
    wh0's avatar
    Kayıt Tarihi: 21/Temmuz/2008
    Homo

    teamviewer ac id pass pm yolla amigo


    🏴‍☠️Hi'dan gelen varır Who'ya, Hi'da onun adıdır Who'da...
  3. KısayolKısayol reportŞikayet pmÖzel Mesaj
    ozgunlu
    ozgunlu's avatar
    Banlanmış Üye
    Kayıt Tarihi: 11/Kasım/2011
    Erkek
    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 


    Hello, i am nothing. I come from Neverland.
Toplam Hit: 2889 Toplam Mesaj: 3