Autor Beitrag
gitta
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 47



BeitragVerfasst: Do 14.10.04 18:56 
Hallo Zusammen,

wie lassen sich die zwei Zeilen in Delphi konvertieren?

{MS Visula C++ 6.0}
IiwAdress iwAdress;
iwAdress.AttachDispatch( iwGeoAdress.GetAdress(), FALSE );
{Delphi}
???????????????????

CreateDispatch habe ich so kovertiert:
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
{MS Visula C++ 6.0}
IiwGeoPoint iwGeoPoint;
iwGeoPoint.CreateDispatch("IwGeoObjects.iwGeoPoint.1");

{Delphi}
var
iwGeoPoint: IiwGeoPoint;
begin
iwGeoPoint := CreateComObject(CLASS_iwGeoPoint) as IiwGeoPoint;
iwGeoPoint := nil;


Hat jemand eine Idee?

Gruß Gitta.
sourcehunter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 482

Win XP | Suse 10.1
Delphi 2005 Pers.
BeitragVerfasst: Do 14.10.04 19:46 
Sind dieses iwAdress und iwGeoPoint nicht ganz andere Typen? Oder sehe ich da was falsch?

Aber is ja egal.
Du musst da in IiwAdress irgendwas haben, wo du eine Adresse speichern kannst, und der musst du dann die iwGeoAdress.GetAdress zuweisen.

Hilfreicher wäre es, wenn du etwas über den Aufbau der Klassen verraten könntest, denn du hast bestimmt mehr als diese 10(7) Zeilen Code gebraucht um das zu konvertieren, oder hast du unsere Glaskugeln eingesackt? :wink:

_________________
Linux und OpenSource rulez!