I follow the instructions on the link you gave me, and also in all the
tutorials I have found, but I can't compile it. VC 2005 gives me these
errors (no matter what I do, even with the examples I downloaded):
   Creating library C:\Documents and Settings\David\Mis
documentos\Visual Studio 2005\Projects\nswinprint\Debug\nswinprint.lib
and object C:\Documents and Settings\David\Mis documentos\Visual Studio
2005\Projects\nswinprint\Debug\nswinprint.exp
nswinprint.obj : error LNK2019: unresolved external symbol
__imp__NS_CStringGetData referenced in function "public: unsigned int
__thiscall nsACString::Length(void)const " ([EMAIL PROTECTED]@@QBEIXZ)
nswinprint.obj : error LNK2019: unresolved external symbol
__imp__NS_CStringContainerInit referenced in function "public:
__thiscall nsEmbedCString::nsEmbedCString(void)"
(??0nsEmbedCString@@[EMAIL PROTECTED])
nswinprint.obj : error LNK2019: unresolved external symbol
__imp__NS_CStringContainerFinish referenced in function "public:
__thiscall nsEmbedCString::~nsEmbedCString(void)"
(??1nsEmbedCString@@[EMAIL PROTECTED])
nswinprint.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: __thiscall
nsCOMPtr_base::~nsCOMPtr_base(void)" (__imp_??1nsCOMPtr_base@@[EMAIL PROTECTED])
referenced in function "public: __thiscall nsCOMPtr<class
nsIServiceManager>::~nsCOMPtr<class nsIServiceManager>(void)"
([EMAIL PROTECTED]@@@@[EMAIL PROTECTED])
nswinprint.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static void * __cdecl
nsMemory::Alloc(unsigned int)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED])
referenced in function "public: virtual unsigned int __stdcall
NSPrint::FinishJob(int,char * *)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED])
nswinprint.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) unsigned int __cdecl NS_NewGenericModule2(struct
nsModuleInfo *,class nsIModule * *)"
(__imp_?NS_NewGenericModule2@@YAIPAUnsModuleInfo@@PAPAVnsIModule@@@Z)
referenced in function _NSGetModule
nswinprint.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: void __thiscall
nsCOMPtr_base::assign_from_qi_with_error(class
nsQueryInterfaceWithError const &,struct nsID const &)"
([EMAIL PROTECTED]@@QAEXABVnsQueryInterfaceWithError@@ABUnsID@@@Z)
referenced in function "public: __thiscall nsCOMPtr<class
nsIServiceManager>::nsCOMPtr<class nsIServiceManager>(class
nsQueryInterfaceWithError const &)"
([EMAIL PROTECTED]@@@@[EMAIL PROTECTED]@@@Z)
nswinprint.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: void __thiscall
nsCOMPtr_base::assign_from_qi(class nsQueryInterface,struct nsID const
&)"
([EMAIL PROTECTED]@@QAEXVnsQueryInterface@@ABUnsID@@@Z)
referenced in function "public: __thiscall nsCOMPtr<class
nsIProperties>::nsCOMPtr<class nsIProperties>(class nsQueryInterface)"
([EMAIL PROTECTED]@@@@[EMAIL PROTECTED]@@@Z)
nswinprint.obj : error LNK2019: unresolved external symbol
__imp__NS_GetServiceManager referenced in function "char * __cdecl
getLibraryLocation(void)" (?getLibraryLocation@@YAPADXZ)
nswinprint.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static void __cdecl nsMemory::Free(void
*)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED]) referenced in function "unsigned
int __stdcall NSPrintRegistration(class nsIComponentManager *,class
nsIFile *,char const *,char const *,struct nsModuleComponentInfo const
*)"
(?NSPrintRegistration@@YGIPAVnsIComponentManager@@PAVnsIFile@@PBD2PBUnsModuleComponentInfo@@@Z)
C:\Documents and Settings\David\Mis documentos\Visual Studio
2005\Projects\nswinprint\Debug\nswinprint.dll : fatal error LNK1120: 10
unresolved externals

Am I missing something??

I installed VC express, after that installed the windows SDK following
all then given instructions and then created the project.

Thanks.
David.

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

Reply via email to