Re: error compiling tutorial plugin

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




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:88a37c82-0a44-4ce5-aafa-b3f555eb7bce@xxxxxxxxxxxxxxxxxxxxxxx
>>
>> What error messages did you get?
>> In general, it should work fine with Visual C++ 2005.
>> --
>> thanks,
>> bogdan
>>
>
> Thanks for your attention.
>
> To avoid interference, I have started from scratch in a new partition and
> have installed:
>
> Windows XP SP2,
> Visual C++ 2005 Express,
> Windows® Server 2003 SP1 Platform SDK,
> SQL Server 2005 Trial
> The last tutorial plugin
>
> I have compiled the CompletedDemo solution.
>
> 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: errors compiling the last tutorial plugin with Visual C++ 2005 Express
    ... > warning C4996: '_vsnprintf' was declared deprecated ... To disable deprecation, use ...
    (microsoft.public.sqlserver.datamining)
  • 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: 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)