Click here to Skip to main content
15,895,667 members
Articles / Programming Languages / C++/CLI

Using Pragmas to Create a Proxy DLL

Rate me:
Please Sign up or sign in to vote.
4.28/5 (12 votes)
20 Mar 2007CPOL4 min read 81.8K   1.3K   39  
An article on how to use MSVC pragmas to create a function forwarding DLL.
//~ $Id$
#ifndef getreso_h
#define getreso_h
#include <wx/wx.h>
#include <wx/filename.h>
#include <wx/listctrl.h>
#include <wx/fs_mem.h>
#include <wx/xrc/xmlres.h>
#include <wx/xrc/xh_all.h>
#include <wx/dialog.h>

class CDlgGetReso:public wxDialog
{
    public:
    //! Default constructor.
    CDlgGetReso( );

    //! Handle close events. Both kinds.
    template <class eventClassType>
        void OnClose( eventClassType & WXUNUSED(evt) );

    //! Handle dialog init.
    void OnInitDlg( wxInitDialogEvent & WXUNUSED(evt) );

    //! Handle save GFX.
    void OnSaveGFX( wxCommandEvent &WXUNUSED(evt) );

    //! Do some preparations.
    void PrepareDlg();

    //! Event table.
    DECLARE_EVENT_TABLE()
};

class CAppGetReso:public wxApp
{
    public:
    //! \brief App init routine.
    bool OnInit();
    //! \brief Runs the application.
    int OnRun();
};
#endif

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
Web Developer
Finland Finland
Started coding with Commodore VIC-20, and still doing it. When time permits...

Comments and Discussions