草庐IT

sqlite3_get_table

全部标签

c# - 带有特殊字符的 SQLite 查询 (ščćž)

我正在创建c#wpf应用程序,我正在为我的数据使用SQLite数据库(sqlite3.dll库)。我来自斯洛文尼亚,所以我需要存储包含ščćžđ等字符的字符串。当我的查询如下所示时,我可以成功存储我的数据并设置我的dataGriditemsSource:Listlist=AppData.DBObject.Query("select*fromOdgovor");ObservableCollectionodgovorList=newObservableCollection(list);this.dataGridOdgovor.ItemsSource=odgovorList;查询成功"sel

c++ - windows C++ opening printer with documentproperties get C6836 "Write Overrun"代码分析警告

在下面的代码中://IfGetPrinterdidn'tfillintheDEVMODE,trytogetitbycalling//DocumentProperties...if(pi2->pDevMode==NULL){dwNeeded=DocumentProperties(NULL,hPrinter,printerName,NULL,NULL,0);if(dwNeededpDevMode=pDevMode;}在线lFlag=DocumentProperties(NULL,hPrinter,printerName,pDevMode,NULL,DM_OUT_BUFFER);当我运行Vi

ruby - Ruby gets 方法将我的输入截断为 256 个字符

我试图在Ruby中输入一个长字符串(>256个字符,但通常puts"Enterlongstring"ilogo=gets.chompputs"#{ilogo}"出于某些愚蠢的原因,它总是截断输入以仅保留256个字符(在chomp之前)。我验证了Ruby接受更长的字符串,并且Windows7命令行控制台也接受大于256个字符的字符串。我找不到任何关于具有这种限制的gets方法的提及,但我肯定遗漏了一些东西。我一无所知。这可能只是一个获取限制吗?编辑:更具体地说:我正在使用的测试字符串之一是:1111111111111111111111111111111111111111111111111

ruby - Windows 上的 sqlite3 ruby​​ 2.0 出现问题

我是编程新手,在我的(mac)家用电脑上成功安装了ruby​​/rails。我正在尝试在工作中的Windows(Windows7、32位)上设置ruby​​2.0.0p195(和Rails),但我在sqlite3安装上失败了。我已经了解了我可以在网上找到的大部分解决方案/建议,但就是无法正常工作——令人沮丧的是它告诉我它已安装,但它不起作用:-我试过背包安装http://www.ruby-forum.com/topic/4413168-如果我尝试安装--with-opt-dir=c:/sqlite3(或建议的许多变体中的任何一个),它会给出native扩展错误。-我已将.dll文件放在

windows - Node : Getting MyDocuments Path on Windows

如何使用NodeJS检索MyDocuments路径。所以我想用下面的C#代码在NodeJs中得到一些东西:Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)谢谢和问候斯特凡 最佳答案 找到答案:varQ=require('Q');vargetUserDoc=function(callback){varWinreg=require('winreg');vardeferred=Q.defer();varregKey=newWinreg({hive:Winreg

c# - System.NotSupportedException : Cannot compile: TypeAs At SQLite. 表查询

我正在使用C#和SQLite编写Windows商店应用程序。在这种情况下,我遇到了一个问题,我为此寻找了解决方案。但我没有运气。问题是我想从表中删除一条记录。我的table是这样的classDocumentRecord{[PrimaryKey,AutoIncrement]publicintdID{get;set;}publicstringdName{get;set;}publicstringdDescription{get;set;}publicbyte[]dImage{get;set;}publicintuID{get;set;}publicstringdTextData{get;s

windows - 通过 Get-WmiObject : Exception calling SetDefaultPrinter : Not Supported 设置默认打印机时出错

概览我正在尝试使用PowerShell在Windows2012R2中设置默认打印机。每当我在本地执行此操作时,它都可以正常工作,但是无论我如何尝试远程运行它(我需要这样做),它总是会失败并出现以下错误。我已经尝试使用域管理员帐户以及我需要为其更改默认打印机的用户凭据,但它仍然失败。错误Exceptioncalling"SetDefaultPrinter":"Notsupported"Atline:1char:1+(Get-WmiObject-ClassWin32_Printer-Filter"(Name='MicrosoftXPSDocumentWrite...+~~~~~~~~~~~

windows - 无法加载 DLL 'e_sqlite3' : The specified module could not be found

我有一个XamarinForms解决方案。我添加了sqlite-net-pcl作为所有项目的引用。它在Android上运行良好,但在Windows8.1和WindowsPhone8.1上崩溃。我有一个IOS项目,但我目前没有OSX来尝试。我在Windows项目中使用它来访问数据库:usingSystem.IO;usingSQLite;usingXamarin.Forms;usingHelloXamarin.Windows;usingWindows.Storage;[assembly:Dependency(typeof(SQLiteDb))]namespaceHelloXamarin.W

python 3.7 : How to get the Windows user Login Time?

我正在尝试使用Python3.7获取系统用户的登录时间。我已经尝试过win32net和Python的平台模块,但是平台模块中没有定义函数,Win32net与Python3等不兼容。我尝试了以下代码:importplatformplatform.uname()importplatformos_name=platform.uname()[0].lower()ifos_name=="windows":get_win_login_time()elifos_name.endswith("nix"):get_nix_login_time() 最佳答案

node.js - Windows Node : always get either "Error: ENOENT: no such file or directory, open" or "Error: EACCES: permission denied, open"

这是我的代码:varfs=require('fs');varutil=require('util');varlogFile=fs.createWriteStream('C:/text.txt',{flags:'a'});//Or'w'totruncatethefileeverytimetheprocessstarts.varlogStdout=process.stdout;console.log=function(){logFile.write(util.format.apply(null,arguments)+'\n');logStdout.write(util.format.app