我是在学校机房里用的机器。但是由于学校机房C,D盘被写保护,每次重新启动都会恢复以前的设置。。这样的话我创建的驱动就不存在了,有没有什么办法解决。每次连接这类程序时,都要重新编写连接还有,我在编写ODBC程序时,compile时出现这样的提示:
--------------------Configuration: ODBC1 - Win32 Debug--------------------
Compiling...
ODBC1View.cpp
e:\jinjin\myproject\odbc1\odbc1view.cpp(4) : fatal error C1083: Cannot open precompiled header file: 'Debug/ODBC1.pch': No such file or directory
Error executing cl.exe.ODBC1View.obj - 1 error(s), 0 warning(s)但是连接却没有问题,运行也能通过。 请问是什么原因阿?
--------------------Configuration: ODBC1 - Win32 Debug--------------------
Compiling...
ODBC1View.cpp
e:\jinjin\myproject\odbc1\odbc1view.cpp(4) : fatal error C1083: Cannot open precompiled header file: 'Debug/ODBC1.pch': No such file or directory
Error executing cl.exe.ODBC1View.obj - 1 error(s), 0 warning(s)但是连接却没有问题,运行也能通过。 请问是什么原因阿?
SQLConfigDataSource(NULL,ODBC_ADD_DSN,(LPSTR)"SQL Server",
(LPSTR)"DSN=sqldb\0""SERVER=192.168.0.1\0""DATABASE=sqldb\0");将debug下的东西全部删除
#error include 'stdafx.h' before including this file for PCH
#endif