TestEGk : primo modifiche per uso DLL con interfacce.
This commit is contained in:
+16
-3
@@ -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;
|
||||
}
|
||||
|
||||
@@ -87,7 +87,6 @@
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="stdafx.h" />
|
||||
<ClInclude Include="targetver.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="stdafx.cpp">
|
||||
|
||||
@@ -18,9 +18,6 @@
|
||||
<ClInclude Include="stdafx.h">
|
||||
<Filter>File di intestazione</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="targetver.h">
|
||||
<Filter>File di intestazione</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="stdafx.cpp">
|
||||
|
||||
@@ -5,16 +5,28 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "targetver.h"
|
||||
#include "/EgtDev/Include/EgtTargetVer.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <tchar.h>
|
||||
#include <float.h>
|
||||
#include <math.h>
|
||||
|
||||
#define EGTLIBDIR "/EgtDev/Lib/"
|
||||
#if NDEBUG
|
||||
#define EGTLIBVER "R32"
|
||||
// in Debug riconoscimento memory leakage
|
||||
#ifdef _DEBUG
|
||||
#define _CRTDBG_MAP_ALLOC
|
||||
#include <stdlib.h>
|
||||
#include <crtdbg.h>
|
||||
#endif
|
||||
|
||||
// in Debug controllo iteratori
|
||||
#ifdef _DEBUG
|
||||
#define _SECURE_SCL 1
|
||||
#else
|
||||
#define EGTLIBVER "D32"
|
||||
#endif
|
||||
#define _SECURE_SCL 0
|
||||
#endif
|
||||
|
||||
#include "/EgtDev/Include/EgtLibVer.h"
|
||||
|
||||
#pragma comment(lib, EGTLIBDIR "EgtGeomKernel" EGTLIBVER ".lib")
|
||||
#pragma comment(lib, EGTLIBDIR "EgtGeneral" EGTLIBVER ".lib")
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
// Includere SDKDDKVer.h per definire la piattaforma Windows maggiormente disponibile.
|
||||
|
||||
// Se si desidera compilare l'applicazione per una piattaforma Windows precedente, includere WinSDKVer.h e
|
||||
// impostare la macro _WIN32_WINNT sulla piattaforma da supportare prima di includere SDKDDKVer.h.
|
||||
|
||||
#include <SDKDDKVer.h>
|
||||
Reference in New Issue
Block a user