Click here to Skip to main content
Click here to Skip to main content
 
Add your own
alternative version

Morse code. Some examples of how to produce sounds.

, 3 Apr 2001
Several classes demonstrating how to fill audio buffer and how to produce sound using waveOut* API
// MorseDlg.h : header file
//
// Part of "Morse" project. (C) Alexander Fedorov, 2000. lamer2000@hotmail.com

#if !defined(AFX_MorseDLG_H__3BAEFE28_D196_11D3_8419_A821536E3359__INCLUDED_)
#define AFX_MorseDLG_H__3BAEFE28_D196_11D3_8419_A821536E3359__INCLUDED_

#include "MorseParser.h"        // Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "MorseParser.h"

/////////////////////////////////////////////////////////////////////////////
// CMorseDlg dialog

class CMorseDlg : public CDialog
{
// Construction
public:
        CMorseParser m_parser;
        CMorseDlg(CWnd* pParent = NULL);        // standard constructor

// Dialog Data
        //{{AFX_DATA(CMorseDlg)
        enum { IDD = IDD_Morse_DIALOG };
	CString	m_strText;
        CString m_strMorse;
	CString	m_strDelay;
	CString	m_strLong;
	CString	m_strShort;
	CString	m_strFreq;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
        //{{AFX_VIRTUAL(CMorseDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
        //{{AFX_MSG(CMorseDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	virtual void OnOK();
	afx_msg void OnButton1();
	//}}AFX_MSG
        afx_msg LRESULT OnMorseWorkFinished(WPARAM w, LPARAM l);
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MorseDLG_H__3BAEFE28_D196_11D3_8419_A821536E3359__INCLUDED_)

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

Share

About the Author

Alexander Fedorov
Web Developer SEO
Ukraine Ukraine
AlexF's Blog in Russian
Owner Spy competition analysis
Rating Burner Rating of blogs

| Advertise | Privacy | Mobile
Web02 | 2.8.141015.1 | Last Updated 4 Apr 2001
Article Copyright 2001 by Alexander Fedorov
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid