| 站点地图 | 联系我
| www.asm32.net | 2006版 | 资料中心 | linux | asm/asm32 | C/C++ | VC++ | java | 书签 | ASP.Net书签 | 上善若水 厚德载物
 现在位置 :: 主页 >> 资料中心 >> ROOT / CODE /
 

_CodeBuffer.txt

来源(null)

_CodeBuffer.txt

    Dim m_lValue As Long
    m_lValue = Not (4294967295# - 2147483648#)
    Debug.Print Hex(m_lValue), m_lValue
    End
--------------------------------------------------------------------------------------

	//	改变控件列表的风格
	CListCtrl & m_ctrlList = GetListCtrl();
	long m_lStyle = GetWindowLong(m_ctrlList.m_hWnd, GWL_STYLE);
	m_lStyle &= ~(LVS_TYPEMASK);
	m_lStyle |= LVS_ICON;
//	SetWindowLong(m_ctrlList.m_hWnd, GWL_STYLE, m_lStyle);
--------------------------------------------------------------------------------------

  oncontextmenu='return false' ondragstart='return false' onselectstart ='return false' onselect='document.selection.empty()' oncopy='document.selection.empty()' onbeforecopy='return false' onmouseup='document.selection.empty()'

--------------------------------------------------------------------------------------
// getfrombbs::

function fontchuli(){
  if ((document.selection)&&(document.selection.type == "Text")) {
    var range = document.selection.createRange();
    var ch_text=range.text;
    range.text = fontbegin + ch_text + fontend;
  } else {
    document.frmAnnounce.Content.value=fontbegin+document.frmAnnounce.Content.value+fontend;
    document.frmAnnounce.Content.focus();
  }
}

--------------------------------------------------------------------------------------

<script language="JavaScript">
function setHead(){
	document.getElementById('tomhead').style.top=0;
	document.getElementById('tomhead').style.left=0;
	document.getElementById('tomhead').style.display='block'
}
function setLeft(){
	document.getElementById('tomleft').style.top=130;
	document.getElementById('tomleft').style.left=605;
	document.getElementById('tomleft').style.display='block'
}
function setTail(){
var theHeight=(document.getElementById('tomleft').offsetHeight + 160>document.getElementById('tail').offsetTop) ? document.getElementById('tomleft').offsetHeight + 160 : document.getElementById('tail').offsetTop;
var theTableHeight=document.getElementById('tomleft').offsetHeight + 160 - document.getElementById('tail').offsetTop;
document.all.tableleft.innerHTML='<table width="773" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td width="605" valign="top" height='+theTableHeight+' style="border: black solid; border-width: 0px 1px 0px 1px"></td><td width="168" align="center" valign="top" style="border-right: 1px black solid"></td></tr></table>';	
document.getElementById('tomtail').style.top=theHeight
	document.getElementById('tomtail').style.left=document.getElementById('tail').offsetLeft;
	document.getElementById('tomtail').style.display='block'
}
</script>


--------------------------------------------------------------------------------------
// mysql::

mysql> use mysql;
Database changed
mysql> insert into user values('localhost','asm32',password('???'), 'Y','Y
', 'Y', 'Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');
Query OK, 1 row affected (0.01 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)

mysql> select * from user;
+-----------+-------+------------------+-------------+-------------+-------------+-------------+-------------+-----------+-------------+---------------+--------------+-----------+------------+-----------------+------------+------------+
| Host      | User  | Password         | Select_priv | Insert_priv | Update_priv | Delete_priv | Create_priv | Drop_priv | Reload_priv | Shutdown_priv | Process_priv | File_priv | Grant_priv | References_priv | Index_priv | Alter_priv |
+-----------+-------+------------------+-------------+-------------+-------------+-------------+-------------+-----------+-------------+---------------+--------------+-----------+------------+-----------------+------------+------------+
| localhost | root  | 09debb2a4333ec3a | Y           | Y           | Y           | Y           | Y           | Y         | Y           | Y             | Y            | Y         | Y          | Y               | Y          | Y          |
| localhost | test  | 378b243e220ca493 | Y           | N           | N           | N           | N           | N         | N           | N             | N            | N         | N          | N               | N          | N          |
| %         | admin | 09debb2a4333ec3a | Y           | Y           | Y           | Y           | Y           | Y         | Y           | Y             | Y            | Y         | Y          | Y               | Y          | Y          |
| localhost | asm32 | 0000000000000000 | Y           | Y           | Y           | Y           | Y           | Y         | Y           | Y             | Y            | Y         | Y          | Y               | Y          | Y          |
+-----------+-------+------------------+-------------+-------------+-------------+-------------+-------------+-----------+-------------+---------------+--------------+-----------+------------+-----------------+------------+------------+
4 rows in set (0.00 sec)

mysql>


--------------------------------------------------------------------------------------

Link: http://www.asm32.net/article_details.aspx?id=26


浏览次数 548 发布时间 2005/11/22 21:25:37 从属分类 CODE 【评论】【 】【打印】【关闭
 
| www.asm32.net | 2006版 | 资料中心 | linux | asm/asm32 | C/C++ | VC++ | java | 书签 | ASP.Net书签 | 京ICP备09029108号-1