Thema: Delphi Msn contact list

Einzelnen Beitrag anzeigen

Razor
(Gast)

n/a Beiträge
 
#12

Re: Msn contact list

  Alt 27. Jan 2009, 20:38
Zitat von mkinzler:
Zitat:
if MSNMyContact.Status=status then
MSNMyContact is reference -> points to Nil!!!!!!
Zitat:
Delphi-Quellcode:
BEGIN
    MSNMyContact := (MSNMyContacts.Item(v_Count) as IMessengerContact);
Afterwards you assign it.
As you been told before, You have to assign it first!

How can it point to nil if you define it in variable in function

Delphi-Quellcode:
const
  MISTATUS_UNKNOWN = $00000000;
  MISTATUS_OFFLINE = $00000001;
  MISTATUS_ONLINE = $00000002;
  MISTATUS_INVISIBLE = $00000006;
  MISTATUS_BUSY = $0000000A;
  MISTATUS_BE_RIGHT_BACK = $0000000E;
  MISTATUS_IDLE = $00000012;
  MISTATUS_AWAY = $00000022;
  MISTATUS_ON_THE_PHONE = $00000032;
  MISTATUS_OUT_TO_LUNCH = $00000042;
  MISTATUS_LOCAL_FINDING_SERVER = $00000100;
  MISTATUS_LOCAL_CONNECTING_TO_SERVER = $00000200;
  MISTATUS_LOCAL_SYNCHRONIZING_WITH_SERVER = $00000300;
  MISTATUS_LOCAL_DISCONNECTING_FROM_SERVER = $00000400;

function contactslist(status:[b]MISTATUS[/b]):string;
Angehängte Dateien
Dateityp: rar msn_contact_list_648.rar (36,7 KB, 10x aufgerufen)