Original Post
Hi all!
I''ve written my own String struct with constructor, destructor, operators, ... using a simple char array but I''ve got a problem passing the String to a function:
void test(String xxx)
{
// ....
// ....
} // <- Destructor Call with deleting my char-Array
void main()
{
String myString;
test(myString);
// Now the charecter array of my string is deleted because of
//destructor call in void test()
}
It works with with passing a pointer (of course, because there''s no call to the dextructor) but is there any other way??
Thanks a lot
Corrail
corrail@gmx.at
ICQ#59184081