A
Ankit
Hello All,
I have code like this:
Class2 Class1::func (char* response)
{
printf( response);
Class2* d_ = new Class2;
d_->func (response);
//print response within Class2->func prints the response
return d_;
}
Snippet of Class2:
Class2 {
//constructor & destructor
void func(char*);
};
Above code works perfectly well on Windows. But not working in
Solaris
x86 v10g. with CC compiler 12with patch.
On solaris if I try to print the response within Class2, it doesnt
prints the content of char* passed as input parameter.
I have code like this:
Class2 Class1::func (char* response)
{
printf( response);
Class2* d_ = new Class2;
d_->func (response);
//print response within Class2->func prints the response
return d_;
}
Snippet of Class2:
Class2 {
//constructor & destructor
void func(char*);
};
Above code works perfectly well on Windows. But not working in
Solaris
x86 v10g. with CC compiler 12with patch.
On solaris if I try to print the response within Class2, it doesnt
prints the content of char* passed as input parameter.