
27.01.2010, 23:49
|
|
Новичок
Регистрация: 24.01.2010
Сообщений: 21
С нами:
8576424
Репутация:
0
|
|
Попробовал. Не получилось. В качестве загружаемого файла я использовал дипспетчер задачь Windows XP. Вот код :
Код:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Reflection;
using System.IO;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
Assembly a = Assembly.GetExecutingAssembly();
public Form1()
{
InitializeComponent();
Test();
}
private void Test()
{
Stream st = a.GetManifestResourceStream("taskmgr.exe");
StreamWriter sr = new StreamWriter("D:\\taskman.exe");
MessageBox.Show(st.ReadByte());
}
}
}
|
|
|