Этот баннер — требование Роскомнадзора для исполнения 152 ФЗ.
«На сайте осуществляется обработка файлов cookie, необходимых для работы сайта, а также для анализа использования сайта и улучшения предоставляемых сервисов с использованием метрической программы Яндекс.Метрика. Продолжая использовать сайт, вы даёте согласие с использованием данных технологий».
Политика конфиденциальности
|
|
|
11 ошибок из примера "Соединение для С++"
|
|||
|---|---|---|---|
|
#18+
Люди, кто пробовал в работе пример из документации по Cache`для соединения с базой с помощью С++ Binding у меня 11 ошибок? Прикладываю файлик. Кто может подскажите ПЛИЗ. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 26.07.2007, 16:14 |
|
||
|
11 ошибок из примера "Соединение для С++"
|
|||
|---|---|---|---|
|
#18+
... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 26.07.2007, 16:22 |
|
||
|
11 ошибок из примера "Соединение для С++"
|
|||
|---|---|---|---|
|
#18+
Не кочаеться что-то, варварски размещаю его сдесь: ------ Построение начато: Проект: Second, Конфигурация: Release Win32 ------ Compiling... Second.cpp l:\cache2\dev\cpp\include\t_fmt.h(169) : warning C4996: 'std::basic_istream<_Elem,_Traits>::readsome' was declared deprecated with [ _Elem=char, _Traits=std::char_traits<char> ] L:\Program Files\Microsoft Visual Studio 8\VC\include\istream(724) : see declaration of 'std::basic_istream<_Elem,_Traits>::readsome' with [ _Elem=char, _Traits=std::char_traits<char> ] Message: 'You have used a std:: construct that is not safe. See documentation on how to use the Safe Standard C++ Library' l:\cache2\dev\cpp\include\t_streambuf.h(72) : warning C4244: 'return' : conversion from '__w64 int' to 'std::streamsize', possible loss of data l:\cache2\dev\cpp\include\t_streambuf.h(79) : warning C4244: 'return' : conversion from '__w64 int' to 'std::streamsize', possible loss of data l:\cache2\dev\cpp\include\t_streambuf.h(94) : warning C4244: 'return' : conversion from '__w64 int' to 'std::streamsize', possible loss of data l:\cache2\dev\cpp\include\t_streambuf.h(145) : warning C4996: 'std::basic_streambuf<_Elem,_Traits>::xsgetn' was declared deprecated with [ _Elem=char, _Traits=std::char_traits<char> ] L:\Program Files\Microsoft Visual Studio 8\VC\include\streambuf(324) : see declaration of 'std::basic_streambuf<_Elem,_Traits>::xsgetn' with [ _Elem=char, _Traits=std::char_traits<char> ] Message: 'You have used a std:: construct that is not safe. See documentation on how to use the Safe Standard C++ Library' l:\cache2\dev\cpp\include\t_streambuf.h(139) : warning C4244: 'return' : conversion from '__w64 int' to 'std::streamsize', possible loss of data l:\cache2\dev\cpp\include\t_streambuf.h(175) : warning C4244: 'return' : conversion from '__w64 const int' to 'UINT4', possible loss of data l:\cache2\dev\cpp\include\t_iostream.h(288) : warning C4267: 'argument' : conversion from 'size_t' to 'std::streamsize', possible loss of data l:\cache2\dev\cpp\include\abs_types.h(128) : warning C4267: 'return' : conversion from 'size_t' to 'byte_size_t', possible loss of data l:\cache2\dev\cpp\include\prim_types.h(148) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data l:\cache2\dev\cpp\include\prim_types.h(157) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data l:\cache2\dev\cpp\include\prim_types.h(192) : warning C4267: 'argument' : conversion from 'size_t' to 'char_size_t', possible loss of data l:\cache2\dev\cpp\include\prim_types.h(196) : warning C4267: 'argument' : conversion from 'size_t' to 'char_size_t', possible loss of data l:\cache2\dev\cpp\include\prim_types.h(248) : warning C4267: 'return' : conversion from 'size_t' to 'long', possible loss of data l:\cache2\dev\cpp\include\prim_types.h(264) : warning C4267: 'argument' : conversion from 'size_t' to 'byte_size_t', possible loss of data l:\cache2\dev\cpp\include\prim_types.h(284) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data l:\cache2\dev\cpp\include\prim_types.h(1030) : warning C4996: 'wcscpy' was declared deprecated L:\Program Files\Microsoft Visual Studio 8\VC\include\wchar.h(992) : see declaration of 'wcscpy' Message: 'This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' l:\cache2\dev\cpp\include\prim_types.h(1044) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data l:\cache2\dev\cpp\include\prim_types.h(1048) : warning C4996: 'wcscpy' was declared deprecated L:\Program Files\Microsoft Visual Studio 8\VC\include\wchar.h(992) : see declaration of 'wcscpy' Message: 'This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' l:\cache2\dev\cpp\include\class_def.h(202) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data l:\cache2\dev\cpp\include\connection.h(128) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data l:\cache2\dev\cpp\include\connection.h(130) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data l:\cache2\dev\cpp\include\database.h(121) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data l:\cache2\dev\cpp\include\query.h(313) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data l:\cache2\dev\cpp\include\query.h(318) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data l:\cache2\dev\cpp\include\query.h(328) : warning C4267: 'argument' : conversion from 'size_t' to 'char_size_t', possible loss of data l:\cache2\dev\cpp\include\query.h(330) : warning C4267: 'argument' : conversion from 'size_t' to 'char_size_t', possible loss of data l:\cache2\dev\cpp\include\query.h(333) : warning C4267: 'argument' : conversion from 'size_t' to 'char_size_t', possible loss of data l:\cache2\dev\cpp\include\query.h(335) : warning C4267: 'argument' : conversion from 'size_t' to 'char_size_t', possible loss of data l:\cache2\dev\cpp\include\query.h(361) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data l:\cache2\dev\cpp\include\query.h(373) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data l:\cache2\dev\cpp\include\gen_class_def.h(213) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data l:\cache2\dev\cpp\include\gen_class_def.h(263) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data l:\cache2\dev\cpp\include\gen_class_def.h(268) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data l:\cache2\dev\cpp\include\gen_class_def.h(273) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data l:\cache2\dev\cpp\include\gen_class_def.h(373) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data l:\cache2\dev\cpp\include\gen_class_def.h(375) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data .\Second.cpp(18) : error C2665: 'InterSystems::tcp_conn::connect' : none of the 2 overloads could convert all the argument types l:\cache2\dev\cpp\include\connection.h(416): could be 'InterSystems::d_connection InterSystems::tcp_conn::connect(const InterSystems::d_string &,const InterSystems::d_string &,const InterSystems::d_string &,int,InterSystems::Db_err *)' l:\cache2\dev\cpp\include\connection.h(422): or 'InterSystems::d_connection InterSystems::tcp_conn::connect(const InterSystems::d_string &,const InterSystems::d_string &,int,int,InterSystems::Db_err *)' while trying to match the argument list '(const char [24], const char [7], const char [13], InterSystems::Db_err *__w64 )' .\Second.cpp(18) : error C2512: 'InterSystems::Conn_handle' : no appropriate default constructor available .\Second.cpp(27) : error C2065: 'Datadase' : undeclared identifier .\Second.cpp(27) : error C2146: syntax error : missing ';' before identifier 'db' .\Second.cpp(27) : error C3861: 'db': identifier not found .\Second.cpp(35) : error C2039: 'getCity' : is not a member of 'InterSystems::Sample_Person' d:\projects\second\second\Sample_Person.h(12) : see declaration of 'InterSystems::Sample_Person' .\Second.cpp(37) : error C2660: 'InterSystems::Sample_Address::getCity' : function does not take 1 arguments .\Second.cpp(53) : error C2059: syntax error : 'return' .\Second.cpp(54) : error C2059: syntax error : '}' .\Second.cpp(54) : error C2143: syntax error : missing ';' before '}' .\Second.cpp(54) : error C2059: syntax error : '}' Build log was saved at "file://d:\Projects\Second\Second\Release\BuildLog.htm" Second - 11 error(s), 37 warning(s) ========== Построение: успешно: 0, с ошибками: 1, без изменений: 0, пропущено: 0 ========== ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 26.07.2007, 16:23 |
|
||
|
|

start [/forum/topic.php?fid=39&fpage=80&tid=1559283]: |
0ms |
get settings: |
7ms |
get forum list: |
14ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
27ms |
get topic data: |
7ms |
get forum data: |
2ms |
get page messages: |
31ms |
get tp. blocked users: |
1ms |
| others: | 225ms |
| total: | 320ms |

| 0 / 0 |
