[JDEV] JabberCOM & VC++ error...

Deepak Kulkarni themonk4 at yahoo.com
Tue Sep 12 19:05:01 CDT 2000


Hi,

    I am trying to use the JabberCOM library with VC++
6.0 using ATL-COM extensions. I did the following:
        1. Create a MFC AppWizard(exe) project
        2. Create a small GUI with just a button
        3. Call AfxOleInit() in my InitInstance() in
my Client App
        4. Import the Type Library in my stdafx.h

When I compile to create the .tli files I get the
following errors:

Compiling resources...
Compiling...
StdAfx.cpp
d:\temp\comeg\atlcom\tjab\debug\jabbercom.tlh(1299) :
error C2259: 'IXMLTag' : cannot instantiate abstract
class due to following members:
       
d:\temp\comeg\atlcom\tjab\debug\jabbercom.tlh(902) :
see declaration of 'IXMLTag'
d:\temp\comeg\atlcom\tjab\debug\jabbercom.tlh(1299) :
warning C4259: 'long __stdcall
IUnknown::QueryInterface(const struct _GUID &,void **
)' : pure virtual function was not defined
        c:\program files\microsoft visual
studio\vc98\include\unknwn.h(109) : see declaration of
'QueryInterface'
d:\temp\comeg\atlcom\tjab\debug\jabbercom.tlh(1299) :
warning C4259: 'unsigned long __stdcall
IUnknown::AddRef(void)' : pure virtual function was
not defined
        c:\program files\microsoft visual
studio\vc98\include\unknwn.h(113) : see declaration of
'AddRef'
[...]
       
d:\temp\comeg\atlcom\tjab\debug\jabbercom.tlh(772) :
see declaration of 'put_NodeType'
c:\program files\microsoft visual
studio\vc98\mfc\include\afxv_w32.h(14) : fatal error
C1189: #error :  WINDOWS.H already included.  MFC apps
must not #include <windows.h>
Error executing cl.exe.

Could someone please point out why this is happenning?
Also why I cannot import the .tlb library?
or may be I am doing something wrong???

-- Deepak

__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/




More information about the JDev mailing list