
C#
文章平均质量分 68
kereus
这个作者很懒,什么都没留下…
展开
-
总结:C# Bitmap保存的问题,eg:GDI+中发生一般性错误 .jpg 正由另一个进程使用 ,该进程无法访问文件
string path1 = "E:\\1.jpg";string path2 = "E:\\1.bmp";Bitmap bmp1 = new Bitmap(path1);bmp1.Save(path2,ImageFormat.Bmp);转载 2014-04-15 15:20:42 · 7402 阅读 · 0 评论 -
C# System.DBNull string
(string)Eval("p_countions")改为Eval("p_countions").ToString()转载 2014-07-17 22:00:26 · 485 阅读 · 0 评论 -
C#windowForm 从php函数返回的Url获取到json并解析,下载文件
WebClient client = new WebClient(); string regionURL = "http://222.31.76.240:8080/?r=databaseInterface/GetdetailsBySongAndArtistName&songName=That Will Be The Day&artistName=%E9%99%88%E5%A5%95";原创 2014-11-03 15:45:43 · 1183 阅读 · 0 评论 -
C#调用C++dll 传出字符串
//C++ 函数返回字符串#include #include using namespace std;//错误const char* getStr1(){ string s = "1"; return s.c_str();}//正确string getStr2(){ string s = "1"; return s;}//正确const void getStr3(原创 2015-02-19 20:49:54 · 6049 阅读 · 0 评论 -
C#保存文件时自动重名的方法
参考:http://www.oschina.net/code/snippet_4873_1460http://www.linuxidc.com/Linux/2015-02/113879.htm转载 2015-04-13 10:14:50 · 2109 阅读 · 0 评论 -
C#调用C++ dll,并向调用的函数传递“函数指针”
SocketBLL(C++dll项目):BLL.h文件:#pragma once#include typedef void(*MsgManagement)(int);MsgManagement MsgManage;HANDLE h;DWORD WINAPI RecieveTransientMsg(LPVOID pParam);extern "C" _declspec(dll原创 2015-01-27 19:23:47 · 4496 阅读 · 0 评论