Re: Signal with C++



On Mon, 10 Jan 2000, Sergio Kriz wrote:

> Why this program cause errors at signal connect ?

Umm, your later comment indicates that this won't even compile.
Here is why.

> #include <stdio.h>
> #include <gtk/gtk.h>
> 
> class CWin
> {
> public:
> 
> 	Cwin(int *prargc, char *** prargv)

The C++ language is case-sensitive in its treatment of identifiers.

This function looks like it wants to be a constructor for the class
CWin, but it is incorrectly named, because "Cwin" is a completely
different identifier from "CWin".



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]