Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
G

goldli

@goldli
About
Posts
14
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to know a EXE file was written by .net language or not?
    G goldli

    yes,the Reflector could do that,but,i want do that with my C# code .

    C# csharp tutorial question

  • How to know a EXE file was written by .net language or not?
    G goldli

    i think i know the way you said before,but,i do not know the code.

    C# csharp tutorial question

  • How to know a EXE file was written by .net language or not?
    G goldli

    just wait for the answer.

    C# csharp tutorial question

  • How to know a EXE file was written by .net language or not?
    G goldli

    i mean use C# to do that

    C# csharp tutorial question

  • How to know a EXE file was written by .net language or not?
    G goldli

    How to know a EXE file was written by .net language or not?

    C# csharp tutorial question

  • how to use the a interface declared in a dll
    G goldli

    i know the way you said, and, you see , if i just know the interface'name ,can i have the dllTypeInterface object?

    C# tutorial question

  • how to use the a interface declared in a dll
    G goldli

    there are interfaces declared in a dll below -------------------- Encrypt.dll ------------------------- interface IDESCoder { string CreateCode(string IVString,string KeyString,string StringToEncode); string GetCode(string IVString, string KeyString, string StringToDecode); } interface IMD5Encoder { string CreateCode(string StringToEncode); } public class ClsDES : IDESCoder { public string CreateCode(string IVString, string KeyString, string StringToEncode) { } public string GetCode(string IVString, string KeyString, string StringToDecode) { } private Boolean CheckIVKey(string IVString, string KeyString, string StringToEncode) { } } public class CldMD5 : IMD5Encoder { public string CreateCode(string StringToEncode) { } } ----------------------------------------------------------------------- and there is a Host -------------------- test.exe ---------------------------------------- string filepath = @"E:\Encrypt.dll"; Assembly myDllAssembly = Assembly.LoadFrom(filepath); Type dllType = myDllAssembly.GetType("IDESCoder"); if (dllType!=null) { ......?????? } ------------------------------------------------------------------------- then,what should i do next with Reflection if i want to use Interface declared in the dll??

    C# tutorial question

  • using Reflection
    G goldli

    thank you. it works.

    C# question debugging

  • using Reflection
    G goldli

    there is a dll. code below -------------------------- namespace CommonFunctionLibrary { public class ClsMain { public string setValue(string a,ref string b) { b = a; return a; } } } ------------------------------------------------------- and there is a Host -------------------------------------------------------------------- string filepath = @"E:\VS2005_work\CommonFunctionLibrary\CommonFunctionLibrary\bin\Debug\CommonFunctionLibrary.dll"; string s = string.Empty; string p = string.Empty; Assembly myDllAssembly = Assembly.LoadFrom(filepath); Type dllType = myDllAssembly.GetType("CommonFunctionLibrary.ClsMain"); MethodInfo dllMethod = dllType.GetMethod("setValue"); if (dllMethod != null) { Object dllObj = Activator.CreateInstance(dllType); s=(string)dllMethod.Invoke(dllObj, new object[] {"goldli",p }); MessageBox.Show(s+"\r\n"+p); } myDllAssembly = null; ------------------------------------------------------------------------------ question: 1、the Invoke method no need to use "ref" ,why? 2、the "p" parameter has no return value,why?

    C# question debugging

  • how to make a form behind all the desktop icons
    G goldli

    yes , just a window form as the Desktop Background behind other icons ,perhaps,a application running at the same time can notes me something to do throw the form.

    C / C++ / MFC

  • how to make a form behind all the desktop icons
    G goldli

    how to make a form behind all the desktop icons

    C / C++ / MFC

  • how to draw listbox items with different itemheight when i selected a item
    G goldli

    how to draw listbox items with different itemheight when i select a item? the example pictures at http://goldli.s75.53dns.com/2.jpg http://goldli.s75.53dns.com/1.jpg I know that use MeasureItem and DrawItem Method to draw,but i can only draw same height items.

    C#

  • Validating Email Address
    G goldli

    http://regexlib.com/Search.aspx?k=ip+address code below matchs ip string RegString = @"^(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])$"; Regex RegObj = new Regex(RegString); if (!RegObj.IsMatch(ipString)) MessageBox.Show("error", MessageBoxButtons.OK, MessageBoxIcon.Error);

    C# com help question

  • How to make a listview looks like the windows explorer?
    G goldli

    How to make a listview looks like the windows explorer? Just look the picture at http://goldli.s75.53dns.com/desktop.jpg the listview item can be splited by http://goldli.s75.53dns.com/desktop1.jpg or http://goldli.s75.53dns.com/desktop2.jpg if you can not see the pictures ,please send me a mail : goldli@tom.com

    C# com tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups