资源简介
surfer8安装包,WS-057001-1677
代码片段和文件信息
//-----------------------------------------------------------------------------
//
// Client.cpp Copyright (C) Golden Software Inc. 1999-2000
//
// You have a royalty-free right to use modify reproduce and distribute
// the Sample Application Files in any way you find useful provided that
// you agree that Golden Software has no warranty obligations or liability
// for any Sample Application Files.
//
// This example demonstrates how to automate Surfer from C++. A new instance
// of Surfer is started and a shaded relief map is created. The shaded relief
// map colors are then “animated“ from black to red.
//
// This example uses the Microsoft-specific extension “#import“ to create
// header files from the type library information contained within Surfer.exe.
// The generated header files contain several smart-pointer classes that
// greatly simplify this entire process. Make sure the #import directive
// below points to the correct location of Surfer.exe.
//
// This example was compiled with Microsoft Visual C++ 6.0 using the
// following command line:
//
// cl -GX Client.cpp
//
//-----------------------------------------------------------------------------
#include
#include
#import “..\surfer.exe“ no_namespace
using namespace std;
void AnimateColorMap(IColorMapPtr& pCM); // Forward declaration
//-----------------------------------------------------------------------------
void main()
{
// Initialize the system DLL‘s
HRESULT hr = CoInitialize(NULL);
if(FAILED(hr))
{
cout << “CoInitialize Failed: “ << hr << “\n\n“;
exit(1);
}
try
{
// Create an instance of the Application object
IApplicationPtr pApp(__uuidof(Application));
// Make the Application object visible
pApp->Visible = VARIANT_TRUE;
// Get the Documents collection
IDocumentsPtr pDocs = pApp->Documents;
// Add a new document to the Documents collection.
IPlotDocumentPtr pDoc = pDocs->Add(srfDocPlot);
// Get the Shapes collection from the document
IShapesPtr pShapes = pDoc->Shapes;
// Create a shaded relief map from the helens2.grd file. This is
// in a subdirectory off the application startup directory.
IMapframePtr pMF = pShapes->AddReliefMap(pApp->Path + “\\Samples\\Helens2.grd“);
// Get the shaded relief overlay from the map frame
IReliefMapPtr pRM = pMF->Overlays->Item(1L);
// Get the ColorMap used by the relief map
IColorMapPtr pCM = pRM->ColorMap;
// Animate the colors of the shaded relief map from the default black
// to red.
AnimateColorMap(pCM);
}
catch(_com_error e)
{
MessageBeep(0);
// Display a generic COM error message
cout << e.ErrorMessage() << “\n“;
// Display any application supplied information
if(e.Description().length())
cout << (const
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2597 2003-02-19 17:30 surfer8\0x0409.ini
文件 266240 2003-02-18 11:49 surfer8\AutoRun.exe
文件 53 2002-05-20 22:50 surfer8\AutoRun.inf
文件 3976 2002-06-04 14:42 surfer8\fixdown.htm
文件 16116 2002-05-20 22:50 surfer8\Fonts\gsdefsym.ttf
文件 5376 2002-05-20 22:50 surfer8\Fonts\GSDidger1.ttf
文件 18340 2002-05-20 22:50 surfer8\Fonts\GSGeol1.ttf
文件 6936 2002-05-20 22:50 surfer8\Fonts\GSMap1.ttf
文件 8408 2002-05-20 22:50 surfer8\Fonts\GSNArrow.ttf
文件 34208 2002-05-20 22:50 surfer8\Fonts\GSOandG1.ttf
文件 7524 2002-05-20 22:50 surfer8\Fonts\GSWBarb1.ttf
文件 25796 2002-05-20 22:50 surfer8\Fonts\GSWeath1.ttf
目录 0 2006-03-22 17:56 surfer8\Fonts
文件 1707856 2003-02-18 11:48 surfer8\instmsia.exe
文件 1821008 2003-02-18 11:48 surfer8\instmsiw.exe
文件 271872 2002-05-20 22:50 surfer8\program files\Golden Software\Surfer8\ACCUISR5.DLL
文件 6603 2003-02-27 15:18 surfer8\program files\Golden Software\Surfer8\attrib.ini
文件 36902 2003-02-18 11:49 surfer8\program files\Golden Software\Surfer8\expr.dll
文件 32808 2003-02-18 11:49 surfer8\program files\Golden Software\Surfer8\gfesym.dll
文件 32808 2003-02-18 11:49 surfer8\program files\Golden Software\Surfer8\gfettp.dll
文件 725050 2003-03-03 11:13 surfer8\program files\Golden Software\Surfer8\GridLib.dll
文件 24618 2003-02-18 11:49 surfer8\program files\Golden Software\Surfer8\gscach32.dll
文件 434230 2003-02-18 11:49 surfer8\program files\Golden Software\Surfer8\GsComLib3.dll
文件 32808 2002-05-20 22:50 surfer8\program files\Golden Software\Surfer8\gscomp.dll
文件 122920 2002-05-20 22:50 surfer8\program files\Golden Software\Surfer8\gsgeom.dll
文件 36904 2003-02-18 11:49 surfer8\program files\Golden Software\Surfer8\gsibit.dll
文件 36906 2003-02-18 11:49 surfer8\program files\Golden Software\Surfer8\gsibln32.dll
文件 41002 2003-02-18 11:49 surfer8\program files\Golden Software\Surfer8\gsibna32.dll
文件 69674 2003-02-18 11:49 surfer8\program files\Golden Software\Surfer8\gsidlg32.dll
文件 106538 2003-02-18 11:49 surfer8\program files\Golden Software\Surfer8\gsidxf32.dll
............此处省略225个文件信息
- 上一篇:USB3.0协议说明,中文版
- 下一篇:设计模式之禅第二版PDF
相关资源
- 7625928_epubBuilder破解版.rar
- NTLite+企业版64位_1.5.0.5855
- DAC8562配套资料
- Delphi数据库系统开发课程设计8个系统
- 楼月微信20150128已注册版.rar
- Visual Build Pro v8 8.2.0.1破解版
- stm32f10x中文参考手册231483
- Beyond Compare Pro v4.3.6.21095 x86
- C8051F系列单片机芯片手册英文版
- 广联达GTJ2018深思锁写锁工具
- ESP8266WIFI模块.zip
- hdf5-1.8.18
- 信号与系统_第三版_曾禹村_课后答案
- 软件suffer8.0
- 泰和安TX3816调试编程软件
- F28335实验例程
- bme280 温度湿度大气压 中文手册
- ESP8266WIFI模块学习资料
- tomcat8
- 戴尔14代服务器2008 R2驱动.zip
- MyBook2018.rar
- FANUC视觉B-83304CM_04.PDF
- EPLAN P8 (V1.8-V2.7破解工具64位
- 基于tm4c的ads1118
- 维盟LQ-05最新版固件18.05 刷机固件
- 考研计算机统考408历年真题及答案2
- YY1079-2008 心电监护仪
- ACS800说明书
- qq_39367074_10704385.zip
- reinforcement learning :an introduction 2018最
评论
共有 条评论