Jump to content
Xtreme .Net Talk

SuperNeo

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by SuperNeo

  1. I want to be able to interecept a function such as BitBlt for all applications currently running and that are consequently run until windows successfully exits. When an application calls BitBlt my function should be called first so that my function can do some work and then call the real BitBlt. Please provide any code samples that you may have.
  2. Hello, everybody. Who can tell me how to disable capture screen? I need to write a program, when I run this program, any screen-capture software will not work. Thank you for your help!
  3. Now I can get a windows form appliction. And now, I wanna embed a resource file (a .rtf file) to the dynamically create windows form application. So I add this following code: parameters.Win32Resource = "my.rtf" But above code line result to compile error. The Error Number is BC31019, Error Text is "specified mapping file not include resource file". I don't know what the Error Text meaning. Who can give me a guide?
  4. Hi, everybody. I can use CodeDom to dynamically create a Windows Console Application(a exe file), like this: http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q304/6/54.ASP&NoWebContent=1 But I don't know how to dynamically create a Windows Form Application(a exe file) use CodeDom?Who can help me? If you can write a very simple example(just need display a windows form) to guide me?I will thank you much!
  5. I find a example at: http://www.c-sharpcorner.com/1/ExeOnFlyKunal.asp But this example write in C# I have rewrite example in VB.net, But get a error. My code is below: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Main() End Sub Public Shared Sub Main() Dim AppD As AppDomain AppD = AppDomain.CurrentDomain Dim AssemblyN As New AssemblyName AssemblyN.Name = "TestAsm" Dim AssemblyB As AssemblyBuilder AssemblyB = AppD.DefineDynamicAssembly(AssemblyN, AssemblyBuilderAccess.Save) Dim ModuleB As ModuleBuilder ModuleB = AssemblyB.DefineDynamicModule("testmod", "TestAsm.exe") Dim TypeB As TypeBuilder TypeB = ModuleB.DefineType("mytype", TypeAttributes.Public) Dim MethodB As MethodBuilder MethodB = TypeB.DefineMethod("hi", MethodAttributes.Public Or MethodAttributes.Static, GetType(String), New Type() {GetType(String)}) AssemblyB.SetEntryPoint(MethodB) Dim ILG As ILGenerator ILG = MethodB.GetILGenerator() ILG.EmitWriteLine("Hello World") ILG.Emit(OpCodes.Ret) TypeB.CreateType() AssemblyB.Save("TestAsm.exe") End Sub End Class How to I can fix my code?
  6. Thank you for yourhelp. I wanna dynamic assembly an actual exe. But I cannot understand your first way. How to Generate the code as a text file and compile from program A? My VB.net and english are all very poor. Can you explain your first way more detail?
  7. Hello everybody. I use VB.net. I have a problem about how to creat exe file from my application on runtime. That is: I have a program A, I want A can dynamic creat a program B on runtime. B have been custom by some parameter that user input to A. How can I do this? Who can teach me? Thanks!!!
×
×
  • Create New...