TestEGk : primo modifiche per uso DLL con interfacce.

This commit is contained in:
Dario Sassi
2013-11-21 13:32:35 +00:00
parent 6b61692bcf
commit 3246229e81
5 changed files with 34 additions and 21 deletions
+16 -3
View File
@@ -15,8 +15,8 @@
#include "stdafx.h"
#include <iostream>
#include <string>
#include "\EgtDev\Include\EGKPoint3d.h"
#include "\EgtDev\Include\EGkGeoPoint3d.h"
#include "\EgtDev\Include\EGnStringUtils.h"
//--------------------------- Define -----------------------------------------
@@ -66,7 +66,20 @@ wmain( int argc, wchar_t* argv[])
vtV.Set( 1, 1, 1) ;
ptP.Translate( vtV) ;
cout << "Point3d=" << ptP.x << "," << ptP.y << "," << ptP.z << endl ;
cout << "Point3d=" << ToString( ptP) << endl ;
IGeoPoint3d* pGPnt ;
pGPnt = GetGeoPoint3d( CreateGeoObj( KEY_GEO_PNT3D)) ;
if ( pGPnt != nullptr) {
pGPnt->Set( ptP) ;
pGPnt->Translate( vtV) ;
cout << "GeoPoint3d=" << ToString( *(pGPnt->GetPoint())) << endl ;
delete pGPnt ;
}
return 0;
}