小编tmi*_*hty的帖子

VB.NET:向类添加其他函数

"Rectangle"类没有公开我需要操作矩形的所有函数.例如,我经常只想更改".Bottom"值.现有的功能都不允许我这样做,我发现自己创建了一个新的矩形来完成我需要的工作.

这给我带来了一个普遍的问题:是否有可能在框架中为类添加其他函数,然后在我的整个项目中可用?

vb.net customization class

4
推荐指数
1
解决办法
2207
查看次数

C++将unsigned char附加到wstring

出于调试原因,我想将一个unsigned char附加到wstring.

但是,我没有找到将unsigned char转换为wstring的函数,所以我无法追加它.

编辑:到目前为止发布的解决方案并没有真正做到我需要的.我想将0转换为"0".到目前为止,解决方案将0转换为0字符,但不转换为"0"字符串.

有人可以帮忙吗?

谢谢.

unsigned char SomeValue;
wstring sDebug;

sDebug.append(SomeValue);
Run Code Online (Sandbox Code Playgroud)

c++ append wstring

4
推荐指数
1
解决办法
4874
查看次数

C++ VS2010将我的代码编译成几乎可读的代码

我试图使用反编译器"破解"我自己的应用程序.我可以清楚地看到函数名称和许多参数名称.

因此,我认为我以某种方式使用我的代码编译调试信息,尽管它已设置为Release.

此外,编译器告诉我类似的事情

mylib.lib(vq.obj):警告LNK4099:在"mylib.lib(vq.obj)"或"M:\ myapp\Release\vc100.pdb"中找不到PDB"vc100.pdb"; 将链接对象,就好像没有可用的调试信息一样.

这是VC尝试包含一些调试信息的提示吗?

此外,我的解决方案包含3个项目,以编译形式生成3个dll.

当我"破解"3个dll中的一个时,我可以看到其中2个dll的函数名称.我不知道为什么.

有人可以告诉我如何使dll更少调试,以及如何"使用"dll中的dll函数而不是1 dll中的所有函数.我希望我能解释清楚.

c++ windows visual-studio-2010

4
推荐指数
1
解决办法
176
查看次数

C++ #define my me - >

我正在浏览旧应用程序的来源.在这段代码中,我看到很多用法"我的".

它被定义为

#define my  me ->
Run Code Online (Sandbox Code Playgroud)

但我不确定这意味着什么.这是否意味着如果我使用"我的",它将使用"this->"?

我知道这不是一个好习惯,但我需要了解它的作用.

谢谢!

编辑:

以下是作者的更多信息:

/*
    Use the macros 'I' and 'thou' for objects in the formal parameter lists
    (if the explicit type cannot be used).
    Use the macros 'iam' and 'thouart'
    as the first declaration in a function definition.
    After this, the object 'me' or 'thee' has the right class (for the compiler),
    so that you can use the macros 'my' and 'thy' to refer to members.
    Example: int Person_getAge (I) { iam …
Run Code Online (Sandbox Code Playgroud)

c++ defined c-preprocessor

4
推荐指数
1
解决办法
182
查看次数

连接字符串和整数失败并显示“类型不匹配”错误

我有以下 Inno Setup 脚本,并且SaveStringToFile在线时收到此错误:

类型不匹配

有人能发现我的错误吗?

谢谢!

var
  ErrorCode: Integer;
begin
  ShellExec('open',  'taskkill.exe', '/f /im procterm.exe', '', SW_HIDE, ewWaitUntilTerminated, ErrorCode);

  SaveStringToFile('c:\program data\myapp\innolog.txt', 'Error code for procterm was: ' + ErrorCode, True);
end;
Run Code Online (Sandbox Code Playgroud)

inno-setup

4
推荐指数
1
解决办法
2677
查看次数

应用程序处于中断模式

不知何故,当我暂停应用程序时,我必须让VS2015显示此屏幕:

在此输入图像描述

我点击了所有3个提供的解决方案,但没有一个能让我回到我用过它的地方.

我的代码没什么特别的,我只是将表单显示为.ShowDialog.

在此之前发生的错误

 An unhandled exception of type 'System.IndexOutOfRangeException' occurred in System.Data.SQLite.dll
Run Code Online (Sandbox Code Playgroud)

但我无法发现它

有人可以帮忙吗?

引发的第一个错误是:

在此输入图像描述

vb.net visual-studio-2015

4
推荐指数
2
解决办法
4299
查看次数

启动 Inno Setup 安装程序,不显示“这将安装....您希望继续吗?” 迅速的

当我运行 Inno Setup 脚本时,我收到提示“这将安装......您想继续吗?”

怎么才能让安装开始时没有这个提示呢。

用户已经双击安装程序进行安装,然后发生 UAC 事件,然后 Inno Setup 询问用户是否确实要安装该应用程序。

这让用户看起来真的很傻,他必须“确认”三遍。

有没有办法跳过最后一个提示?

这是我的脚本:

[Setup]
VersionInfoVersion=
AppName=MyApp
AppVerName=MyApp 
AppPublisher=MyCompanyName
AppPublisherURL=www.mywebsite.com
AppSupportURL=www.mywebsite.com
AppUpdatesURL=www.mywebsite.com
AppID=A1T2B24E-304A-2274-5A2A-550GF09E4712
DefaultDirName={pf}\MyApp
DefaultGroupName=MyApp
DisableProgramGroupPage=yes
DisableDirPage=yes
DisableReadyMemo=yes
DisableReadyPage=yes
DisableFinishedPage=yes
DisableStartupPrompt=yes
LicenseFile=
SetupIconFile=d:\dev\projects\distribute\box_software.ico
Compression=lzma2/ultra64
SolidCompression=yes
PrivilegesRequired=admin
WizardImageFile=d:\dev\projects\innosetup\large.bmp
WizardSmallImageFile=d:\dev\projects\innosetup\small.bmp
DirExistsWarning=no
UsePreviousAppDir=yes
ShowLanguageDialog=auto
SignedUninstaller=yes
SignedUninstallerDir=d:\dev\projects\innosetup\signeduninstaller
OutputBaseFilename=osb_setup_update
OutputDir=d:\dev\projects\MyApp\compiled\upload
Run Code Online (Sandbox Code Playgroud)

编辑:尽管已经定义了DisableReadyPage,我仍然得到这个特定的页面。

这是截图:

在此输入图像描述

翻译成英语是“准备安装”。安装程序现已准备好将应用程序安装到计算机上。单击“安装”开始安装。”

inno-setup

4
推荐指数
1
解决办法
1081
查看次数

在Visual Studio中禁用Live Player

我想在Visual Studio中禁用Xamarin Live播放器.

在此输入图像描述

Live Player不使用我,因为我的应用程序使用CustomRenderers和Live Player无法做的其他事情.

总是选择正确的设备进行调试是非常耗时的.而且我经常不小心使用播放器.

有没有办法完全卸载,或者如果没有,禁用Xamarin Live Player?

xamarin visual-studio-2017

4
推荐指数
1
解决办法
831
查看次数

这个代表元音变音的疯狂德语字符组合是什么?

我只是在解析以下网站

\n\n

那里有人找到文字

\n\n
und wa\xcc\x88ren damit auch\n
Run Code Online (Sandbox Code Playgroud)\n\n

起初,“\xc3\xa4”看起来非常好,但是一旦我检查它,就会发现这不是常规的“\xc3\xa4”(表示为 ascw 228),而是这个:

\n\n
ascw: 97, char: a\nascw: 776, char: \xc2\xa8\n
Run Code Online (Sandbox Code Playgroud)\n\n

我以前从未见过这样表示的“\xc3\xa4”。

\n\n

一个网站怎么会使用这种奇怪的字符组合?它可能带来什么好处?

\n

encoding text diacritics

4
推荐指数
1
解决办法
648
查看次数

如何将“System.Drawing.Image”引入 DIB

我创建了一个可消耗的 COM 类库。

类库获取相机的图像。它的类型为图像/位图。

我在VB6中使用类库,我需要在VB6中显示这个图像。

如何将此 System.Drawing.Image 转换为 VB6 可以显示的内容?

我可以使用 DIB(使用 CreateDIBSection 等)吗?

如果是,System.Drawing.Image 究竟能转换成 DIB 吗?

谢谢!

vb.net vb6 dib

4
推荐指数
1
解决办法
110
查看次数