Hi,
Thanx for your prompt help.
> > This application fails for the Netscape XPCOM.DLL
> > with the Error =>
> > "The apitest.exe file is linked to missing export
> > XPCOM.DLL:NS_InitXPCOM2."
I have used the XPCOM.DLL that is installed by Netscape 6.2.
After taking a Dump using dumpbin /export I can view that the =>
NS_InitXPCOM2 is exported as follows :
=================
O/P of => Dumpbin /exports
1619 652 0000481F
?NS_InitXPCOM2@@YAIPAPAVnsIServiceManager@@PAVnsIFile@@PAVnsIDirectoryServiceProvider@@@Z
=================
As well as I tried using LoadLibrary for XPCOM.DLL and queried for
NS_InitXPCOM2 this was also successful.
Can you please shed some more Light on the failure of NS_InitXPCOM2,
for Netscape's XPCOM DLL.
One more question I face is that can we avoid using the SmartPointer
(nsCOMPtr)? If yes, please let me know how? with a sample if possible.
Thankx,
Nitin
David Bradley <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
> Nitin wrote:
> > I have build Mozilla successfully and tried the following application
> > on the XPCOM.DLL of the mozilla build.
> >
>
> Normally if things hadn't built properly, you'd get an error at link
> time. Since you're getting an error at runtime, this suggest maybe
> you're picking up an old copy of XPCOM.DLL. See if you are picking up
> the right XPCOM.DLL, and then also dump the export symbols using a tool
> like dumpbin (comes with VC++).
>
> David B.