Click here to Skip to main content
11,495,371 members (67,337 online)
Click here to Skip to main content
Add your own
alternative version

WebResourceProvider

, 23 Mar 2007 CPOL 259.4K 1.8K 143
A framework to allow public web services to be used as objects in your application.
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE 
BEGIN
    "resource.h\0"
END

2 TEXTINCLUDE 
BEGIN
    "#include ""afxres.h""\r\n"
    "\0"
END

3 TEXTINCLUDE 
BEGIN
    "#define _AFX_NO_SPLITTER_RESOURCES\r\n"
    "#define _AFX_NO_OLE_RESOURCES\r\n"
    "#define _AFX_NO_TRACKER_RESOURCES\r\n"
    "#define _AFX_NO_PROPERTY_RESOURCES\r\n"
    "\r\n"
    "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
    "#ifdef _WIN32\r\n"
    "LANGUAGE 9, 1\r\n"
    "#pragma code_page(1252)\r\n"
    "#endif //_WIN32\r\n"
    "#include ""res\\WebResourceProvider_Demo.rc2""  // non-Microsoft Visual C++ edited resources\r\n"
    "#include ""afxres.rc""         // Standard components\r\n"
    "#endif\r\n"
    "\0"
END

#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Icon
//

// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDR_MAINFRAME           ICON                    "res\\WebResourceProvider_Demo.ico"

/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_ABOUTBOX DIALOG  0, 0, 142, 57
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About Web Resource Provider Demo"
FONT 8, "Tahoma"
BEGIN
    ICON            IDR_MAINFRAME,IDC_STATIC,9,8,21,20
    LTEXT           "Web Resource Provider Demo\nby Ravi Bhavnani",IDC_STATIC,40,7,102,18,SS_NOPREFIX
    DEFPUSHBUTTON   "OK",IDOK,45,33,50,14,WS_GROUP
END

IDD_WEBRESOURCEPROVIDER_DEMO_DIALOG DIALOGEX 0, 0, 239, 100
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW
CAPTION "Web Resource Provider Demo"
FONT 8, "Tahoma", 0, 0, 0x1
BEGIN
    GROUPBOX        "Select a demo",IDC_STATIC,5,4,229,71
    PUSHBUTTON      "&Quote Provider",BUTTON_QUOTE_PROVIDER,15,18,100,14
    PUSHBUTTON      "&Weather Provider",BUTTON_WEATHER_PROVIDER,15,36,100,14
    PUSHBUTTON      "&ZIP Code Decoder",BUTTON_ZIPCODE_DECODER,15,54,100,14
    PUSHBUTTON      "&Translator",BUTTON_TRANSLATOR,124,18,100,14
    PUSHBUTTON      "&CP Top Posters Provider",BUTTON_CODEPROJECT_POSTERS_PROVIDER,124,36,100,14,WS_DISABLED
    PUSHBUTTON      "&Link Checker",BUTTON_LINK_CHECKER,124,54,100,14,WS_DISABLED
    PUSHBUTTON      "&Exit",BUTTON_EXIT,184,80,50,14
END

IDD_QUOTEPROVIDER DIALOGEX 0, 0, 203, 55
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW
CAPTION "Quote Provider"
FONT 8, "Tahoma", 0, 0, 0x1
BEGIN
    LTEXT           "Enter a ticker symbol:",-1,6,5,70,8
    EDITTEXT        EDIT_SYMBOL,79,3,68,13,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Get &Quote",BUTTON_GET_QUOTE,95,36,50,14
    LTEXT           "Delayed quote:",-1,6,21,50,8
    LTEXT           "Unknown",TEXT_QUOTE,61,21,142,8
    PUSHBUTTON      "&Exit",BUTTON_EXIT,149,36,50,14
END

IDD_WEATHERPROVIDER DIALOGEX 0, 0, 222, 113
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW
CAPTION "Weather Provider"
FONT 8, "Tahoma", 0, 0, 0x1
BEGIN
    LTEXT           "Enter a ZIP code:",IDC_STATIC,6,5,57,8
    EDITTEXT        EDIT_ZIP,67,3,68,13,ES_UPPERCASE | ES_AUTOHSCROLL
    GROUPBOX        "Current conditions",TEXT_LOCATION,5,22,212,68
    RTEXT           "Temperature:",IDC_STATIC,25,33,45,8
    RTEXT           "Relative Humidity:",IDC_STATIC,11,44,59,8
    RTEXT           "Wind:",IDC_STATIC,50,55,20,8
    RTEXT           "Sunrise:",IDC_STATIC,43,66,27,8
    RTEXT           "Sunset:",IDC_STATIC,44,77,26,8
    LTEXT           "Unknown",TEXT_TEMP,77,33,130,8
    LTEXT           "Unknown",TEXT_HUMIDITY,77,44,130,8
    LTEXT           "Unknown",TEXT_WIND,77,55,130,8
    LTEXT           "Unknown",TEXT_SUNRISE,77,66,130,8
    LTEXT           "Unknown",TEXT_SUNSET,77,77,130,8
    PUSHBUTTON      "Get &Weather",BUTTON_GET_WEATHER,112,95,50,14
    PUSHBUTTON      "&Exit",BUTTON_EXIT,166,95,50,14
END

IDD_ZIPDECODER DIALOGEX 0, 0, 222, 113
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW
CAPTION "ZIP Code Decoder"
FONT 8, "Tahoma", 0, 0, 0x1
BEGIN
    LTEXT           "Enter a ZIP code:",-1,6,5,57,8
    EDITTEXT        EDIT_ZIP,67,3,68,13,ES_UPPERCASE | ES_AUTOHSCROLL
    LTEXT           "Locations associated with this ZIP code:",TEXT_LOCATIONS,6,23,213,8
    LISTBOX         LIST_LOCATIONS,5,32,212,56,LBS_SORT | LBS_NOINTEGRALHEIGHT | LBS_NOSEL | WS_VSCROLL | WS_TABSTOP
    PUSHBUTTON      "&Decode ZIP",BUTTON_DECODE_ZIP,112,95,50,14
    PUSHBUTTON      "&Exit",BUTTON_EXIT,166,95,50,14
END

IDD_CP_POSTERS DIALOGEX 0, 0, 222, 140
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW
CAPTION "CodeProject Top Posters"
FONT 8, "Tahoma", 0, 0, 0x1
BEGIN
    LTEXT           "Show the top",IDC_STATIC,6,5,44,8
    EDITTEXT        EDIT_TOP,52,3,26,13,ES_UPPERCASE | ES_NUMBER
    LTEXT           "posters",IDC_STATIC,82,5,25,8
    LTEXT           "Top posters:",TEXT_POSTERS,6,19,213,8
    LISTBOX         LIST_POSTERS,5,28,212,88,LBS_NOINTEGRALHEIGHT | LBS_DISABLENOSCROLL | WS_VSCROLL | WS_TABSTOP
    PUSHBUTTON      "&Get Posters",BUTTON_GET_POSTERS,114,122,50,14
    PUSHBUTTON      "&Exit",BUTTON_EXIT,168,122,50,14
END

IDD_TRANSLATOR DIALOGEX 0, 0, 241, 213
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW
CAPTION "Translator"
FONT 8, "Tahoma", 0, 0, 0x1
BEGIN
    EDITTEXT        EDIT_ENGLISH,5,45,231,40,ES_MULTILINE | ES_AUTOVSCROLL | ES_WANTRETURN | WS_VSCROLL
    LTEXT           "Translation:",IDC_STATIC,5,88,39,8
    EDITTEXT        EDIT_TRANSLATION,5,97,231,40,ES_MULTILINE | ES_AUTOVSCROLL | ES_READONLY | WS_VSCROLL
    LTEXT           "Reverse translation:",IDC_STATIC,5,141,66,8
    EDITTEXT        EDIT_REVERSE_TRANSLATION,5,150,231,40,ES_MULTILINE | ES_AUTOVSCROLL | ES_READONLY | WS_VSCROLL
    PUSHBUTTON      "&Translate",BUTTON_TRANSLATE,133,195,50,14
    PUSHBUTTON      "&Exit",BUTTON_EXIT,187,195,50,14
    GROUPBOX        "Translate from English to",IDC_STATIC,5,3,228,28
    CONTROL         "&French",RADIO_FRENCH,"Button",BS_AUTORADIOBUTTON | WS_GROUP,18,16,38,10
    CONTROL         "&German",RADIO_GERMAN,"Button",BS_AUTORADIOBUTTON,70,16,41,10
    CONTROL         "&Italian",RADIO_ITALIAN,"Button",BS_AUTORADIOBUTTON,125,16,36,10
    CONTROL         "&Spanish",RADIO_SPANISH,"Button",BS_AUTORADIOBUTTON,175,16,41,10
    LTEXT           "English text:",IDC_STATIC,5,36,41,8
END

IDD_LINK_CHECKER DIALOGEX 0, 0, 241, 269
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW
CAPTION "Link Checker"
FONT 8, "Tahoma", 0, 0, 0x1
BEGIN
    LTEXT           "&URL to check:",IDC_STATIC,5,3,45,8
    EDITTEXT        EDIT_URL,5,13,229,14,ES_AUTOHSCROLL
    LTEXT           "Links detected:",IDC_STATIC,5,31,50,8
    LTEXT           "",TEXT_TOTAL_HREFS,56,31,25,8
    LISTBOX         LIST_HREFS,5,40,229,52,LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
    LTEXT           "Images detected:",IDC_STATIC,5,96,58,8
    LTEXT           "",TEXT_TOTAL_IMAGES,64,96,25,8
    LISTBOX         LIST_IMAGES,5,105,229,52,LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
    LTEXT           "Broken links:",IDC_STATIC,5,160,41,8
    LTEXT           "",TEXT_TOTAL_BROKEN,48,160,25,8
    LISTBOX         LIST_BROKEN_LINKS,5,169,229,52,LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
    LTEXT           "Checking:",IDC_STATIC,5,224,32,8
    CONTROL         "",TEXT_URL,"Static",SS_LEFTNOWORDWRAP | SS_CENTERIMAGE | SS_SUNKEN | WS_GROUP,39,224,196,10
    CONTROL         "Progress1",IDC_PROGBAR,"msctls_progress32",0x0,5,238,210,7
    LTEXT           "",TEXT_PROGRESS,217,236,22,8
    PUSHBUTTON      "&Get",BUTTON_GET_LINKS,5,250,50,14
    PUSHBUTTON      "&Check",BUTTON_CHECK_LINKS,59,250,50,14,WS_DISABLED
    PUSHBUTTON      "&Stop Check",BUTTON_STOP_CHECK,113,250,50,14,WS_DISABLED
    PUSHBUTTON      "&Exit",BUTTON_EXIT,187,250,50,14
END


/////////////////////////////////////////////////////////////////////////////
//
// Version
//

VS_VERSION_INFO VERSIONINFO
 FILEVERSION 1,0,0,1
 PRODUCTVERSION 1,0,0,1
 FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
 FILEFLAGS 0x1L
#else
 FILEFLAGS 0x0L
#endif
 FILEOS 0x4L
 FILETYPE 0x1L
 FILESUBTYPE 0x0L
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040904B0"
        BEGIN
            VALUE "FileDescription", "WebResourceProvider_Demo MFC Application"
            VALUE "FileVersion", "1, 0, 0, 1"
            VALUE "InternalName", "WebResourceProvider_Demo"
            VALUE "LegalCopyright", "Copyright (C) 2002"
            VALUE "OriginalFilename", "WebResourceProvider_Demo.EXE"
            VALUE "ProductName", "WebResourceProvider_Demo Application"
            VALUE "ProductVersion", "1, 0, 0, 1"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x409, 1200
    END
END


/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO 
BEGIN
    IDD_ABOUTBOX, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 135
        TOPMARGIN, 7
        BOTTOMMARGIN, 50
    END

    IDD_WEBRESOURCEPROVIDER_DEMO_DIALOG, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 232
        TOPMARGIN, 7
        BOTTOMMARGIN, 93
    END

    IDD_QUOTEPROVIDER, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 196
        TOPMARGIN, 7
        BOTTOMMARGIN, 48
    END

    IDD_WEATHERPROVIDER, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 215
        TOPMARGIN, 7
        BOTTOMMARGIN, 106
    END

    IDD_ZIPDECODER, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 215
        TOPMARGIN, 7
        BOTTOMMARGIN, 106
    END

    IDD_CP_POSTERS, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 215
        TOPMARGIN, 7
        BOTTOMMARGIN, 133
    END

    IDD_TRANSLATOR, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 234
        TOPMARGIN, 7
        BOTTOMMARGIN, 206
    END

    IDD_LINK_CHECKER, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 234
        TOPMARGIN, 7
        BOTTOMMARGIN, 262
    END
END
#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// String Table
//

STRINGTABLE 
BEGIN
    IDS_ABOUTBOX            "&About Web Resource Provider Demo..."
END

STRINGTABLE 
BEGIN
    AFX_IDS_APP_TITLE       "Web Resource Provider Demo"
END

#endif    // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
#define _AFX_NO_SPLITTER_RESOURCES
#define _AFX_NO_OLE_RESOURCES
#define _AFX_NO_TRACKER_RESOURCES
#define _AFX_NO_PROPERTY_RESOURCES

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE 9, 1
#pragma code_page(1252)
#endif //_WIN32
#include "res\WebResourceProvider_Demo.rc2"  // non-Microsoft Visual C++ edited resources
#include "afxres.rc"         // Standard components
#endif

/////////////////////////////////////////////////////////////////////////////
#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)

Share

About the Author

Ravi Bhavnani
Technical Lead
Canada Canada
Ravi Bhavnani is an ardent fan of Microsoft technologies who loves building Windows apps, especially PIMs, system utilities, and things that go bump on the Internet. During his career, Ravi has developed expert systems, desktop imaging apps, marketing automation software, EDA tools, a platform to help people find, analyze and understand information, trading software for institutional investors and advanced data visualization solutions. He currently works for a company that provides enterprise workforce management solutions to large clients.

His interests include the .NET framework, reasoning systems, financial analysis and algorithmic trading, NLP, HCI and UI design. Ravi holds a BS in Physics and Math and an MS in Computer Science and was a Microsoft MVP (C++ and C# in 2006 and 2007). He is also the co-inventor of 2 patents on software security and generating data visualization dashboards. His claim to fame is that he crafted CodeProject's "joke" forum post icon.

Ravi's biggest fear is that one day he might actually get a life, although the chances of that happening seem extremely remote.
Follow on   Google+   LinkedIn

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150520.1 | Last Updated 23 Mar 2007
Article Copyright 2002 by Ravi Bhavnani
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid