Re: c++ question: no matching function call
- From: bijoy chandrasekharan <bijoy_mc yahoo co in>
- To: gtk-app-devel-list gnome org
- Subject: Re: c++ question: no matching function call
- Date: Fri, 9 Aug 2002 08:42:56 +0100 (BST)
hi jeff,
i think u can try something like,
calling the function from main.cpp with some
explicit cast as,
abc::somefunc((char*) "some text") ;
cheers,
bijoy.
abc.h:
class abc {
public:
abc (GtkWidget *mywidget);
// destructor etc
somefunction (char *something);
}
abc.cc
#include "abc.h"
// constructor destructor etc etc
abc::somefunction (char *something)
{
//stuff
}
main.cc
#include "abc.h"
//... then in a function or somethin
abc *mystuff = new abc;
mystuff->somefunction("sometext");
delete mystuff;
and i get:
main.cc:73: no matching function for call to
`abc::somefunction (char *&)'
note the function names and what not have been
changed to protect the innocent...err just typed
this up from my head just to show the relevant
parts...
thx
-j
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
=====
##
##
##### ## ## ###, S/W Engineer,
## # # ## # # Indserve Infotech Pvt. Ltd.
## # # ## # # http://www.kalculate.com
#### ###'
________________________________________________________________________
Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
visit http://in.autos.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]