草庐IT

from_int

全部标签

c - Win VS2008 调用约定 : Delphi dll from c

我在C应用程序(VS2008,Win)中调用了一个用Borland中的Delphi编写的dll中的函数。该函数有效,但每次调用后我都会收到此错误:“ESP的值未在函数调用中正确保存[...]”,这意味着我的调用约定是错误的。我不知道Delphi,也没有完整的dll代码,但我相信这是Delphi函数:functiontranslate(file1,file2:PChar):PChar;stdcall;...Result:=PChar(c);end;exportstranslate;c中的相关部分:typedefchar*(__stdcall*translate)(char*,char*)

android - 蓝牙 RFCOMM 连接 : read serial data from com port in Windows 7

我正在使用Android蓝牙聊天示例应用程序。我正在尝试从Windows7中的Android设备读取串行数据。我已经能够将Android设备与笔记本电脑上的蓝牙适配器配对。根据其他一些讨论,我将示例应用程序中的UUID替换为以下内容:privatestaticfinalUUIDMY_UUID=UUID.fromString("00001101-0000-1000-8000-00805F9B34FB");当我运行Android应用程序时,我可以连接到笔记本电脑。在我的Android设备的“硬件”属性中,有一个名为“StandardsSerialoverBluetoothlink(COM1

windows - 错误的解释器 : Permission denied error when running Ruby from Git Bash

$geminstalljekyllsh.exe":/c/ruby/bin/gem:C:/ruby/bin:badinterpreter:Permissiondenied当我在gitBash中运行geminstalljeklly时,谁能告诉我如何更改权限。操作系统是windowsxp。非常感谢!RubyGemsEnvironment:-VERSION:0.9.4(0.9.4)-INSTALLATIONDIRECTORY:c:/ruby/lib/ruby/gems/1.8-GEMPATH:-c:/ruby/lib/ruby/gems/1.8-REMOTESOURCES:-http://ge

c++ - 相当于 gnu 中 windows stdint.h 的 u_int16_t?

到目前为止,我假设u_int16_t是一个名为stdint.h的MSVS头文件中某处的Windows类型。我正在使用GNUg++作为编译器(实际上是带有mingw的代码块),我想知道typedefunsignedshortuint_least16_t;(在mingw的stdint.h内)是否等效,或者我可以做些什么来包含它类型?这个问题实际上与编译googlesparsehash有关用于MSVS的项目文件,但我使用的是代码块。这是它给我的错误(顺便说一句,这个错误重复了很多次)。c:\programfiles\codeblocks\mingw\bin\..\lib\gcc\mingw3

Windows 资源管理器和重新分析点文件 : keep Explorer from opening my files

我已经实现了一个用户模式程序和一个Windows文件系统微过滤器,它为远程文件存储系统创建用户文件的框架View。它将远程文件映射到本地驱动器。用户模式程序为远程系统上的每个文件创建一个重新解析标记。当检测到创建请求(例如,读取的CreateFile)时,微过滤器要求用户模式程序下载文件。只有当程序想要打开文件进行查看或编辑时,才会发生这种情况。但是,我发现Windows资源管理器正在触发我的文件下载。我想阻止资源管理器文件窗口和文件打开/保存对话框触发下载。而且,我还想显示文件缩略图和文件尺寸。[Update:I'vefoundIcanuseWindowssparsefilestos

c++ - GTK3 :How to receive input value from entry/input box?

我是GTK的新手,我想知道如何调整输入框的大小以及标签和框之间的间距?此外,如何从输入框中接收输入值以供进一步使用,如C函数“scanf”。谢谢你,抱歉我的英语不好#include#include#includestaticvoiddestroy(GtkWidget*widget,gpointerdata){gtk_main_quit();}staticvoidinitialize_window(GtkWidget*window){gtk_window_set_title(GTK_WINDOW(window),"MyWindow");gtk_window_set_default_siz

windows - Chocolatey 和 powershell : pin and unpin programs from task bar and file associations

我想使用chocolatey从任务栏固定和取消固定程序。我知道我可以使用辅助函数Install-ChocolateyPinnedTaskBarItem来固定程序。例如安装-ChocolateyPinnedTaskBarItem"${env:ProgramFiles(x86)}\MozillaThunderbird\thunderbird.exe"我收到这些消息找不到System.__ComObject的TaskBar动词。它可能已经固定“C:\ProgramFiles(x86)\MozillaThunderbird\thunderbird.exe”已固定到桌面的任务栏,但thunder

python - 运行时错误 : Graph ops missing from the python registry ( {'SentencepieceEncodeSparse' }) are also absent from the c++ registry

我正在尝试在Windows系统中使用sentecepiece,同时将通用句子编码器实现为described在tensorflow中。但我遇到以下错误:RuntimeError:Graphopsmissingfromthepythonregistry({'SentencepieceEncodeSparse'})arealsoabsentfromthec++registry.我知道this现在已经支持库:我尝试安装sentencepiece使用pipinstall--usersentencepiece也有很多版本。我可以导入sentencepiece,但出现错误RuntimeError:P

C++:将 __int64 转换为 unsigned long

我想在Windows和Linux中使用以下函数,但我不确定如何将__int64转换为unsignedlong。像我一样投值安全吗?getTimeInMilliseconds(){#ifdef_WIN32staticconst__int64magic=116444736000000000;//1970/1/1SYSTEMTIMEst;GetSystemTime(&st);FILETIMEft;SystemTimeToFileTime(&st,&ft);//in100-nanosecs...__int64t;memcpy(&t,&ft,sizeoft);return(unsignedlon

windows - 如何修复 "an error occurred while attempting to load the signing certificate from"PFX 文件?

我在装有.NET1.1的WindowsXPProfessional机器上安装了signtool.exe。属性对话框中显示的版本为5.2.3790.2568。我还在同一台机器上安装了带有OpenSSH的Cygwin。无论如何,当我在本地运行该工具时-一切正常,请观察:D:\WORK\workspace>type1.cmdd:\work\workspace\VE\CodeSign\signtool.exesign/fd:\work\workspace\VE\CodeSign\Shunra.pfx/p"shunrail"/thttp://timestamp.verisign.com/scri