Because i can't create the C++ classes nsStringContainer and
nsCStringContainer to pass it to
the NS_StringContainerInit function.

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?

Any ideas?

Best regards, Dmitriy

PS- .Sorry for my English.

"Benjamin D. Smedberg" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Dmitriy B. wrote:
> > Yes, i do just so.
> > The problem is that i can't invoke C++ constructor derectly from non
> > C++ languages. So the line of code
>
> Why don't you use the new C API directly, providing a pascal wrapper if
> needed?
>
> --BDS


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

Reply via email to