Click here to Skip to main content
15,889,335 members
Home / Discussions / C#
   

C#

 
GeneralRe: Manipulating ArrayList Obj thru reference Pin
Philip Fitzsimons4-Jul-03 2:56
Philip Fitzsimons4-Jul-03 2:56 
GeneralBreakpoint does not work Pin
Mertli Ozgur Nevres4-Jul-03 0:05
Mertli Ozgur Nevres4-Jul-03 0:05 
GeneralRe: Breakpoint does not work Pin
rahtrow4-Jul-03 5:26
rahtrow4-Jul-03 5:26 
GeneralGetting COM type information in C# Pin
Simon_uk3-Jul-03 22:46
Simon_uk3-Jul-03 22:46 
GeneralRe: Getting COM type information in C# Pin
Kant4-Jul-03 7:14
Kant4-Jul-03 7:14 
GeneralRe: Getting COM type information in C# Pin
Simon_uk6-Jul-03 22:23
Simon_uk6-Jul-03 22:23 
GeneralRe: Getting COM type information in C# Pin
Kant7-Jul-03 4:59
Kant7-Jul-03 4:59 
GeneralRe: Getting COM type information in C# Pin
Simon_uk7-Jul-03 22:29
Simon_uk7-Jul-03 22:29 
This is what I did Kant:
LoadTypeLibEx(lstrFilename, RegKind.RegKind_None, out typeLib ); 
if (typeLib != null)
{
  AssemblyBuilder asm = converter.ConvertTypeLibToAssembly(typeLib, "tmplib.dll", 0, eventHandler, null, null, null, null );   
  Type[] types = asm.GetTypes();  //Get an array of types contained in the assembly
}

Once you have this, you can loop around the types to get the methods...
for (int i = 0; i < types.Length; i++)
{
  MemberInfo[] meths = types[i].GetMembers();
  for (int j = 0; j < meths.Length; j++)
  {
    MessageBox.Show(meths[j].Name);
  }
}


Hope this is useful to you. Thanks again for your help,
Simon.
GeneralRe: Getting COM type information in C# Pin
Kant8-Jul-03 7:06
Kant8-Jul-03 7:06 
GeneralRe: Getting COM type information in C# Pin
Simon_uk9-Jul-03 2:08
Simon_uk9-Jul-03 2:08 
GeneralDrag Drop Pin
gharrison3-Jul-03 22:21
gharrison3-Jul-03 22:21 
GeneralFinding Window Postion in relation to the entire screen Pin
jtmtv183-Jul-03 14:39
jtmtv183-Jul-03 14:39 
GeneralRe: Finding Window Postion in relation to the entire screen Pin
J. Dunlap3-Jul-03 14:53
J. Dunlap3-Jul-03 14:53 
GeneralRe: Finding Window Postion in relation to the entire screen Pin
jtmtv183-Jul-03 15:05
jtmtv183-Jul-03 15:05 
QuestionHow to combine different projects into one big project. Pin
ChiYung3-Jul-03 12:22
ChiYung3-Jul-03 12:22 
AnswerRe: How to combine different projects into one big project. Pin
Anonymous5-Jul-03 21:03
Anonymous5-Jul-03 21:03 
GeneralRe: How to combine different projects into one big project. Pin
ChiYung5-Jul-03 21:10
ChiYung5-Jul-03 21:10 
Generaldelay or producing a gap Pin
Asim N.3-Jul-03 5:35
Asim N.3-Jul-03 5:35 
GeneralRe: delay or producing a gap Pin
dazinith3-Jul-03 5:54
dazinith3-Jul-03 5:54 
GeneralWMI Provider Pin
mavriq1013-Jul-03 5:35
mavriq1013-Jul-03 5:35 
GeneralRe: WMI Provider Pin
Mazdak4-Jul-03 11:09
Mazdak4-Jul-03 11:09 
GeneralC# Excel Add-in Question Pin
Francis B.3-Jul-03 3:45
Francis B.3-Jul-03 3:45 
GeneralCreating Tab Forms Pin
mcgahanfl3-Jul-03 3:25
mcgahanfl3-Jul-03 3:25 
GeneralRe: Creating Tab Forms Pin
dazinith3-Jul-03 5:52
dazinith3-Jul-03 5:52 
GeneralRe: Creating Tab Forms Pin
Rocky Moore3-Jul-03 20:30
Rocky Moore3-Jul-03 20:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.