資源簡介
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:?“?<??????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?<
??????//?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
評論
共有 條評論