473,396 Members | 1,826 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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????

Jul 23 '05 #1
2 6100
Karthik wrote:
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? [some snips] Any inputs or thoughts????


Ok, if my stumbling here does not help, you should check
one of the microsoft or windows news groups. Say the ones
under microsoft.public.vc.* at google. This would not be
a bad idea regardless of whether my stumblings help or
not. Anyway...

Either you have not included the appropriate window-ish
header files (and you'll have to check what an ATL project
wants) or you have not set the right compiler flags or
options (again, you'll have to check what an ATL project
wants).

Big fat hairy guess comming. ATLASSERT is looking for
the header or library that defines ASSERTE, which I
can only presume is the local language equiv of ASSERT.
It's checking to see that you have not passed a null
pointer in to this function. But you have not connected
up to the correct support files for an ATL project to
know what to do with a call to ASSERTE.

Try snooping around in your online help files to see if
it tells you what library and header files you need to
include for ATL projects and for window-ish versions of
the ASSERT macro.
Socks

Jul 23 '05 #2
I added altbase.h.. in the include stmnt solved my error!!! :-)

gr8 thnx a much!!!

Karthik

Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Bob Garbados | last post by:
forgive my ignorance, as I'm new to php coming from a ms background... If I create a page named redirect.php and it's only content is: <?php header("Location: http://www.google.com"); ?>...
0
by: Lokkju | last post by:
I am pretty much lost here - I am trying to create a managed c++ wrapper for this dll, so that I can use it from c#/vb.net, however, it does not conform to any standard style of coding I have seen....
2
by: Annie | last post by:
hello guys, I have a header file in the form of user control (.ascx) that all my pages inherit from it. I have a textbox that i need to access it from all the pages actually i show there user...
8
by: nrhayyal | last post by:
Hi c++ Gurus, Need your blessing. while testing few aspects with respect to header file inclusions, i observed few things which i would like to share with you. i have a file sqlca.h in which a...
2
by: DCC700 | last post by:
VS 2005 Converted Header causing error when publishing After converting from Visual Studio 2003 to 2005, I have had several issues with a header that is used throughout the project. The...
1
by: Shalako | last post by:
I check my error log and see these entries: malformed header from script. Bad header= Missing gauge reports are ind: padata.pl /perl/pema/padata.pl did not send an HTTP header malformed...
11
by: JRough | last post by:
I'm trying to use output buffering to cheat so i can print to excel which is called later than this header(). header("Content-type: application/xmsdownload"); header("Content-Disposition:...
0
by: JRough | last post by:
On Sep 26, 3:23 pm, Captain Paralytic <paul_laut...@yahoo.comwrote: without the exit I get this again: Warning: Cannot modify header information - headers already sent by (output started at...
10
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.