| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 905 人关注过本帖
标题:平安夜快乐!分享一个有趣的东西!
只看楼主 加入收藏
cyhdahua
Rank: 7Rank: 7Rank: 7
来 自:山东
等 级:黑侠
威 望:2
帖 子:221
专家分:643
注 册:2012-6-15
收藏
得分:4 
哎呀!看你这画面怎么好像3年前我玩的那个999朵玫瑰恶意插件!!

WE GO
2012-12-24 23:18
wp231957
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
来 自:神界
等 级:贵宾
威 望:423
帖 子:13688
专家分:53332
注 册:2012-10-18
收藏
得分:0 
以下是引用额外覆盖在2012-12-24 23:17:20的发言:

不说它,哪位大神指教一下如何编程实现输出一张图片的功能
你想往哪里输出啊 cui不行吧  怎么着也得是gui吧

gui的话 有图像控件 很容易的

楼主的附件代码 貌似用了OPENGL (我猜的)

DO IT YOURSELF !
2012-12-24 23:19
wp231957
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
来 自:神界
等 级:贵宾
威 望:423
帖 子:13688
专家分:53332
注 册:2012-10-18
收藏
得分:0 
程序代码:
int __stdcall WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
{
  HDC v4; // edi@1
  __int32 v5; // eax@4
  __int32 v6; // edx@5
  __int32 v7; // edx@8
  BOOL v8; // eax@10
  int result; // eax@11
  MSG Msg; // [sp+Ch] [bp-24h]@15
  CHAR BitmapName; // [sp+28h] [bp-8h]@2

  v4 = CreateICA("DISPLAY", 0, 0, 0);
  for ( dword_409570 = 0; dword_409570 < 6; ++dword_409570 )
  {
    wsprintfA(&BitmapName, "BM_I%d", dword_409570);
    *(&dword_409540 + dword_409570) = LoadBitmapA(hInstance, &BitmapName);
    wsprintfA(&BitmapName, "BM_M%d", dword_409570);
    *(&dword_409558 + dword_409570) = LoadBitmapA(hInstance, &BitmapName);
  }
  v5 = time(0);
  srand(v5);
  ::hInstance = hInstance;
  nWidth = GetDeviceCaps(v4, 8);
  nHeight = GetDeviceCaps(v4, 10);
  if ( nWidth )
    v6 = _lrand() % nWidth;
  else
    v6 = 0;
  dword_409574 = v6;
  if ( nHeight )
    v7 = _lrand() % nHeight;
  else
    v7 = 0;
  dword_409578 = v7;
  v8 = DeleteDC(v4);
  if ( sub_401309(v8) )
  {
    if ( sub_401370() )
    {
      SetTimer(hWnd, 1u, 0x64u, 0);
      while ( GetMessageA(&Msg, 0, 0, 0) )
      {
        TranslateMessage(&Msg);
        DispatchMessageA(&Msg);
      }
      KillTimer(hWnd, 1u);
      for ( dword_409570 = 0; dword_409570 < 6; ++dword_409570 )
      {
        DeleteObject(*(&dword_409540 + dword_409570));
        DeleteObject(*(&dword_409558 + dword_409570));
      }
      result = 0;
    }
    else
    {
      result = 2;
    }
  }
  else
  {
    result = 1;
  }
  return result;
}

DO IT YOURSELF !
2012-12-24 23:29
额外覆盖
Rank: 14Rank: 14Rank: 14Rank: 14
等 级:城市猎人
威 望:6
帖 子:1726
专家分:5757
注 册:2012-9-22
收藏
得分:0 
回复 12楼 wp231957
感谢了!虽然还是不知道怎么弄,不过也学了3个专业名词,了解了一点新东西!

我现在所学的一切都是为了游戏!!!为了游戏,加油!加油!努力!
2012-12-24 23:29
wp231957
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
来 自:神界
等 级:贵宾
威 望:423
帖 子:13688
专家分:53332
注 册:2012-10-18
收藏
得分:0 

  bytes   pages size description
--------- ----- ---- --------------------------------------------
  3661824   447 8192 allocating memory for b-tree...
  3661824   447 8192 allocating memory for virtual array...
   262144    32 8192 allocating memory for name pointers...
-----------------------------------------------------------------
  7585792            total memory allocated

Loading processor module C:\Documents and Settings\Administrator\My Documents\ida61\procs\pc.w32 for metapc...OK
Autoanalysis subsystem has been initialized.
Possible file format: MS-DOS executable (EXE) (C:\Documents and Settings\Administrator\My Documents\ida61\loaders\dos.ldw)
Possible file format: Portable executable for 80386 (PE) (C:\Documents and Settings\Administrator\My Documents\ida61\loaders\pe.ldw)
Loading file 'F:\这个圣诞节很温暖\这个圣诞节很温暖.exe' into database...
Detected file format: Portable executable for 80386 (PE)
  0. Creating a new segment  (00401000-00408000) ... ... OK
  1. Creating a new segment  (00408000-0040D000) ... ... OK
  2. Creating a new segment  (0040D000-0040E000) ... ... OK
Reading exports directory...
Reading imports directory...
Applying fixups...
Plan  FLIRT signature: BCC v4.x/5.x & BCB v1.0/v7.0 BDS2006 win32 runtime
autoload.cfg: bh32rw32.sig autoloads bcb5win.til
Assuming __cdecl calling convention by default
main() function at 401184, named "WinMain"
Marking typical code sequences...
Flushing buffers, please wait...ok
File 'F:\这个圣诞节很温暖\这个圣诞节很温暖.exe' has been successfully loaded into the database.
Compiling file 'C:\Documents and Settings\Administrator\My Documents\ida61\idc\ida.idc'...
Executing function 'main'...
Compiling file 'C:\Documents and Settings\Administrator\My Documents\ida61\idc\onload.idc'...
Executing function 'OnLoad'...
IDA is analysing the input file...
You may start to explore the input file right now.
Using FLIRT signature: BCC v4.x/5.x & BCB v1.0/v7.0 BDS2006 win32 runtime
Propagating type information...
Function argument information has been propagated
The initial autoanalysis has been finished.
Hex-Rays Decompiler plugin has been loaded (v1.5.0.110408)
  License: 57-3B73-7AE4-E2 ESET spol. s r.o. (36 users)
  The hotkeys are F5: decompile, Ctrl-F5: decompile all.
  Please check the Edit/Plugins menu for more informaton.
--------------------------------------------------------------------------------------
Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)]
IDAPython v1.5.0 final (serial 0) (c) The IDAPython Team <idapython@

DO IT YOURSELF !
2012-12-24 23:29
wp231957
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
来 自:神界
等 级:贵宾
威 望:423
帖 子:13688
专家分:53332
注 册:2012-10-18
收藏
得分:0 
13楼的代码就是楼主的附件的winmain()的代码
可以猜一下 它是怎么写的

DO IT YOURSELF !
2012-12-24 23:31
额外覆盖
Rank: 14Rank: 14Rank: 14Rank: 14
等 级:城市猎人
威 望:6
帖 子:1726
专家分:5757
注 册:2012-9-22
收藏
得分:0 
呵呵,保存一下!现在还是先不纠结于此了,等我把前面的基础学好了再来研究这些!走都没学会就想跑了!

我现在所学的一切都是为了游戏!!!为了游戏,加油!加油!努力!
2012-12-24 23:32
cyhdahua
Rank: 7Rank: 7Rank: 7
来 自:山东
等 级:黑侠
威 望:2
帖 子:221
专家分:643
注 册:2012-6-15
收藏
得分:0 
就LZ这个软件的实现原理是
1.软件是全屏的。
2.软件的背景图片是:软件启动时桌面(显示器)上的画面。
3.在该软件上随机位置随机打印这几朵玫瑰!
4.点一下鼠标就没啦!

WE GO
2012-12-24 23:33
有容就大
Rank: 16Rank: 16Rank: 16Rank: 16
来 自:东土大唐
等 级:版主
威 望:74
帖 子:9048
专家分:14309
注 册:2011-11-11
收藏
得分:4 
恶意插件 恶意插件 呵呵

梅尚程荀
马谭杨奚







                                                       
2012-12-25 09:28
zklhp
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
来 自:china
等 级:贵宾
威 望:254
帖 子:11485
专家分:33241
注 册:2007-7-10
收藏
得分:4 
先学习了
2012-12-25 10:58
快速回复:平安夜快乐!分享一个有趣的东西!
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.018611 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved