First of all, he wrote NS_LITERAL_STRING and not CSTRING at the end.
Please provide the code you're writing if you want help with the
errors...

If the rest of the XPCOM code works well, you're probably just missing
an #include here, to get the string symbols.

I think you want this:

#include "nsStringGlue.h"

/Håkan

shivditya wrote:
> document.cpp(1565) : error C2065: 'NS_LITERAL_CSTRING' : undeclared
> identifier
> Error executing cl.exe.
>
> Getko library is included in project, so it  does not give error  for
> nsAString
> Earlier also tried this way.  One  of  visitor  who suggested me  to go to
> developer site .
> I  have opened  it so many times  but  it does not solve problem  of
> assigning  new
> value  to nsAString
>
>
>
>
>
>
> Pavel S. Kovalev wrote:
> >
> > may be in this way:
> >
> > nsAString  var1 = NS_LITERAL_STRING( "Hello" );
> >
> > On 8/23/06, shivditya <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> How to assign value to nsAString  variable I tried  all under the  sun
> >> which
> >> I know.
> >>
> >> I  just willing to simple task   in C++
> >>
> >> nsAString  var1 = "Hello";
> >>
> >> as  I  am unable to assign values I am not able to use any of the APIs
> >> I  searched google for 2 hours.  Please let me know if  any one knows.
> >>
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/How-to-assign-value-to-nsAString-tf2152188.html#a5943626
> >> Sent from the Mozilla - XPCOM forum at Nabble.com.
> >>
> >> _______________________________________________
> >> dev-tech-xpcom mailing list
> >> [email protected]
> >> https://lists.mozilla.org/listinfo/dev-tech-xpcom
> >>
> >
> >
> >
> > --
> > With best regards,
> > Pavel S. Kovalev
> > mailto: [EMAIL PROTECTED]
> > ICQ: 2712239
> > _______________________________________________
> > dev-tech-xpcom mailing list
> > [email protected]
> > https://lists.mozilla.org/listinfo/dev-tech-xpcom
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/How-to-assign-value-to-nsAString-tf2152188.html#a5957729
> Sent from the Mozilla - XPCOM forum at Nabble.com.

_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to