Re: [Harbour] C++ - How to pass self as an argument to a function from C++ class

2010-01-18 Thread Pritpal Bedi
Hello Przemysław Czerpak wrote: > >> What is the syntax to pass self as pointer to a function >> from withing C++ class. > > 'this' > Damm. It goesin front of eyes in numerous examples, and I... Thank you. Regards Pritpal Bedi -- View this message in context: http://old.nabble.com/C%2B

Re: [Harbour] C++ - How to pass self as an argument to a function from C++ class

2010-01-18 Thread Przemysław Czerpak
On Mon, 18 Jan 2010, Pritpal Bedi wrote: Hi, > What is the syntax to pass self as pointer to a function > from withing C++ class. 'this' best regards, Przemek ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://li

[Harbour] C++ - How to pass self as an argument to a function from C++ class

2010-01-18 Thread Pritpal Bedi
Hi All What is the syntax to pass self as pointer to a function from withing C++ class. void some_c_function( PHB_ITEM a, SomeType * some ) { } MyClass::MyClass() { return some_c_function( hb_param( 1, HB_IT_ANY ), ( MyClass * ) MyClass ); } Regards Pritpal Bedi -- View this message in c