Click here to Skip to main content
15,902,871 members
Home / Discussions / C#
   

C#

 
QuestionWPF frame control, pass options Pin
NikoTanghe23-Jan-07 9:22
NikoTanghe23-Jan-07 9:22 
Questionsearch text in html Pin
nima_dir23-Jan-07 8:39
nima_dir23-Jan-07 8:39 
QuestionPositioning controls on n Physical Screens [modified] Pin
TCHamilton23-Jan-07 7:58
TCHamilton23-Jan-07 7:58 
AnswerRe: Positioning controls on n Physical Screens Pin
Luc Pattyn23-Jan-07 14:17
sitebuilderLuc Pattyn23-Jan-07 14:17 
GeneralRe: Positioning controls on n Physical Screens Pin
TCHamilton24-Jan-07 7:52
TCHamilton24-Jan-07 7:52 
QuestionConfiugration files Pin
peshawarcoder23-Jan-07 7:36
peshawarcoder23-Jan-07 7:36 
AnswerRe: Confiugration files Pin
Bassam Saoud23-Jan-07 9:25
Bassam Saoud23-Jan-07 9:25 
QuestionCOM library stuff Pin
jesarg23-Jan-07 6:54
jesarg23-Jan-07 6:54 
I am working on a C# .NET Winforms project, and I'm stuck on an obscure issue relating to COM and .NET. No one in the company I work at is particularly experienced in COM / .NET interop, and I've already spent too many hours searching books and internet sources for good information on the topic. I was hoping that some person with experience could shed some light on how I should proceed.

Here's the issue:

I am rewriting legacy code that was written in C and C++. The purpose of one piece of legacy code is to display all COM libraries in the registry and allow the user to select the name of the COM library they want and the name of the COM object (in that library) that they want. It then saves information about the COM object (library GUID, interface GUID, and class GUID) of this COM object into a database for further use.

It accomplishes this task by creating an ITypeLib object, which is used to open the library and extract the introspection data from the library. *(note: the COM "introspection" concept is known as "reflection" in .NET)

The System.Runtime.InteropServices.ComTypes namespace (in C#) has an ITypeLib interface (and other interfaces that I need), but I can find no example of anyone implementing this interface in a usable way, and if I knew how to implement that interface to extract the data I need, I wouldn't have a problem in the first place.

Using C#, I can already extract the COM library information I need from the registry (all the library GUID's, descriptions, and full paths), but after that I'm stuck, as I cannot read these libraries for their introspection data.

Does anyone have a clue as to what I need to do next? If so, thanks a lot in advance.
AnswerGiving up on this method Pin
jesarg23-Jan-07 10:59
jesarg23-Jan-07 10:59 
QuestionGood class to get file info from JPG ? Pin
Marcos Hernandez23-Jan-07 6:49
Marcos Hernandez23-Jan-07 6:49 
AnswerRe: Good class to get file info from JPG ? Pin
Dave Kreskowiak23-Jan-07 7:46
mveDave Kreskowiak23-Jan-07 7:46 
GeneralRe: Good class to get file info from JPG ? Pin
Marcos Hernandez23-Jan-07 9:33
Marcos Hernandez23-Jan-07 9:33 
GeneralRe: Good class to get file info from JPG ? Pin
Dave Kreskowiak23-Jan-07 12:41
mveDave Kreskowiak23-Jan-07 12:41 
AnswerRe: Good class to get file info from JPG ? Pin
Luc Pattyn24-Jan-07 14:58
sitebuilderLuc Pattyn24-Jan-07 14:58 
GeneralRe: Good class to get file info from JPG ? Pin
Marcos Hernandez24-Jan-07 19:37
Marcos Hernandez24-Jan-07 19:37 
GeneralRe: Good class to get file info from JPG ? Pin
Luc Pattyn24-Jan-07 20:23
sitebuilderLuc Pattyn24-Jan-07 20:23 
Questionno white spaces in enum Pin
MVPenn23-Jan-07 6:32
MVPenn23-Jan-07 6:32 
AnswerRe: no white spaces in enum Pin
Dave Kreskowiak23-Jan-07 7:35
mveDave Kreskowiak23-Jan-07 7:35 
GeneralRe: no white spaces in enum Pin
MVPenn23-Jan-07 8:01
MVPenn23-Jan-07 8:01 
GeneralRe: no white spaces in enum Pin
Stefan Troschuetz23-Jan-07 8:26
Stefan Troschuetz23-Jan-07 8:26 
GeneralRe: no white spaces in enum Pin
Pete O'Hanlon23-Jan-07 9:10
mvePete O'Hanlon23-Jan-07 9:10 
GeneralRe: no white spaces in enum Pin
Wjousts23-Jan-07 9:11
Wjousts23-Jan-07 9:11 
GeneralRe: no white spaces in enum Pin
Dave Kreskowiak23-Jan-07 12:34
mveDave Kreskowiak23-Jan-07 12:34 
AnswerRe: no white spaces in enum Pin
e-laj23-Jan-07 13:02
e-laj23-Jan-07 13:02 
QuestionRegular Expression for getting links on a web page Pin
Laxmi2723-Jan-07 4:58
Laxmi2723-Jan-07 4:58 

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.