Dmitriy B. wrote:
But i known what i can declare nsStringContainer in Pascal as :

TnsAString = record
 v: : Pointer;
end;

TnsStringContainer = record
  StringExt : TnsAString;
  d1 : Pointer;
  d2 : Cardinal;
  d3 : Pointer;
end;

But this is a realy dirty-hack!!!!
What if the private field chanded?
What if the constructor nsStringContainer() {} will be implement some code?

This is exactly what I recommend. This c++ code is guaranteed to be forwards-compatible, so you can use it in pascal the same way without worries. Don't think of it as a dirty hack, think of it as an elegant solution ;)


--BDS
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to