进程通信的方法
进程通信基本方法有如下几种。
1、消息传递机制。
2、共享内存。
3、管道和邮槽。
4、剪贴板。
5、Socket通信。
1.消息传递机制
使用WM_COPYDATA实现进程间的传递数据。
函数原型
LRESULT SendMessage(HWND hWnd,UINT Msg,WPARAM wParam,LPARAM IParam)
参数
hWnd:其窗...
分类:
编程语言 时间:
2014-08-06 14:47:21
阅读次数:
301
在整理Java LockSupport.park()的东东,看到了个"Spurious wakeup",重新梳理下。
首先来个《UNIX环境高级编程》里的例子:
[cpp] view
plaincopy
#include
struct msg {
struct msg *m_next;
/* ... mo...
分类:
其他好文 时间:
2014-08-05 15:53:01
阅读次数:
369
Problem I
Teen Girl Squad
Input: Standard Input
Output: Standard Output
-- 3 spring rolls please.
-- MSG'D!!
-- Oh! My stomach lining!
Strong Bad
You are part of a grou...
分类:
其他好文 时间:
2014-08-05 14:09:29
阅读次数:
286
设置cell高度- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{ NoticeMessage* msg = [arrayNoticeMessage obje....
分类:
移动开发 时间:
2014-08-05 13:25:09
阅读次数:
240
DBGrid1.DragMode?? :=?? dmManual;//留意这个设置不要变 procedure ApplicationEvents1Message(var Msg: tagMSG; var Handled: Boolean); procedure TForm18.ApplicationEvents1Message(var Msg: tagMSG; v...
分类:
数据库 时间:
2014-08-05 11:41:19
阅读次数:
250
由于之前的工作中用到了记录日志,就像提笔忘字一样,我怎么想都想不出来,现在记一下先建一个类Log//记录日志信息public class Log{ public static void LogMsg(int type,string name,string msg) { //...
分类:
其他好文 时间:
2014-08-05 10:55:39
阅读次数:
162
JSON现在是很常见的处理数据的方式了。但由于自己使用的是反射获取数据,必须自己处理特殊字符,但总是发现有一些看不见的字符在前台
var obj = jQuery.parseJSON(msg);会转换失败。
例如如下在Vs中可以看到只有两个字符
可实际上却有三个字符,使用notepad++打开
一直不明白这些字符是如何进入数据库的,但进入了,就必须处理,否则在前台就...
分类:
Web程序 时间:
2014-08-04 18:05:07
阅读次数:
273
$(function(){ $("#add").Validform({ tiptype:function(msg){ layer.msg(msg); } });})
分类:
其他好文 时间:
2014-08-02 12:47:23
阅读次数:
461
create or replace procedure p_insert_caz_lims as v_sqlcode TLIMSERRORINFO.ERROR_CODE%type; v_msg TLIMSERRORINFO.error_msg%type;begininsert into ...
分类:
数据库 时间:
2014-08-01 15:53:51
阅读次数:
316
以对话框工程为例
头文件中
afx_msg BOOL OnDeviceChange(UINT nEventType, DWORD dwData);
cpp中
ON_WM_DEVICECHANGE()
然后实现函数
BOOL CXXDlg::OnDeviceChange(UINT nEventType,DWORD dwData)
{
//0x4d36e978L, 0xe325...
分类:
其他好文 时间:
2014-07-31 21:02:07
阅读次数:
443