Re: nsIStringInputStream in C++

2005-12-20 Thread Christian Biesinger
zen wrote: is my declaration proper? how can i create an instance of the nsIStringInputStream? compiler complaints 'do_CreateInstance' is undeclared identifier. Then you need to include the right header. That's nsComponentManagerUtils.h in this case. Note that you can't use AdoptData for a

Re: nsIStringInputStream in C++

2005-12-18 Thread zen
zen wrote: Hi all, How can I use the nsIStringInputStream in C++? Below is my code: // nsCOMPtr newPostStream; char* aStream = "&key=123"; newPostStream->AdoptData(aStream, strlen(aStream)); //*** I'm not sure where my mistake was & I always get "the memory

nsIStringInputStream in C++

2005-12-18 Thread zen
Hi all, How can I use the nsIStringInputStream in C++? Below is my code: // nsCOMPtr newPostStream; char* aStream = "&key=123"; newPostStream->AdoptData(aStream, strlen(aStream)); //*** I'm not sure where my mistake was & I always get "the memory could no