Click here to Skip to main content
15,917,321 members
Home / Discussions / C#
   

C#

 
GeneralRe: TreeView Problem Pin
Serge R1-May-02 7:48
Serge R1-May-02 7:48 
GeneralRe: TreeView Problem Pin
1-May-02 12:20
suss1-May-02 12:20 
Question??? Pin
1-May-02 1:28
suss1-May-02 1:28 
AnswerRe: ??? Pin
Nick Parker1-May-02 3:05
protectorNick Parker1-May-02 3:05 
GeneralCrystal Report Pin
BLaZiNiX30-Apr-02 17:23
BLaZiNiX30-Apr-02 17:23 
GeneralRe: Crystal Report Pin
Nick Parker30-Apr-02 17:59
protectorNick Parker30-Apr-02 17:59 
QuestionHow do i...... Pin
Ollie30-Apr-02 11:44
Ollie30-Apr-02 11:44 
AnswerRe: How do i...... Pin
Ollie30-Apr-02 23:27
Ollie30-Apr-02 23:27 
The answer is....


Type comType = Type.GetTypeFromCLSID( new Guid( "12345678-0000-....") );
object comObj = Activator.CreateInstance( comType );

// if you have type infos (tlbimp/reference), try to cast:
YourCOMClass yourObj = (YourCOMClass) comObj;

// or for some special imported types, wrap:
// YourCOMClass yourObj = (YourCOMClass) Marshal.CreateWrapperOfType( comObj, typeof(YourCOMClass) );


To access remote by DCOM:
Type dcomType = Type.GetTypeFromCLSID( guid, "REMOTE_PC", false );
Wink | ;) Smile | :)
GeneralReadOnly for UserControl Pin
30-Apr-02 11:39
suss30-Apr-02 11:39 
GeneralRe: ReadOnly for UserControl Pin
Nish Nishant30-Apr-02 14:19
sitebuilderNish Nishant30-Apr-02 14:19 
GeneralRe: ReadOnly for UserControl Pin
James T. Johnson30-Apr-02 16:30
James T. Johnson30-Apr-02 16:30 
GeneralProcess Messages Pin
Serge R30-Apr-02 10:41
Serge R30-Apr-02 10:41 
GeneralRe: Process Messages Pin
Neil Van Note30-Apr-02 11:46
Neil Van Note30-Apr-02 11:46 
QuestionCan C++ & C# co-exist in the same project? Pin
Li-kai Liu (Angus)30-Apr-02 10:32
Li-kai Liu (Angus)30-Apr-02 10:32 
AnswerRe: Can C++ & C# co-exist in the same project? Pin
30-Apr-02 11:02
suss30-Apr-02 11:02 
AnswerRe: Can C++ & C# co-exist in the same project? Pin
James T. Johnson30-Apr-02 13:02
James T. Johnson30-Apr-02 13:02 
AnswerRe: Can C++ & C# co-exist in the same project? Pin
Nick Parker30-Apr-02 17:24
protectorNick Parker30-Apr-02 17:24 
AnswerRe: Can C++ & C# co-exist in the same project? Pin
Albert Pascual1-May-02 7:44
sitebuilderAlbert Pascual1-May-02 7:44 
GeneralDrawing on dialog controls MFC vs .NET Pin
Zombies with Coffee, LLC30-Apr-02 9:28
professionalZombies with Coffee, LLC30-Apr-02 9:28 
GeneralRe: Drawing on dialog controls MFC vs .NET Pin
BLaZiNiX30-Apr-02 17:18
BLaZiNiX30-Apr-02 17:18 
GeneralRe: Drawing on dialog controls MFC vs .NET Pin
Zombies with Coffee, LLC30-Apr-02 18:11
professionalZombies with Coffee, LLC30-Apr-02 18:11 
GeneralDisplay each Form from an arraylist of Form names Pin
Prash30-Apr-02 7:28
Prash30-Apr-02 7:28 
GeneralRe: Display each Form from an arraylist of Form names Pin
Nick Parker30-Apr-02 8:13
protectorNick Parker30-Apr-02 8:13 
GeneralRe: Display each Form from an arraylist of Form names Pin
Prash30-Apr-02 20:02
Prash30-Apr-02 20:02 
GeneralDataBinding Pin
Mazdak30-Apr-02 5:23
Mazdak30-Apr-02 5:23 

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.