Re: errors compiling the last tutorial plugin with Visual C++ 2005 Express

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hello, Claudio

It seems that you are using a very old version of the sample. The warnings
were fixed before the release of SQL Server 2005, and the errors suggest
that the project does not include the apropriate ATL headers.

You should download the latest version from
http://www.sqlserverdatamining.com/dmcommunity/_downloads/2384.aspx

Please let us know if you run into any othe problems

--
--
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. It is for newsgroup
purposes only.

thanks,
bogdan

<anonymous_user@xxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:047c4c2d-f2d9-4691-893c-c7b9e6d3a0bc@xxxxxxxxxxxxxxxxxxxxxxx
> Can I build and use the last tutorial plugin using Visual C++ 2005
> Express, Windows XP SP2, Windows® Server 2003 SP1 Platform SDK and SQL
> Server 2005 Trial?
>
> claudio
>
> I'm asking because I received several error messages while compiling the
> last tutorial.
>
> The 9 error and 4 warning messages are:
> c:\program files\microsoft platform sdk\include\atl\atlbase.h(513) :
> warning C4996: '_vsnprintf' was declared deprecated
> c:\program files\microsoft visual studio 8\vc\include\stdio.h(339) : see
> declaration of '_vsnprintf'
> Message: 'This function or variable may be unsafe. Consider using
> _vsnprintf_s instead. To disable deprecation, use
> _CRT_SECURE_NO_DEPRECATE. See online help for details.'
> c:\program files\microsoft platform sdk\include\atl\atlbase.h(537) :
> warning C4996: '_vsnprintf' was declared deprecated
> c:\program files\microsoft visual studio 8\vc\include\stdio.h(339) : see
> declaration of '_vsnprintf'
> Message: 'This function or variable may be unsafe. Consider using
> _vsnprintf_s instead. To disable deprecation, use
> _CRT_SECURE_NO_DEPRECATE. See online help for details.'
> c:\program files\microsoft platform sdk\include\atl\atlbase.h(561) :
> warning C4996: '_vsnwprintf' was declared deprecated
> c:\program files\microsoft visual studio 8\vc\include\stdio.h(450) : see
> declaration of '_vsnwprintf'
> Message: 'This function or variable may be unsafe. Consider using
> _vsnwprintf_s instead. To disable deprecation, use
> _CRT_SECURE_NO_DEPRECATE. See online help for details.'
> c:\program files\microsoft platform sdk\include\atl\atlbase.h(584) :
> warning C4996: '_vsnwprintf' was declared deprecated
> c:\program files\microsoft visual studio 8\vc\include\stdio.h(450) : see
> declaration of '_vsnwprintf'
> Message: 'This function or variable may be unsafe. Consider using
> _vsnwprintf_s instead. To disable deprecation, use
> _CRT_SECURE_NO_DEPRECATE. See online help for details.'
> c:\program files\microsoft platform sdk\include\atl\atlcom.h(3242) : error
> C2065: '_Module' : undeclared identifier
> c:\program files\microsoft platform sdk\include\atl\atlcom.h(3242) : error
> C2228: left of '.Lock' must have class/struct/union
> type is ''unknown-type''
> c:\program files\microsoft platform sdk\include\atl\atlcom.h(3244) : error
> C2228: left of '.Unlock' must have class/struct/union
> type is ''unknown-type''
> c:\program files\microsoft platform sdk\include\atl\atlcom.h(3366) : error
> C2228: left of '.CreateInstance' must have class/struct/union
> type is ''unknown-type''
> c:\program files\microsoft platform sdk\include\atl\atlcom.h(3373) : error
> C2228: left of '.Lock' must have class/struct/union
> type is ''unknown-type''
> c:\program files\microsoft platform sdk\include\atl\atlcom.h(3375) : error
> C2228: left of '.Unlock' must have class/struct/union
> type is ''unknown-type''
> c:\program files\microsoft platform sdk\include\atl\atlcom.h(3641) : error
> C2228: left of '.m_csTypeInfoHolder' must have class/struct/union
> type is ''unknown-type''
> c:\program files\microsoft platform sdk\include\atl\atlcom.h(3658) : error
> C2228: left of '.AddTermFunc' must have class/struct/union
> type is ''unknown-type''
> c:\program files\microsoft platform sdk\include\atl\atlcom.h(3667) : error
> C2228: left of '.m_csTypeInfoHolder' must have class/struct/union
> type is ''unknown-type''


.



Relevant Pages

  • Re: quest for cross-platform static assert
    ... constant expression at compile time. ... But on some platforms there is a spurious warning or link time error ... And I tried again that variant of ASSERT_S on a platform where I ...
    (comp.lang.c)
  • printf specifiers vs types
    ... plus Windows. ... On FreeBSD I get a warning from the following simple construct (stbuf ... not at all obvious on a given platform why the upcast is there; ... cleaning up the code on a non-FreeBSD platform might remove it, ...
    (comp.unix.programmer)
  • Re: error compiling tutorial plugin
    ... were fixed before the release of SQL Server 2005, ... Server 2003 SP1 Platform SDK, ... > warning C4996: '_vsnprintf' was declared deprecated ... To disable deprecation, use ...
    (microsoft.public.sqlserver.datamining)
  • Re: 12 young people killed in accident in Spain
    ... go from one platform down to the track and up the other platform ... The herd instinct can work to advantage as well as ... separate warning lights for each road. ...
    (uk.railway)
  • Re: Creating a Workspace from the Command-Line
    ... WARNING: The platform you are trying use was last used in conjunction ... you run CEBUILD, the platform project will be rebuilt from clean. ... Wince ARMV4I Test CCX9C Development Environment for SA ...
    (microsoft.public.windowsce.platbuilder)