![]() |
Undefinierter Bezeichner 'Outlook := unassigned'
Hallo allerseits,
ich teste gerade eine Anwendung, die ich unter Delphi 4 geschrieben habe, in Delphi 7. Dabei lese ich Kontaktdaten aus Outlook.
Delphi-Quellcode:
Obwohl ich nichts am Code verändert habe, erhalte ich beim Kompilieren in Delphi 7 die Fehlermeldung:
Outlook := CreateOleObject('Outlook.Application');
NameSpace := Outlook.GetNameSpace('MAPI'); ... blablabla ... Outlook := Unassigned;
Delphi-Quellcode:
Kann mir jemand sagen was da schief läuft?
[Fehler] Unit1.pas(212): Undefinierter Bezeichner: 'Unassigned'
Gruß Peter |
Re: Undefinierter Bezeichner 'Outlook := unassigned'
Hallo,
binde mal die Unit Variants mit ein.
Delphi-Quellcode:
Uses ......,Variants;
var Outlook:Variant; Outlook := CreateOleObject('Outlook.Application'); NameSpace := Outlook.GetNameSpace('MAPI'); ... blablabla ... Outlook := Unassigned; |
Re: Undefinierter Bezeichner 'Outlook := unassigned'
Danke, das war es!
Ich habe jetzt mal schnell verglichen und siehe da, in Delphi4 ist 'Unassigned' in der Unit 'System' enthalten und in Delphi7 in 'Variants', wie du schriebst. |
Alle Zeitangaben in WEZ +1. Es ist jetzt 21:58 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz