#pragma once
#pragma pack(push, 8)
#include <comdef.h>
namespace MMAPLib {
//
// Forward references and typedefs
//
struct __declspec(uuid("d5f63c22-b3d3-11d0-b8f0-0020af344e0a"))
/* dispinterface */ _DMMap;
struct __declspec(uuid("d5f63c23-b3d3-11d0-b8f0-0020af344e0a"))
/* dispinterface */ _DMMapEvents;
struct /* coclass */ MMap;
//
// Smart pointer typedef declarations
//
_COM_SMARTPTR_TYPEDEF(_DMMap, __uuidof(IDispatch));
_COM_SMARTPTR_TYPEDEF(_DMMapEvents, __uuidof(IDispatch));
//
// Type library items
//
enum enumMoveMapMode
{
Stationary = 0,
Floating = 1
};
enum enumBevelStyle
{
BevelNone = 0,
BevelRaised = 1,
BevelLowered = 2
};
enum enumObjectSymbol
{
SymbolWaypoint = 0,
SymbolNavAid = 1,
SymbolAirport = 2,
SymbolAirplane = 3,
SymbolPicture = 4,
SymbolUserDefined = 5
};
enum enumObjectStyle
{
Transparent = 0,
Opaque = 1
};
enum enumLineStyle
{
Solid = 0,
Dash = 1,
Dot = 2,
DashDot = 3,
DashDotDot = 4
};
enum enumWaypointLineStyle
{
WaypointLineNone = 0,
WaypointLineSolid = 1,
WaypointLineDash = 2,
WaypointLineDot = 3,
WaypointLineDashDot = 4,
WaypointLineDashDotDot = 5
};
enum enumObjectFOVStyle
{
NoFOV = 0,
BoundedFOV = 1,
ShadedFOV = 2
};
enum enumGridStyle
{
NoGrid = 0,
HorizontalGrid = 1,
VerticalGrid = 2,
BothGrid = 3
};
enum enumCaptionOrientation
{
HorizontalCaption = 0,
VerticalLeftCaption = 1,
VerticalRightCaption = 2
};
struct __declspec(uuid("d5f63c22-b3d3-11d0-b8f0-0020af344e0a"))
_DMMap : IDispatch
{
//
// Property data
//
__declspec(property(get=GetMapNorth,put=PutMapNorth))
double MapNorth;
__declspec(property(get=GetMapSouth,put=PutMapSouth))
double MapSouth;
__declspec(property(get=GetMapEast,put=PutMapEast))
double MapEast;
__declspec(property(get=GetMapWest,put=PutMapWest))
double MapWest;
__declspec(property(get=GetMappingMode,put=PutMappingMode))
enum enumMoveMapMode MappingMode;
__declspec(property(get=GetMaps,put=PutMaps))
short Maps;
__declspec(property(get=GetMapID,put=PutMapID))
short MapID;
__declspec(property(get=GetCaption,put=PutCaption))
_bstr_t Caption;
__declspec(property(get=GetCaptionColor,put=PutCaptionColor))
OLE_COLOR CaptionColor;
__declspec(property(get=GetCaptionID,put=PutCaptionID))
short CaptionID;
__declspec(property(get=GetCaptionFontID,put=PutCaptionFontID))
short CaptionFontID;
__declspec(property(get=GetCaptions,put=PutCaptions))
short Captions;
__declspec(property(get=GetCaptionX,put=PutCaptionX))
double CaptionX;
__declspec(property(get=GetCaptionY,put=PutCaptionY))
double CaptionY;
__declspec(property(get=GetBackPicture,put=PutBackPicture))
PicturePtr BackPicture;
__declspec(property(get=GetBevelInner,put=PutBevelInner))
enum enumBevelStyle BevelInner;
__declspec(property(get=GetBevelOuter,put=PutBevelOuter))
enum enumBevelStyle BevelOuter;
__declspec(property(get=GetBevelWidth,put=PutBevelWidth))
short BevelWidth;
__declspec(property(get=GetBorderWidth,put=PutBorderWidth))
short BorderWidth;
__declspec(property(get=GetFontName,put=PutFontName))
_bstr_t FontName;
__declspec(property(get=GetFontSize,put=PutFontSize))
float FontSize;
__declspec(property(get=GetFontID,put=PutFontID))
short FontID;
__declspec(property(get=GetFont,put=PutFont))
FontPtr Font;
__declspec(property(get=GetFonts,put=PutFonts))
short Fonts;
__declspec(property(get=GetFontBold,put=PutFontBold))
VARIANT_BOOL FontBold;
__declspec(property(get=GetFontItalic,put=PutFontItalic))
VARIANT_BOOL FontItalic;
__declspec(property(get=GetFontStrikethru,put=PutFontStrikethru))
VARIANT_BOOL FontStrikethru;
__declspec(property(get=GetFontUnderline,put=PutFontUnderline))
VARIANT_BOOL FontUnderline;
__declspec(property(get=GetAutoRedraw,put=PutAutoRedraw))
VARIANT_BOOL AutoRedraw;
__declspec(property(get=GetMapPicture,put=PutMapPicture))
PicturePtr MapPicture;
__declspec(property(get=GetBackColor,put=PutBackColor))
OLE_COLOR BackColor;
__declspec(property(get=GetViewCenterX,put=PutViewCenterX))
double ViewCenterX;
__declspec(property(get=GetViewCenterY,put=PutViewCenterY))
double ViewCenterY;
__declspec(property(get=GetViewRadius,put=PutViewRadius))
double ViewRadius;
__declspec(property(get=GetViews,put=PutViews))
short Views;
__declspec(property(get=GetViewID,put=PutViewID))
short ViewID;
__declspec(property(get=GetObjects,put=PutObjects))
short Objects;
__declspec(property(get=GetObjectID,put=PutObjectID))
short ObjectID;
__declspec(property(get=GetObjectSymbol,put=PutObjectSymbol))
enum enumObjectSymbol ObjectSymbol;
__declspec(property(get=GetObjectColor,put=PutObjectColor))
OLE_COLOR ObjectColor;
__declspec(property(get=GetObjectOrientation,put=PutObjectOrientation))
double ObjectOrientation;
__declspec(property(get=GetObjectShape,put=PutObjectShape))
_bstr_t ObjectShape;
__declspec(property(get=GetObjectCaption,put=PutObjectCaption))
_bstr_t ObjectCaption;
__declspec(property(get=GetObjectScale,put=PutObjectScale))
double ObjectScale;
__declspec(property(get=GetWaypoints,put=PutWaypoints))
short Waypoints;
__declspec(property(get=GetWaypointStyle,put=PutWaypointStyle))
enum enumObjectStyle WaypointStyle;
__declspec(property(get=GetWaypointID,put=PutWaypointID))
short WaypointID;
__declspec(property(get=GetWaypointCaption,put=PutWaypointCaption))
_bstr_t WaypointCaption;
__declspec(property(get=GetWaypointOrientation,put=PutWaypointOrientation))
double WaypointOrientation;
__declspec(property(get=GetWaypointScale,put=PutWaypointScale))
double WaypointScale;
__declspec(property(get=GetWaypointSymbol,put=PutWaypointSymbol))
enum enumObjectSymbol WaypointSymbol;
__declspec(property(get=GetWaypointX,put=PutWaypointX))
double WaypointX;
__declspec(property(get=GetWaypointY,put=PutWaypointY))
double WaypointY;
__declspec(property(get=GetWaypointColor,put=PutWaypointColor))
OLE_COLOR WaypointColor;
__declspec(property(get=GetObjectStyle,put=PutObjectStyle))
enum enumObjectStyle ObjectStyle;
__declspec(property(get=GetObjectX,put=PutObjectX))
double ObjectX;
__declspec(property(get=GetObjectY,put=PutObjectY))
double ObjectY;
__declspec(property(get=GetWaypointLineColor,put=PutWaypointLineColor))
OLE_COLOR WaypointLineColor;
__declspec(property(get=GetWaypointLineStyle,put=PutWaypointLineStyle))
enum enumWaypointLineStyle WaypointLineStyle;
__declspec(property(get=GetObjectBreadTrail,put=PutObjectBreadTrail))
VARIANT_BOOL ObjectBreadTrail;
__declspec(property(get=GetObjectHeading,put=PutObjectHeading))
double ObjectHeading;
__declspec(property(get=GetObjectHeadingLineColor,put=PutObjectHeadingLineColor))
OLE_COLOR ObjectHeadingLineColor;
__declspec(property(get=GetObjectHeadingLineRange,put=PutObjectHeadingLineRange))
double ObjectHeadingLineRange;
__declspec(property(get=GetObjectHeadingLineWidth,put=PutObjectHeadingLineWidth))
short ObjectHeadingLineWidth;
__declspec(property(get=GetObjectHeadingShow,put=PutObjectHeadingShow))
VARIANT_BOOL ObjectHeadingShow;
__declspec(property(get=GetObjectFOVStyle,put=PutObjectFOVStyle))
enum enumObjectFOVStyle ObjectFOVStyle;
__declspec(property(get=GetObjectFOV,put=PutObjectFOV))
double ObjectFOV;
__declspec(property(get=GetObjectFOVLineColor,put=PutObjectFOVLineColor))
OLE_COLOR ObjectFOVLineColor;
__declspec(property(get=GetObjectFOVLineRange,put=PutObjectFOVLineRange))
double ObjectFOVLineRange;
__declspec(property(get=GetObjectFOVLineWidth,put=PutObjectFOVLineWidth))
short ObjectFOVLineWidth;
__declspec(property(get=GetObjectPicture,put=PutObjectPicture))
PicturePtr ObjectPicture;
__declspec(property(get=GetGridStyle,put=PutGridStyle))
enum enumGridStyle GridStyle;
__declspec(property(get=GetGridXDelta,put=PutGridXDelta))
double GridXDelta;
__declspec(property(get=GetGridYDelta,put=PutGridYDelta))
double GridYDelta;
__declspec(property(get=GetGridColor,put=PutGridColor))
OLE_COLOR GridColor;
__declspec(property(get=GetViewObjectID,put=PutViewObjectID))
short ViewObjectID;
__declspec(property(get=GetWaypointLineWidth,put=PutWaypointLineWidth))
short WaypointLineWidth;
__declspec(property(get=GetGridLineWidth,put=PutGridLineWidth))
short GridLineWidth;
__declspec(property(get=GetGridLineStyle,put=PutGridLineStyle))
enum enumLineStyle GridLineStyle;
__declspec(property(get=GetGridRefY,put=PutGridRefY))
double GridRefY;
__declspec(property(get=GetGridRefX,put=PutGridRefX))
double GridRefX;
__declspec(property(get=GetObjectZ,put=PutObjectZ))
double ObjectZ;
__declspec(property(get=GetWaypointZ,put=PutWaypointZ))
double WaypointZ;
__declspec(property(get=GetWaypointShape,put=PutWaypointShape))
_bstr_t WaypointShape;
__declspec(property(get=GetWaypointPicture,put=PutWaypointPicture))
PicturePtr WaypointPicture;
__declspec(property(get=GetZoomEnabled,put=PutZoomEnabled))
VARIANT_BOOL ZoomEnabled;
__declspec(property(get=GetPanEnabled,put=PutPanEnabled))
VARIANT_BOOL PanEnabled;
__declspec(property(get=GetCaptionOrientation,put=PutCaptionOrientation))
enum enumCaptionOrientation CaptionOrientation;
__declspec(property(get=GetOutline,put=PutOutline))
VARIANT_BOOL Outline;
__declspec(property(get=GetOutlineTitle,put=PutOutlineTitle))
_bstr_t OutlineTitle;
__declspec(property(get=GetOutlineColor,put=PutOutlineColor))
OLE_COLOR OutlineColor;
__declspec(property(get=GetOutlineWidth,put=PutOutlineWidth))
short OutlineWidth;
__declspec(property(get=GetOutlineAlign,put=PutOutlineAlign))
short OutlineAlign;
__declspec(property(get=GetEnabled,put=PutEnabled))
VARIANT_BOOL Enabled;
__declspec(property(get=GetSingleBuffer,put=PutSingleBuffer))
VARIANT_BOOL SingleBuffer;
__declspec(property(get=GetFocusOutline,put=PutFocusOutline))
VARIANT_BOOL FocusOutline;
__declspec(property(get=GetConfiguration,put=PutConfiguration))
_bstr_t Configuration;
//
// Wrapper methods for error-handling
//
// Methods:
HRESULT Redraw ( );
HRESULT RedrawStatic ( );
HRESULT ShowPropertyPage ( );
HRESULT SetWaypointData (
const _variant_t & array );
HRESULT SetPositionData (
short ObjectID,
double X,
double Y,
double Z );
HRESULT AboutBox ( );
// Properties:
double GetMapNorth ( );
void PutMapNorth ( double _val );
double GetMapSouth ( );
void PutMapSouth ( double _val );
double GetMapEast ( );
void PutMapEast ( double _val );
double GetMapWest ( );
void PutMapWest ( double _val );
enum enumMoveMapMode GetMappingMode ( );
void PutMappingMode ( enum enumMoveMapMode _val );
short GetMaps ( );
void PutMaps ( short _val );
short GetMapID ( );
void PutMapID ( short _val );
_bstr_t GetCaption ( );
void PutCaption ( _bstr_t _val );
OLE_COLOR GetCaptionColor ( );
void PutCaptionColor ( OLE_COLOR _val );
short GetCaptionID ( );
void PutCaptionID ( short _val );
short GetCaptionFontID ( );
void PutCaptionFontID ( short _val );
short GetCaptions ( );
void PutCaptions ( short _val );
double GetCaptionX ( );
void PutCaptionX ( double _val );
double GetCaptionY ( );
void PutCaptionY ( double _val );
PicturePtr GetBackPicture ( );
void PutBackPicture ( struct Picture * _val );
enum enumBevelStyle GetBevelInner ( );
void PutBevelInner ( enum enumBevelStyle _val );
enum enumBevelStyle GetBevelOuter ( );
void PutBevelOuter ( enum enumBevelStyle _val );
short GetBevelWidth ( );
void PutBevelWidth ( short _val );
short GetBorderWidth ( );
void PutBorderWidth ( short _val );
_bstr_t GetFontName ( );
void PutFontName ( _bstr_t _val );
float GetFontSize ( );
void PutFontSize ( float _val );
short GetFontID ( );
void PutFontID ( short _val );
FontPtr GetFont ( );
void PutFont ( struct Font * _val );
short GetFonts ( );
void PutFonts ( short _val );
VARIANT_BOOL GetFontBold ( );
void PutFontBold ( VARIANT_BOOL _val );
VARIANT_BOOL GetFontItalic ( );
void PutFontItalic ( VARIANT_BOOL _val );
VARIANT_BOOL GetFontStrikethru ( );
void PutFontStrikethru ( VARIANT_BOOL _val );
VARIANT_BOOL GetFontUnderline ( );
void PutFontUnderline ( VARIANT_BOOL _val );
VARIANT_BOOL GetAutoRedraw ( );
void PutAutoRedraw ( VARIANT_BOOL _val );
PicturePtr GetMapPicture ( );
void PutMapPicture ( struct Picture * _val );
OLE_COLOR GetBackColor ( );
void PutBackColor ( OLE_COLOR _val );
double GetViewCenterX ( );
void PutViewCenterX ( double _val );
double GetViewCenterY ( );
void PutViewCenterY ( double _val );
double GetViewRadius ( );
void PutViewRadius ( double _val );
short GetViews ( );
void PutViews ( short _val );
short GetViewID ( );
void PutViewID ( short _val );
short GetObjects ( );
void PutObjects ( short _val );
short GetObjectID ( );
void PutObjectID ( short _val );
enum enumObjectSymbol GetObjectSymbol ( );
void PutObjectSymbol ( enum enumObjectSymbol _val );
OLE_COLOR GetObjectColor ( );
void PutObjectColor ( OLE_COLOR _val );
double GetObjectOrientation ( );
void PutObjectOrientation ( double _val );
_bstr_t GetObjectShape ( );
void PutObjectShape ( _bstr_t _val );
_bstr_t GetObjectCaption ( );
void PutObjectCaption ( _bstr_t _val );
double GetObjectScale ( );
void PutObjectScale ( double _val );
short GetWaypoints ( );
void PutWaypoints ( short _val );
enum enumObjectStyle GetWaypointStyle ( );
void PutWaypointStyle ( enum enumObjectStyle _val );
short GetWaypointID ( );
void PutWaypointID ( short _val );
_bstr_t GetWaypointCaption ( );
void PutWaypointCaption ( _bstr_t _val );
double GetWaypointOrientation ( );
void PutWaypointOrientation ( double _val );
double GetWaypointScale ( );
void PutWaypointScale ( double _val );
enum enumObjectSymbol GetWaypointSymbol ( );
void PutWaypointSymbol ( enum enumObjectSymbol _val );
double GetWaypointX ( );
void PutWaypointX ( double _val );
double GetWaypointY ( );
void PutWaypointY ( double _val );
OLE_COLOR GetWaypointColor ( );
void PutWaypointColor ( OLE_COLOR _val );
enum enumObjectStyle GetObjectStyle ( );
void PutObjectStyle ( enum enumObjectStyle _val );
double GetObjectX ( );
void PutObjectX ( double _val );
double GetObjectY ( );
void PutObjectY ( double _val );
OLE_COLOR GetWaypointLineColor ( );
void PutWaypointLineColor ( OLE_COLOR _val );
enum enumWaypointLineStyle GetWaypointLineStyle ( );
void PutWaypointLineStyle ( enum enumWaypointLineStyle _val );
VARIANT_BOOL GetObjectBreadTrail ( );
void PutObjectBreadTrail ( VARIANT_BOOL _val );
double GetObjectHeading ( );
void PutObjectHeading ( double _val );
OLE_COLOR GetObjectHeadingLineColor ( );
void PutObjectHeadingLineColor ( OLE_COLOR _val );
double GetObjectHeadingLineRange ( );
void PutObjectHeadingLineRange ( double _val );
short GetObjectHeadingLineWidth ( );
void PutObjectHeadingLineWidth ( short _val );
VARIANT_BOOL GetObjectHeadingShow ( );
void PutObjectHeadingShow ( VARIANT_BOOL _val );
enum enumObjectFOVStyle GetObjectFOVStyle ( );
void PutObjectFOVStyle ( enum enumObjectFOVStyle _val );
double GetObjectFOV ( );
void PutObjectFOV ( double _val );
OLE_COLOR GetObjectFOVLineColor ( );
void PutObjectFOVLineColor ( OLE_COLOR _val );
double GetObjectFOVLineRange ( );
void PutObjectFOVLineRange ( double _val );
short GetObjectFOVLineWidth ( );
void PutObjectFOVLineWidth ( short _val );
PicturePtr GetObjectPicture ( );
void PutObjectPicture ( struct Picture * _val );
enum enumGridStyle GetGridStyle ( );
void PutGridStyle ( enum enumGridStyle _val );
double GetGridXDelta ( );
void PutGridXDelta ( double _val );
double GetGridYDelta ( );
void PutGridYDelta ( double _val );
OLE_COLOR GetGridColor ( );
void PutGridColor ( OLE_COLOR _val );
short GetViewObjectID ( );
void PutViewObjectID ( short _val );
short GetWaypointLineWidth ( );
void PutWaypointLineWidth ( short _val );
short GetGridLineWidth ( );
void PutGridLineWidth ( short _val );
enum enumLineStyle GetGridLineStyle ( );
void PutGridLineStyle ( enum enumLineStyle _val );
double GetGridRefY ( );
void PutGridRefY ( double _val );
double GetGridRefX ( );
void PutGridRefX ( double _val );
double GetObjectZ ( );
void PutObjectZ ( double _val );
double GetWaypointZ ( );
void PutWaypointZ ( double _val );
_bstr_t GetWaypointShape ( );
void PutWaypointShape ( _bstr_t _val );
PicturePtr GetWaypointPicture ( );
void PutWaypointPicture ( struct Picture * _val );
VARIANT_BOOL GetZoomEnabled ( );
void PutZoomEnabled ( VARIANT_BOOL _val );
VARIANT_BOOL GetPanEnabled ( );
void PutPanEnabled ( VARIANT_BOOL _val );
enum enumCaptionOrientation GetCaptionOrientation ( );
void PutCaptionOrientation ( enum enumCaptionOrientation _val );
VARIANT_BOOL GetOutline ( );
void PutOutline ( VARIANT_BOOL _val );
_bstr_t GetOutlineTitle ( );
void PutOutlineTitle ( _bstr_t _val );
OLE_COLOR GetOutlineColor ( );
void PutOutlineColor ( OLE_COLOR _val );
short GetOutlineWidth ( );
void PutOutlineWidth ( short _val );
short GetOutlineAlign ( );
void PutOutlineAlign ( short _val );
VARIANT_BOOL GetEnabled ( );
void PutEnabled ( VARIANT_BOOL _val );
VARIANT_BOOL GetSingleBuffer ( );
void PutSingleBuffer ( VARIANT_BOOL _val );
VARIANT_BOOL GetFocusOutline ( );
void PutFocusOutline ( VARIANT_BOOL _val );
_bstr_t GetConfiguration ( );
void PutConfiguration ( _bstr_t _val );
};
struct __declspec(uuid("d5f63c23-b3d3-11d0-b8f0-0020af344e0a"))
_DMMapEvents : IDispatch
{
//
// Wrapper methods for error-handling
//
// Methods:
HRESULT MovePosition (
double X,
double Y );
HRESULT Click ( );
HRESULT DblClick ( );
HRESULT KeyDown (
short * KeyCode,
short Shift );
HRESULT KeyPress (
short * KeyAscii );
HRESULT KeyUp (
short * KeyCode,
short Shift );
HRESULT MouseDown (
short Button,
short Shift,
OLE_XPOS_PIXELS X,
OLE_YPOS_PIXELS Y );
HRESULT MouseMove (
short Button,
short Shift,
OLE_XPOS_PIXELS X,
OLE_YPOS_PIXELS Y );
HRESULT MouseUp (
short Button,
short Shift,
OLE_XPOS_PIXELS X,
OLE_YPOS_PIXELS Y );
HRESULT ClickPosition (
short ObjectID,
double X,
double Y );
};
struct __declspec(uuid("d5f63c24-b3d3-11d0-b8f0-0020af344e0a"))
MMap;
// [ default ] dispinterface _DMMap
// [ default, source ] dispinterface _DMMapEvents
//
// Named GUID constants initializations
//
extern "C" const GUID __declspec(selectany) LIBID_MMAPLib =
{0xd5f63c21,0xb3d3,0x11d0,{0xb8,0xf0,0x00,0x20,0xaf,0x34,0x4e,0x0a}};
extern "C" const GUID __declspec(selectany) DIID__DMMap =
{0xd5f63c22,0xb3d3,0x11d0,{0xb8,0xf0,0x00,0x20,0xaf,0x34,0x4e,0x0a}};
extern "C" const GUID __declspec(selectany) DIID__DMMapEvents =
{0xd5f63c23,0xb3d3,0x11d0,{0xb8,0xf0,0x00,0x20,0xaf,0x34,0x4e,0x0a}};
extern "C" const GUID __declspec(selectany) CLSID_MMap =
{0xd5f63c24,0xb3d3,0x11d0,{0xb8,0xf0,0x00,0x20,0xaf,0x34,0x4e,0x0a}};
//
// Wrapper method implementations
//
#include "MMap.tli"
} // namespace MMAPLib
#pragma pack(pop)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
/************************************************/
This is my image.cpp file
/************************************************/
//
#import "c:\WINNT\system32\MMap.ocx" \
named_guids LIBID_MMAPLib,DIID_DMMap,DIID_DMMapEvents,CLSID_MMap \
no_namespace MMAPLib
#include "stdafx.h"
#include "image.h"
#include <windows.h>
#include <winerror.h>
#include <stdio.h>
#include <iostream>
#include <assert.h>
#include <cassert>
void main()
{
CoInitialize( NULL);
_DMMap* pMP = 0;
HRESULT hr = CoCreateInstance( __uuidof(MMap),//class identifier of the object
NULL,
CLSCTX_ALL,// context for running executable code
DIID__DMMap,//reference to the identifier of the inerface
reinterpret_cast <void**>(&pMP));//interface pointer requested in riid
assert(SUCCEEDED(hr));
hr = pMP->GetMapID();
hr = pMP->GetMapNorth();
hr = pMP->GetMapEast();
hr = pMP->GetMapWest();
hr = pMP->GetMapSouth();
assert(SUCCEEDED(hr));
printf("reading the activeX control file ");
pMP ->Release();
CoUninitialize();
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
/******************************************************/
This is my image.h file
/*********************************************************/
#include <windows.h>
#include <iostream.h>
class _DMMap
{
public:
_DMMap();
double GetMapID();
void PutMapID(double);
double GetMapEast();
void PutMapEast(double);
double GetMapWest();
void PutMapWest(double);
double GetMapNorth();
void PutMapNorth(double);
double GetMapSouth();
void PutMapSouth(double);
double Release();
~_DMMap();
};
_DMMap DIID__DMMap;
class _DMMapEvents
{
public:
HRESULT MovePosition ( double X,double Y );
HRESULT Click ( );
HRESULT DblClick ( );
};
_DMMapEvents DIID__DMMapEvents;