我想更新Google Spreadsheets中的单元格值,但不幸的是收到错误:
Google.GData.Client.GDataRequestException was unhandled
HResult=-2146233088
Message=Execution of request failed: https://spreadsheets.google.com/feeds/cells/1nW8nxoS2l9pbj6dctreEfKHNXmsfbbsCAvOd7TIj4Bo/od6/private/full/R1C1
Source=Google.GData.Client
ResponseString=Missing resource version ID
StackTrace:
at Google.GData.Client.GDataRequest.Execute()
...
at System.Threading.ThreadHelper.ThreadStart()
InnerException: System.Net.WebException
HResult=-2146233079
Message=The remote server returned an error: (400) Bad Request.
Source=System
StackTrace:
at System.Net.HttpWebRequest.GetResponse()
at Google.GData.Client.GDataRequest.Execute()
Run Code Online (Sandbox Code Playgroud)
我的代码非常简单,基于从https://developers.google.com/google-apps/spreadsheets/?csw=1#changing_contents_of_a_cell下载的示例:
SpreadsheetsService service = new SpreadsheetsService("MySpreadsheetIntegration-v1");
// TODO: Authorize the service object for a specific user (see other sections)
service.setUserCredentials("...", "...");
// Instantiate a SpreadsheetQuery object to retrieve spreadsheets.
SpreadsheetQuery query = new SpreadsheetQuery();
// Make a request …Run Code Online (Sandbox Code Playgroud) 我正在尝试创建自己的DLL...我在VS2008中使用wizzard来创建DLL模板。这工作正常并且 dll 成功构建(创建了 Test.dll)。
但是,当我将文件从 Test.cpp 重命名为 Test.c (我猜这会导致在 C 模式下编译)时,解决方案也成功重建,但没有创建 .dll。所有创建的文件列表如下:
山地出发 构建日志.htm vc90.idb 测试.dll.嵌入.manifest Test.dll.intermediate.manifest 测试.obj MySecondCFile.obj vc90.pdb Test.dll.embed.manifest.res
就我的目的而言,dll 必须使用 C 而不是 C++,而我已经有很多用 C 编写的代码,这些代码不能编译为 C++。
你知道为什么没有创建.dll吗?我应该怎么办?