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

Gecko! Embedded C++ scripting for your applications

Rate me:
Please Sign up or sign in to vote.
4.93/5 (23 votes)
31 Aug 20036 min read 241.1K   2.6K   102  
Embed a C++ compiler in your project, use C++ as a compiled "scripting" language!
// GeckoTestDlg.h : header file
//

#pragma once

#include "MyGecko.h"
#include "afxcmn.h"
#include "afxwin.h"


// CGeckoTestDlg dialog
class CGeckoTestDlg : public CDialog, protected CGecko
{
// Construction
public:
	CGeckoTestDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_GECKOTEST_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support

	virtual void OnCommandStart(LPCSTR lpszCmdLine);
	virtual void OnCommandSTDOUT(LPCSTR lpszOutput);
	virtual void OnCommandSTDERR(LPCSTR lpszOutput);
	//virtual void OnCommandEnd(bool bSuccessful);

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()

public:
	afx_msg void OnBnClickedOk();
	afx_msg void OnBnClickedCancel();
	afx_msg void OnBnClickedCancel3();
	afx_msg void OnBnClickedCancel2();

	CStatic m_stcBitmap;

	void AppendOutput(LPCSTR szText);
};

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer
France France
Bouh

Comments and Discussions