Click here to Skip to main content
15,891,184 members
Home / Discussions / C#
   

C#

 
GeneralRe: Saving JPG File Pin
Mazdak18-Feb-04 7:56
Mazdak18-Feb-04 7:56 
GeneralCheckBoxItem DataBinding problems Pin
ParrotBoy18-Feb-04 7:04
ParrotBoy18-Feb-04 7:04 
GeneralRe: CheckBoxItem DataBinding problems Pin
Heath Stewart18-Feb-04 11:18
protectorHeath Stewart18-Feb-04 11:18 
GeneralHiding a Fullscreen App (game) Pin
Kir Birger18-Feb-04 6:27
Kir Birger18-Feb-04 6:27 
GeneralRe: Hiding a Fullscreen App (game) Pin
Heath Stewart18-Feb-04 10:45
protectorHeath Stewart18-Feb-04 10:45 
GeneralAutomation Pin
yyf18-Feb-04 5:46
yyf18-Feb-04 5:46 
GeneralRe: Automation Pin
Mazdak18-Feb-04 6:03
Mazdak18-Feb-04 6:03 
GeneralRe: Automation Pin
Heath Stewart18-Feb-04 10:30
protectorHeath Stewart18-Feb-04 10:30 
When you add an assembly reference (an interop assembly is created automatically for COM libraries), you must know in which library the COM object is contained.

To generate an ActiveX wrapper (known as a Runtime Callable Wrapper, or RCW) for this specific object, right-click on the toolbox and select Customize (or similar). Click the COM tab and find the control you're looking for. This generates a wrapper, which you can then use the new operator to instantiate. The typelib for that ActiveX control is converted to an interop assembly and automatically added to your project references.

.NET isn't VB6 - far from it. It's a type-safe runtime that manages memory and provides code access security, among many other things.

For more information on COM interoperability in .NET, see Interoperating with Unmanaged Code[^] in the .NET Framework SDK on MSDN Online, specifically the section Exposing COM Components to the .NET Framework[^].

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Automation Pin
yyf19-Feb-04 3:13
yyf19-Feb-04 3:13 
GeneralRe: Automation Pin
Heath Stewart19-Feb-04 3:20
protectorHeath Stewart19-Feb-04 3:20 
GeneralRe: Automation Pin
yyf19-Feb-04 8:13
yyf19-Feb-04 8:13 
GeneralRe: Automation Pin
Heath Stewart19-Feb-04 8:44
protectorHeath Stewart19-Feb-04 8:44 
Generalopen shared folder Pin
elite2k18-Feb-04 5:35
elite2k18-Feb-04 5:35 
GeneralRe: open shared folder Pin
CWIZO18-Feb-04 6:56
CWIZO18-Feb-04 6:56 
GeneralRe: open shared folder Pin
Heath Stewart18-Feb-04 10:20
protectorHeath Stewart18-Feb-04 10:20 
GeneralRe: open shared folder Pin
Heath Stewart18-Feb-04 10:24
protectorHeath Stewart18-Feb-04 10:24 
GeneralRe: open shared folder Pin
elite2k18-Feb-04 21:49
elite2k18-Feb-04 21:49 
GeneralRe: open shared folder Pin
Heath Stewart19-Feb-04 3:48
protectorHeath Stewart19-Feb-04 3:48 
GeneralProgressBar into StatusBar Pin
Weiye Chen18-Feb-04 4:29
Weiye Chen18-Feb-04 4:29 
GeneralRe: ProgressBar into StatusBar Pin
Heath Stewart18-Feb-04 4:51
protectorHeath Stewart18-Feb-04 4:51 
GeneralRe: ProgressBar into StatusBar Pin
Weiye Chen27-Feb-04 17:53
Weiye Chen27-Feb-04 17:53 
GeneralRe: ProgressBar into StatusBar Pin
Heath Stewart28-Feb-04 3:30
protectorHeath Stewart28-Feb-04 3:30 
GeneralRe: ProgressBar into StatusBar Pin
Weiye Chen28-Feb-04 3:58
Weiye Chen28-Feb-04 3:58 
GeneralAsyncronous Remoting... Pin
Blue_Aqua18-Feb-04 0:53
Blue_Aqua18-Feb-04 0:53 
GeneralRe: Asyncronous Remoting... Pin
Heath Stewart18-Feb-04 4:40
protectorHeath Stewart18-Feb-04 4:40 

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.