Click here to Skip to main content
15,925,081 members
Home / Discussions / C#
   

C#

 
GeneralRe: Scan and Compare Pin
Bill Dean7-Apr-04 7:01
Bill Dean7-Apr-04 7:01 
GeneralTextBox Paste Pin
Simon Wren6-Apr-04 3:00
professionalSimon Wren6-Apr-04 3:00 
GeneralRe: TextBox Paste Pin
Heath Stewart6-Apr-04 3:34
protectorHeath Stewart6-Apr-04 3:34 
GeneralRe: TextBox Paste Pin
Simon Wren6-Apr-04 3:37
professionalSimon Wren6-Apr-04 3:37 
QuestionHow I may safe close my application? Pin
novitzky6-Apr-04 2:59
novitzky6-Apr-04 2:59 
AnswerRe: How I may safe close my application? Pin
Simon Wren6-Apr-04 3:06
professionalSimon Wren6-Apr-04 3:06 
GeneralRe: How I may safe close my application? Pin
Heath Stewart6-Apr-04 3:40
protectorHeath Stewart6-Apr-04 3:40 
GeneralRe: How I may safe close my application? Pin
Simon Wren6-Apr-04 3:46
professionalSimon Wren6-Apr-04 3:46 
GeneralRe: How I may safe close my application? Pin
Heath Stewart6-Apr-04 3:51
protectorHeath Stewart6-Apr-04 3:51 
AnswerRe: How I may safe close my application? Pin
LongRange.Shooter6-Apr-04 3:08
LongRange.Shooter6-Apr-04 3:08 
AnswerRe: How I may safe close my application? Pin
Colin Angus Mackay6-Apr-04 3:11
Colin Angus Mackay6-Apr-04 3:11 
AnswerRe: How I may safe close my application? Pin
novitzky6-Apr-04 4:22
novitzky6-Apr-04 4:22 
GeneralDisabling Text Wrap on DrawString() Pin
Tristan Rhodes6-Apr-04 2:54
Tristan Rhodes6-Apr-04 2:54 
GeneralRe: Disabling Text Wrap on DrawString() Pin
Heath Stewart6-Apr-04 3:23
protectorHeath Stewart6-Apr-04 3:23 
QuestionDirect X transformation? Pin
SherKar6-Apr-04 2:53
SherKar6-Apr-04 2:53 
AnswerRe: Direct X transformation? Pin
Heath Stewart6-Apr-04 3:22
protectorHeath Stewart6-Apr-04 3:22 
GeneralRe: Direct X transformation? Pin
SherKar7-Apr-04 4:29
SherKar7-Apr-04 4:29 
GeneralRe: Direct X transformation? Pin
Heath Stewart7-Apr-04 5:17
protectorHeath Stewart7-Apr-04 5:17 
GeneralRe: .NET Pin
CWIZO6-Apr-04 2:41
CWIZO6-Apr-04 2:41 
GeneralRe: .NET Pin
Colin Angus Mackay6-Apr-04 2:45
Colin Angus Mackay6-Apr-04 2:45 
GeneralDlls Pin
jithen_dt6-Apr-04 2:33
jithen_dt6-Apr-04 2:33 
GeneralRe: Dlls Pin
Heath Stewart6-Apr-04 3:20
protectorHeath Stewart6-Apr-04 3:20 
Yes, so long as they expose CCWs, or COM-Callable Wrappers (which is the best way, and VB6 is entirely built on OLE/COM anyway). See Nick's article, Creating a CCW for COM-enabled, non-.NET Applications[^], and read Exposing .NET Framework Components to COM[^] in the .NET Framework SDK.

A few important things to note: explicitly define your class and interfaces GUIDs (using the GuidAttribute), and DO NOT use auto-generated class interfaces. Instead, attribute your class with ClassInterface(ClassInterfaceType.None) and explicitly declare your class interface and implement it as the first interface in the list of interfaces. Make sure you declare your interface as an automation interface by attributing your interface with InterfaceType(ComInterfaceType.InterfaceIsIDispatch) (or ComInterfaceType.InterfaceIsDual). Since VB6 depends on automation, declaring your interface as an IUnknown implementation won't work.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Dlls Pin
scadaguy6-Apr-04 3:24
scadaguy6-Apr-04 3:24 
GeneralClient Pinging Server Pin
Prasad Anand6-Apr-04 1:04
Prasad Anand6-Apr-04 1:04 
GeneralRe: Client Pinging Server Pin
Heath Stewart6-Apr-04 3:12
protectorHeath Stewart6-Apr-04 3:12 

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.