Recently I try to write a small program to
use a XPCOM without mozilla. I copy following DLL to a new pure
computer(Windows2000 professional):
xpcom.dll
mozreg.dll
nspr4.dll
plc4.dll
plds4.dll
regxpcom.dll
and regxpcom.exe. After  execute regxpcom.exe, I discoved this operation
would generate a file name components.reg,
I think it may record the register information about all components.
And my program is as following:
1.NS_InitXPCOM();
2.nsCOMPtr<nsIMycom>mycom;
3.mycom = do_CreateInstance("@tsj/mycom;1",&rv);
4.mycom = do_QueryInterface(mycom,&rv);
5.mycom->SetValue("this is the text i put into mycom");
6.NS_ShutdownXPCOM();
The problem is that the program can not work correct in the line of 5.




Reply via email to