xiaoguozi's Blog
Pay it forword - 我并不觉的自豪,我所尝试的事情都失败了······习惯原本生活的人不容易改变,就算现状很糟,他们也很难改变,在过程中,他们还是放弃了······他们一放弃,大家就都是输家······让爱传出去,很困难,也无法预料,人们需要更细心的观察别人,要随时注意才能保护别人,因为他们未必知道自己要什么·····
#include <windows.h>
#include 
<stdio.h>


BOOL IsWin7 () 
{
   OSVERSIONINFOEX osvi;
   DWORDLONG dwlConditionMask 
= 0;
   
int op=VER_GREATER;

   
// Initialize the OSVERSIONINFOEX structure.

   ZeroMemory(
&osvi, sizeof(OSVERSIONINFOEX));
   osvi.dwOSVersionInfoSize 
= sizeof(OSVERSIONINFOEX);
   osvi.dwMajorVersion 
= 6;
   osvi.dwMinorVersion 
= 1;

   
// Initialize the condition mask.

   VER_SET_CONDITION( dwlConditionMask, VER_MAJORVERSION, op );
   VER_SET_CONDITION( dwlConditionMask, VER_MINORVERSION, op );
  

   
// Perform the test.

   
return VerifyVersionInfo(
      
&osvi, 
      VER_MAJORVERSION 
| VER_MINORVERSION,
      dwlConditionMask);
}

void main()
{
    
if(IsWin7())
        printf(
"yes.\n");
    
else{
        printf(
"no.\n");
    }
}
posted @ 2010-04-27 11:10 小果子 阅读(204) | 评论 (0)编辑 收藏
#include <iostream>
#include 
<windows.h>
#include 
<iostream>
#include 
<psapi.h>
#include 
<sstream>
#include 
<fstream>

using namespace std;


int _tmain(int argc, _TCHAR* argv[],TCHAR* envp[])
{
    
//PTSTR pEnvBlock=::GetEnvironmentStrings();
    
//TCHAR szName[MAX_PATH];
    
//TCHAR szValue[MAX_PATH];
    int current=0;
    PTSTR
* pElement =(PTSTR*) envp;
    PTSTR pCurrent
=NULL;
    
while(pElement!=NULL){ 
        pCurrent
=(PTSTR)(*pElement);
        
if(pCurrent==NULL){
            pElement
=NULL;
        }
else{
            _tprintf(TEXT(
"[%u] %s\r\n"),current,pCurrent);
            current
++;
            pElement
++;
        }
    }
}
posted @ 2010-04-27 10:47 小果子 阅读(242) | 评论 (0)编辑 收藏
roll_over roll_out事件根据范围判定
mouse_down mouse_out 根据对象判定
mouse_down mouse_out 先于单击事件触发
双击事件触发时 mouse_down,mouse_out触发二次,单击事件触发一次,第二次单击时不处罚click

posted @ 2010-01-11 10:01 小果子 阅读(1216) | 评论 (0)编辑 收藏

 

try{
            OutputStreamWriter out 
= new OutputStreamWriter(new FileOutputStream(path),"UTF-8");
            out.write(common
+"\n");
            out.write(html);
            out.flush();
            out.close();
        }
catch(Exception   e){}
posted @ 2009-10-27 14:42 小果子 阅读(548) | 评论 (0)编辑 收藏

以前自己玩游戏时写的一个网页游戏小辅助,有兴趣的email

posted @ 2009-09-02 13:40 小果子 阅读(718) | 评论 (4)编辑 收藏
仅列出标题
共58页: First 37 38 39 40 41 42 43 44 45 Last