473,729 Members | 2,150 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\atlcon v.h(52)
: error C2065: '_ASSERTE' : undeclared identifier
Error executing cl.exe.

and it points to

inline LPWSTR WINAPI AtlA2WHelper(LP WSTR 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 "..\..\SomeTLBf ile.tlb" raw_interfaces_ only

//someother code

Any inputs or thoughts????

Jul 23 '05 #1
2 6127
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\atlcon v.h(52)
: error C2065: '_ASSERTE' : undeclared identifier
Error executing cl.exe.

and it points to

inline LPWSTR WINAPI AtlA2WHelper(LP WSTR 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.publi c.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
9371
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"); ?> Should it not redirect to www.google.com? I can't get the header() function to redirect. I'm trying to take an online reservation... the customer fills out
0
3938
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. It is almost like it is trying to implement it's own COM interfaces... below is the header, and a link to the dll+code: Zip file with header, example, and DLL:...
2
3697
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 details there and needs to update it. So i set this textbox as Public and Static. The code compiles fine and the textbox is accessable to all pages however i have the following compilation errr: Compiler Error Message: CS0176: Static member...
8
3049
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 structure sqlca is declared. i included this file as a soft link in /usr/include. the soft link is as follows: sqlca.h -> /usr/opt/db2_08_01/include64/sqlca.h
2
1707
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 conversion automatically created an abstract base class for the header in the Migrated folder of the App_Code directory. One of the major problems this caused was regarding the fact that I pass the header to a standard error handling class to process the...
1
24164
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 header from script. Bad header= : padata.pl /perl/pema/padata.pl did not send an HTTP header 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
2933
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: attachment; header("Pragma: no-cache"); header("Expires; 0"); print "$header\n$data";
0
1800
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 /home/allrail/public_html/header.php:40) in /home/ allrail/public_html/header.php on line 39 as well as this: Fatal error: Cannot redeclare maketr() (previously declared in /home/ allrail/public_html/templates/menu.php.html:24) in /home/allrail/...
10
6975
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 of section c. Not sure where went wrong as the web page displayed internal server error. Also, what is the error 543? and error 2114. Where to find the list of errors in websites as it is not the standard apache error. I could not find...
0
8913
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9426
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9200
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9142
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8144
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6722
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4795
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3238
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2162
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.