ATLCONV.H header error!

When I try to compile my VC++ program (am Using VS6.0). I get the following error in a header file ATLCONV.H.

c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(52) : error C2065: '_ASSERTE' : undeclared identifier
Error executing cl.exe.

and it points to

inline LPWSTR WINAPI AtlA2WHelper(LPWSTR lpw, LPCSTR lpa, int nChars, UINT acp)
{
ATLASSERT(lpa != NULL); //points to this line. Error is here
ATLASSERT(lpw != NULL);

//rest of the header code
}

This is the only error I have. I tried to include assert.h but the error multiplies... so I had revert back. Since it is showing an error on the header file, is it BUG in the compiler or something? or am I seeing things differently?

My Main program has the following include statements

#include "asapdefs.h"

#include "atlconv.h"

#include "stdafx.h"

#include <string>

//#undef new


#import "..\..\SomeTLBfile.tlb" raw_interfaces_only

//someother code

Any inputs or thoughts?

Thanks a much!

[1363 byte] By [Karthik.T] at [2007-12-16]
# 1

I added altbase.h.. in the include stmnt solved my error!!! :-)

Karthik

Karthik.T at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ Language...
# 2
Hi Karthik:

I included altbase.h but was told "Cannot open include file: 'altbase': No such file or directory" by my VC6 (with SP5 and SP6) compiler.

Any clue?

Thanks.

Ke

kezhu at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ Language...
# 3

It was my mistake. I didn't check the spelling. It should be atlbase.h. It is OK now.

Regards,

Ke

kezhu at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ Language...