Click here to Skip to main content
15,880,891 members
Articles / Programming Languages / C#

Windows Development in C++, COM API Clients

Rate me:
Please Sign up or sign in to vote.
4.98/5 (31 votes)
3 Jan 2015CPOL7 min read 62.7K   1.6K   106  
Using the Facade Pattern to simplify development with COM based APIs
��//Microsoft Visual C++ generated resource script.

//

#include "resource.h"



#define APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////

//

// Generated from the TEXTINCLUDE 2 resource.

//

#ifndef APSTUDIO_INVOKED

#include "targetver.h"

#endif

#define APSTUDIO_HIDDEN_SYMBOLS

#include "windows.h"

#undef APSTUDIO_HIDDEN_SYMBOLS

/////////////////////////////////////////////////////////////////////////////

#undef APSTUDIO_READONLY_SYMBOLS



#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)

LANGUAGE 9, 1



/////////////////////////////////////////////////////////////////////////////

//

// Icon

//



// Icon with lowest ID value placed first to ensure application icon

// remains consistent on all systems.



IDI_TEXTEDITEXAMPLE       ICON         "TextEditExample.ico"

IDI_SMALL               ICON         "small.ico"



/////////////////////////////////////////////////////////////////////////////

//

// Menu

//



IDC_TEXTEDITEXAMPLE MENU

BEGIN

    POPUP "&File"

    BEGIN

        MENUITEM "E&xit",                IDM_EXIT

    END

    POPUP "&Help"

    BEGIN

        MENUITEM "&About ...",           IDM_ABOUT

    END

END





/////////////////////////////////////////////////////////////////////////////

//

// Accelerator

//



IDC_TEXTEDITEXAMPLE ACCELERATORS

BEGIN

    "?",            IDM_ABOUT,              ASCII,  ALT

    "/",            IDM_ABOUT,              ASCII,  ALT

END





/////////////////////////////////////////////////////////////////////////////

//

// Dialog

//



IDD_ABOUTBOX DIALOGEX 0, 0, 170, 62

STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU

CAPTION "About TextEditExample"

FONT 8, "MS Shell Dlg"

BEGIN

    ICON            IDR_MAINFRAME,IDC_STATIC,14,14,21,20

    LTEXT           "TextEditExample, Version 1.0",IDC_STATIC,42,14,114,8,SS_NOPREFIX

    LTEXT           "Copyright (C) 2012",IDC_STATIC,42,26,114,8

    DEFPUSHBUTTON   "OK",IDOK,113,41,50,14,WS_GROUP

END



/////////////////////////////////////////////////////////////////////////////

//

// DESIGNINFO

//



#ifdef APSTUDIO_INVOKED

GUIDELINES DESIGNINFO

BEGIN

    IDD_ABOUTBOX, DIALOG

    BEGIN

        LEFTMARGIN, 7

        RIGHTMARGIN, 163

        TOPMARGIN, 7

        BOTTOMMARGIN, 55

    END

END

#endif    // APSTUDIO_INVOKED



#ifdef APSTUDIO_INVOKED

/////////////////////////////////////////////////////////////////////////////

//

// TEXTINCLUDE

//

1 TEXTINCLUDE

BEGIN

    "resource.h\0"

END



2 TEXTINCLUDE

BEGIN

    "#ifndef APSTUDIO_INVOKED\r\n"

    "#include ""targetver.h""\r\n"

    "#endif\r\n"

    "#define APSTUDIO_HIDDEN_SYMBOLS\r\n"

    "#include ""windows.h""\r\n"

    "#undef APSTUDIO_HIDDEN_SYMBOLS\r\n"

    "\0"

END



3 TEXTINCLUDE

BEGIN

    "\r\n"

    "\0"

END



#endif    // APSTUDIO_INVOKED



/////////////////////////////////////////////////////////////////////////////

//

// String Table

//



STRINGTABLE

BEGIN

   IDC_TEXTEDITEXAMPLE   "TEXTEDITEXAMPLE"

   IDS_APP_TITLE       "TextEditExample"

END



#endif

/////////////////////////////////////////////////////////////////////////////







#ifndef APSTUDIO_INVOKED

/////////////////////////////////////////////////////////////////////////////

//

// Generated from the TEXTINCLUDE 3 resource.

//



/////////////////////////////////////////////////////////////////////////////

#endif    // not APSTUDIO_INVOKED

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect Sea Surveillance AS
Norway Norway
Chief Architect - Sea Surveillance AS.

Specializing in integrated operations and high performance computing solutions.

I’ve been fooling around with computers since the early eighties, I’ve even done work on CP/M and MP/M.

Wrote my first “real” program on a BBC micro model B based on a series in a magazine at that time. It was fun and I got hooked on this thing called programming ...

A few Highlights:

  • High performance application server development
  • Model Driven Architecture and Code generators
  • Real-Time Distributed Solutions
  • C, C++, C#, Java, TSQL, PL/SQL, Delphi, ActionScript, Perl, Rexx
  • Microsoft SQL Server, Oracle RDBMS, IBM DB2, PostGreSQL
  • AMQP, Apache qpid, RabbitMQ, Microsoft Message Queuing, IBM WebSphereMQ, Oracle TuxidoMQ
  • Oracle WebLogic, IBM WebSphere
  • Corba, COM, DCE, WCF
  • AspenTech InfoPlus.21(IP21), OsiSoft PI


More information about what I do for a living can be found at: harlinn.com or LinkedIn

You can contact me at espen@harlinn.no

Comments and Discussions