程序如下#include#include#include"system.h"intmain(){char*msg="Detectedthecharacter't'.\n";FILE*fp;charprompt=0;printf("PleaseEntersomecharacters:\n");fp=f...
分类:
移动开发 时间:
2014-10-12 23:17:38
阅读次数:
327
#!/bin/sh
my_ip=`/sbin/ifconfig eth1 | grep 'inet addr' | awk '{print substr($2, index($2, ":")+1)}'`
recv=""
msg="not_existing, restart ..."
MONITOR_LOG="monitor.log"
#monitor procname scriptname...
分类:
系统相关 时间:
2014-10-11 23:25:07
阅读次数:
329
FUNCTION get_onhand_atr_qty(p_organization_id IN NUMBER,
p_item_id IN NUMBER) RETURN NUMBER IS
x_return_status VARCHAR2(1);
x_msg_count NUMBE...
分类:
其他好文 时间:
2014-10-11 22:51:07
阅读次数:
548
public static string SendMsg(string fxPhone, string fxPassword, string toPhone, string msg) { try { strin...
分类:
Web程序 时间:
2014-10-09 23:26:41
阅读次数:
178
尽管MessageQueue提供了直接读/写的函数接口,但对于程序员来说,一般不直接读/写消息队列。之前了解到,在Looper.loop()函数中,当取出消息后,会回调msg.target对象的handleMessage()函数,而msg.target的类型正是Handler。
/**
* Run the message queue in this thread. Be sure to call
* {@link #quit()} to end the loop.
...
分类:
其他好文 时间:
2014-10-09 16:59:58
阅读次数:
243
get、post提交编码解码(一)get提交 1.首先说下客户端(浏览器)的form表单用get方法是如何将数据编码后提交给服务器端的吧。 对于get方法来说,都是把数据串联在请求的url后面作为参数,如:http://localhost:8080/servlet?msg=abc(很常见的一个乱码问...
分类:
其他好文 时间:
2014-10-09 13:58:23
阅读次数:
115
channel会阻塞,阻塞的时候系统会继续顺序调用其他goroutine,main()也是一个goroutine,只是最先被执行。 看一个代码: package main import ( "fmt" ) func display(msg string, c chan bool) { fmt.Println(ms...
分类:
其他好文 时间:
2014-10-09 13:26:08
阅读次数:
169
一,新建一个BCG工程BCGPRadialMenuSingle,基于对话框。
二, 新建或找一个png图片,上面画几个图标。导入到工程。导入后类型为PNG资源ID为IDR_PNG1。
三,利用类向导重写PreTranslateMessage。
BOOL CBCGPRadialMenuSingleDlg::PreTranslateMessage(MSG* pMsg)
{
if (pMsg...
分类:
其他好文 时间:
2014-10-07 14:05:53
阅读次数:
207
在button等被禁用后,可能须要它在禁用期间不去响应不论什么消息。能够使用以下的语句片段:MSG msg; //消耗掉消息队列中的全部消息 while(::PeekMessage(&msg,NULL,0,0,PM_REMOVE)) { //WM_PAINT不能被REMOVE,须要Disp...
分类:
编程语言 时间:
2014-10-06 17:52:20
阅读次数:
190
效果:
代码:
【GitHub】Unity_iOS_Plugin_Demo
关键:
1、Unity调用iOS:
1.1、在Unity C#中:
[ DllImport( "__Internal" )]
private static extern int _showSelectTitleDialog ( string title, string msg);
...
分类:
移动开发 时间:
2014-10-05 23:42:09
阅读次数:
924