Click here to Skip to main content
15,896,207 members
Articles / Programming Languages / C++

Type-safe Callbacks in C++

Rate me:
Please Sign up or sign in to vote.
4.71/5 (47 votes)
13 Feb 2008CPOL8 min read 203.8K   4.9K   130  
Demonstrates how to use type-safe callbacks in C++
// Test.h

#if !defined(TEST_H)
#define TEST_H

#include "callback.h"


class cTest  
{
public:
	void StartDemo();

private:
	int  SortByAlphabet(char* s8_Word1, char* s8_Word2);
	int  SortByLength  (char* s8_Word1, char* s8_Word2);
};

#endif // !defined(TEST_H)

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
Software Developer (Senior) ElmüSoft
Chile Chile
Software Engineer since 40 years.

Comments and Discussions