![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
布鲁克零三四四
这个作者很懒,什么都没留下…
展开
-
SCUT的Model对象复制
CacheDictionaryEntityChangeEvent子类对象,相当于嵌套的数据结构。CacheListShareEntity子类,一次读取所有数据进内存。BaseEntity子类,手动读取一条数据进内存。Model的protobuf属性有三种。基本类型,数值和string。Model只有两种,原创 2022-11-03 19:59:42 · 200 阅读 · 0 评论 -
c# easyhook远程注入Hook成员函数
返回值是什么不知道,只好去Qt5里去查源代码 bool open(const QString& user, const QString& password);Dependencies解码函数名 QSqlDatabase::open(QString const&, QString const&)成员函数就是全局函数,导出名字比较奇怪,调用约定是thiscall,第一个参数是对象this指针。成员函数实际就是全局函数,注意修改名字、调用预定、第一个参数。目标dll必须有导出类,其实就是导出了成员函数。原创 2022-10-24 10:30:30 · 1240 阅读 · 0 评论 -
ASP.NET C# MVC SubmitChanges没有更新数据
https://bbs.csdn.net/topics/350129732看8楼和9楼就是数据库没有主键,数据库加主键后,然后拖进Model里,dbml会多一行IsPrimaryKey="true"转载 2019-10-23 21:22:46 · 400 阅读 · 0 评论 -
The file can not be loaded because it was created for another build target that is not compatible wi
03-23 14:35:05.274: E/Unity(5354): The file can not be loaded because it was created for another build target that is not compatible with this platform.03-23 14:35:05.274: E/Unity(5354): Please make s...原创 2018-03-29 22:23:32 · 3481 阅读 · 1 评论 -
Unity键盘钩子
http://blog.csdn.net/qq452626100/article/details/52398830private static int KeyboardHookProc(int nCode, Int32 wParam, IntPtr lParam){ if (nCode == HC_ACTION ) { var kc = (KeyCode)(wParam+97-65)转载 2018-01-31 09:14:27 · 1008 阅读 · 0 评论 -
本地调试正常,发布后提示:未找到视图“xxx.cshtml”或其母版视图,或没有视图引擎支持搜索的位置。
因为文件夹中虽然有cshtml文件,但是加进项目csproj里在项目里View文件夹右键添加文件就好了原创 2017-11-29 09:23:08 · 6782 阅读 · 0 评论 -
C# Java间进行RSA加密解密交互(三)
http://blog.csdn.net/dslinmy/article/details/38016831转载 2017-10-25 17:49:44 · 286 阅读 · 0 评论 -
WebException远程服务器返回错误: (400) 错误的请求。
try{ var rsp = (System.Net.HttpWebResponse)req.GetResponse();//正常情况获取web服务器返回数据}catch (System.Net.WebException ex){ Debug.Write(ex.Message);//远程服务器返回错误: (400) 错误的请求。 var strResponse = GetRespon原创 2017-11-08 18:49:48 · 8879 阅读 · 0 评论 -
Unity打包Pc(Windows)后,复制一个exe到打包后的Plugins文件夹
#if UNITY_STANDALONE_WIN[UnityEditor.Callbacks.PostProcessBuild(999)]public static void OnPostprocessBuild (UnityEditor.BuildTarget BuildTarget, string path){ if (BuildTarget != UnityEditor.Buil原创 2017-10-18 16:32:30 · 2833 阅读 · 0 评论 -
server 2012 ASP.NET MVC发布后 403.14
原因是先要安装服务器组件:https://www.cnblogs.com/xuanhun/p/4201645.html应用程序开发选项中,请确保选择.net 3.5,.net 4.5,ISAPI扩展转载 2018-08-16 18:12:20 · 387 阅读 · 0 评论 -
MeshRenderer.materials 一调用就出现内存泄漏,原因不明
对象数量疯涨,并且不会下降。Unity 2017.2.0p4 (64-bit)原创 2018-08-30 21:13:22 · 500 阅读 · 0 评论 -
Scut Protobuf里DateTime存储后的类型是string
[ProtoMember(2)] private DateTime _CreateTime; [EntityField("CreateTime")] public DateTime CreateTime在proto文件中写成 required string CreateTime= 2;原创 2018-11-08 09:43:36 · 1401 阅读 · 0 评论 -
(MVC3.0):HTTP 404。您正在查找的资源(或者它的一个依赖项)可能已被移除,或其名称已更改,或暂时不可用。请检查以下 URL 并确保其拼写正确 MVC误设起始页
解决方法删除[HttpPost]原创 2018-12-10 10:17:29 · 3117 阅读 · 1 评论 -
gcloud_voice::GetVoiceEngine()->StartRecording返回GCLOUD_VOICE_PATH_ACCESS_ERR
腾讯云游戏语音语音消息gcloud_voice::GetVoiceEngine()->StartRecording返回失败错误GCLOUD_VOICE_PATH_ACCESS_ERR 原因:传入的路径必须用正斜杠“/”不能用反斜杠“\” 20190110版本1.1.24Windows C#下必须用反斜杠...原创 2017-01-20 14:22:30 · 2098 阅读 · 0 评论 -
GCloudVoice 1.1.24在XP系统无法启动
新版本GCloudVoice 1.1.2432位GCloudVoice.dll在Win7下正常但是在XP下导致程序无法启动(老版本1.1.12一切正常)DllNotFoundException: GCloudVoice at (wrapper managed-to-native) gcloud_voice.GCloudVoiceEngine:GCloudVoice_CreateInst...原创 2019-01-19 14:25:50 · 609 阅读 · 0 评论 -
Unity,Win7提示SecurityException: A security error has been detected.
Unity执行这段代码,Microsoft.Win32.Registry.LocalMachine.OpenSubKey("Software\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Run")报异常:SecurityException: A security error has been detected.Microsoft.W...原创 2019-01-22 11:43:36 · 1294 阅读 · 0 评论 -
C#浮点和双精度乘法返回整型的规律
float f=0.65f; int ret0 = (int)((float)(0.65f*20));//返回12 int ret1 = (int)((double)(0.65f*20));//返回12 int ret2 = (int)(0.65*20);//返回13 int ret3 = (int)(0.65f*20);//返回12 int ret4 = (...原创 2019-03-09 14:50:21 · 1356 阅读 · 0 评论 -
unity3d关闭输入法,密码输入框禁止输入汉字
public void OnPwdInputChanged(string strPwd){ WindowPlatformAdaptManage.Win32Help.SetImeEnable (false); var str=Regex.Replace(password.text,@"[\u4e00-\u9fa5]+",""); if (password.text == str)转载 2017-08-04 10:35:39 · 4387 阅读 · 0 评论 -
Cross compilation job Assembly-CSharp.dll failed.UnityException: Failed AOT cross compiler
Cross compilation job Assembly-CSharp.dll failed.UnityException: Failed AOT cross compilerhttps://stackoverflow.com/questions/26602106/compiling-unity3d-for-ios-error删除所有cs文件,然后慢慢恢复,看看恢复转载 2017-07-25 11:21:21 · 1536 阅读 · 0 评论 -
C# Form控件的Focus()方法总返回false
http://bbs.csdn.net/topics/310151502 private void Form1_Load(object sender, EventArgs e) { this.Show(); //先show才能设焦点. textBox2.Focus(); }转载 2015-05-23 14:23:09 · 5502 阅读 · 0 评论 -
C# 删除自己new的控件是,不能直接调用控件的Dispose否则有奇怪的问题
Controls.Remove(curShowChat.chat); //curShowChat.chat.Dispose();这一句就加出问题 curShowChat = null;如果调用了Dispose问题就这样,这个窗体关闭后,父窗口按Alt+F4,树控件的自绘功能没有了?奇怪原创 2015-08-25 18:11:50 · 1364 阅读 · 0 评论 -
C#.Net不支持SAPI4
http://stackoverflow.com/questions/1460891/how-to-access-sapi-4-voices-from-net-framework-3-5The short answer is that you can't - System.Speech.Synthesis relies on SAPI 5.1, and SAPI 5.1 can't u翻译 2015-10-08 15:55:34 · 673 阅读 · 0 评论 -
C#把内存里的utf8字符串转成C#内部使用的Unicode
传进来内存参数 IntPtr strNameUtf8,int nStrLenpublic static string Utf8ToUnicode(IntPtr strNameUtf8, int nStrLen){ byte[] managedArray = new byte[nStrLen]; Marshal.Copy(strNameUtf8,原创 2016-09-27 14:00:41 · 2479 阅读 · 0 评论 -
VC VS 2012 2015 调试在C# WinForm里调用的C++代码
如果一个解决方案里,同时又C# WinForm项目和C++ dll项目,那么肯定无法调试C++代码不管怎么设置都是按C#方式调试。唯一的方法就是创建一个新的解决方案,里面只有C++ dll项目,用附加到进程或者启动某个exe调试都可以原创 2017-01-14 14:51:06 · 1681 阅读 · 0 评论 -
Unity 3D在Windows7下使用腾讯云游戏语音Poll无法获得回调问题
如果在C#调用的C++Dll(自己写的比如MyGame.dll)里,调用了GCloudVoice.dll的C++接口那么就绝对不能再引入GCloudVoice.dll的C#接口(就是不能把那两个文件加进项目里:GcloudVoice.cs、GcloudVoiceEngine.cs)否则C++的所有调用都返回成功,但是调用Poll之后无法得到任何回调浪费了三四个小时都在搞这个问题,后来竟原创 2017-03-04 09:11:11 · 1161 阅读 · 0 评论 -
Unity Android下Unable to use Blit. Shader is not yet initialized!
E/Unity(28795): Unable to use Blit. Shader is not yet initialized!E/Unity(28795): GetStacktrace(int) 0x44 0xe10c0bec解决方法,删除Assets里的*.ogv文件原创 2017-03-10 09:58:39 · 1603 阅读 · 2 评论 -
System.ArgumentException 位于 System.Windows.Forms.dll 源对象不公开“IPropertyNotifySink”事件接口
引发的异常:“System.ArgumentException”(位于 System.Windows.Forms.dll 中)其他信息: 源对象不公开“IPropertyNotifySink”事件接口。如有适用于此异常的处理程序,该程序便可安全地继续运行。System.ArgumentException on putting AxWMPLib.AxWindowsMediaPla转载 2017-03-07 11:21:53 · 4829 阅读 · 0 评论 -
Unity IOS iphone上支持Marshal.StructureToPtr ,但是支持的不完全
http://www.cocoachina.com/bbs/read.php?tid=21789iphone上支持Marshal.StructureToPtr ,但是支持的不完全你要转的结构如果包含了数组在里面,比如你的:[MarshalAs(UnmanagedType.ByValArray,SizeC*****t = 64)]public char[] name;转载 2017-03-28 13:45:12 · 1138 阅读 · 0 评论 -
腾讯云游戏语音gcloud voice demo,Unity 5.1打包IOS自动添加CoreTelephony.framework和libstdc++.6.0.9.tbd
http://www.xuanyusong.com/archives/4026http://blog.csdn.net/blog_lee/article/details/52400535效果和手动添加相同在Assets\Editor下随便创建一个cs文件:public class IosBuildScript : UnityEngine.MonoBehaviour { [Unit转载 2017-03-30 11:27:28 · 4713 阅读 · 0 评论 -
Attempting to JIT compile method '(wrapper native-to-managed)
http://stackoverflow.com/questions/12340113/monotouchbass-dll-application-crash-attempting-to-jit-compile-method-whihttp://www.jianshu.com/p/2dc2b816f1a4 回调函数必须增加属性[MonoPInvokeCallbackAttr转载 2017-03-26 15:21:30 · 736 阅读 · 0 评论 -
Unity System.Management.dll 路径
C:\Program Files (x86)\Unity\Editor\Data\Mono\lib\mono\2.0\System.Management.dll复制到Assets\Plugins就能用using UnityEngine;转载 2017-06-17 10:36:57 · 4045 阅读 · 5 评论 -
Microsoft Speech Platform 11不支持Windows 10
https://www.microsoft.com/en-us/download/details.aspx?id=27225就算安装了运行库,就算不崩溃,也发不出任何声音转载 2017-06-20 11:59:54 · 3799 阅读 · 1 评论 -
Scut Modle Entity Protobuf 原型Proto文件
message Pair_String_Int32 { required string Key = 1; required int32 Value = 2; }message ForwardCurve { required string Commodity = 1; repeated Pair_String_Int32 DictValue = 2; rep转载 2017-06-12 17:34:33 · 314 阅读 · 0 评论 -
Scut服务器创建定时器的方法
TimeoutNotifyEventArgsCacheListener另一种就是C#自带的Timer原创 2017-06-15 16:02:26 · 329 阅读 · 0 评论 -
Unity IOS打包,定制UnityAppController,添加微信支付宝SDK库
集成微信支付、支付宝支付到Unity后,可以自动生成完整XCode项目,直接可以编译运行。不用手工复制文件,也不用手工修改项目设置原创 2017-07-28 15:27:29 · 2108 阅读 · 0 评论 -
文件中的类都不能进行设计
C#.net把这类代码要直接放进构造函数里,不能放进子函数里太奇怪了base.xxxButtonClick += xxx;原创 2015-05-06 16:18:24 · 2551 阅读 · 1 评论