Re: How to PR_LoadLibray

Christian Biesinger <[email protected]>
Newsgroups gmane.comp.mozilla.devel.nspr
Message-ID <[email protected]>
shellon wrote:
> when I run the program,  the errCode is a -8108273..., How can I load
> the library correctly? Could you give me a code snippit? Appriciate
> your help!

What happens if you initialize your error variable? Something like:
	PRLibrary* lib = PR_LoadLibrary("USER32.dll");
	PRErrorCode errCode = 0;
	if(lib == NULL)
		errCode = PR_GetError();
	*_retval = errCode;
	return NS_OK;

_______________________________________________
dev-tech-nspr mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-nspr
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.