Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / July 2005

Tip: Looking for answers? Try searching our database.

atlconv.h header error!!!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Karthik - 08 Jul 2005 19:49 GMT
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????
Karthik - 08 Jul 2005 21:38 GMT
I added altbase.h.. in the include stmnt solved my error!!! :-)

Karthik
Arnaud Debaene - 09 Jul 2005 19:00 GMT
> #include "asapdefs.h"
>
[quoted text clipped - 3 lines]
>
> #include <string>

The precompiled header (stdafx.h) must ve the *first* non-comment statement
in your cpp file... Put it before other includes

Arnaud
MVP - VC

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.