Click here to Skip to main content
15,924,507 members
Home / Discussions / C#
   

C#

 
GeneralRe: Read data directly from harddrive Pin
lindan5-Jan-05 1:53
lindan5-Jan-05 1:53 
GeneralGentle.NET and Cascade Deletes Pin
devvvy4-Jan-05 23:46
devvvy4-Jan-05 23:46 
GeneralRe: Gentle.NET and Cascade Deletes Pin
Paul Ingles5-Jan-05 0:58
Paul Ingles5-Jan-05 0:58 
GeneralRe: Gentle.NET and Cascade Deletes Pin
devvvy5-Jan-05 3:45
devvvy5-Jan-05 3:45 
Generalc# GDI+ Photoshop like filters Pin
vansen4-Jan-05 23:37
vansen4-Jan-05 23:37 
GeneralRe: c# GDI+ Photoshop like filters Pin
Nick Parker5-Jan-05 8:02
protectorNick Parker5-Jan-05 8:02 
GeneralCreating Interop Wrapper Pin
DHARMA.R4-Jan-05 23:23
DHARMA.R4-Jan-05 23:23 
GeneralRe: Creating Interop Wrapper Pin
Paul Ingles4-Jan-05 23:40
Paul Ingles4-Jan-05 23:40 
You'll have to expose the VB code as an ActiveX DLL, enabling you to use .NET's COM interop support.

Here's an MSDN article that talks you through it:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/vcwlkCOMInteropPart1CClientTutorial.asp[^]

You'll need to scroll down a bit, to where it says Example 1: Using Tlbimp. This imports the type library, creating a managed gateway to the COM interfaces implemented by the server. All you have to do then is ensure you reference the generated assembly when compiling.

Alternatively, (if you want) you can actually declare the interfaces and GUIDs inside C# through applying attributes. Again, this is documented inside the MSDN article. However, if you've got a large interface you will probably prefer the automated approach.

For more information about .NET's interoperability, you'll definitely want to check out this section in MSDN:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconinteroperatingwithunmanagedcode.asp[^]

It covers things like threading, marshaling of types, lifecycle etc.

--
Paul
"Put the key of despair into the lock of apathy. Turn the knob of mediocrity slowly and open the gates of despondency - welcome to a day in the average office."
- David Brent, from "The Office"

MS Messenger: paul@oobaloo.co.uk
Download my PGP public key

Generalerror shown while working on xmltextreader Pin
dhol4-Jan-05 23:06
dhol4-Jan-05 23:06 
GeneralRe: error shown while working on xmltextreader Pin
exhaulted5-Jan-05 0:09
exhaulted5-Jan-05 0:09 
GeneralInstalling and Starting Services Pin
exhaulted4-Jan-05 22:55
exhaulted4-Jan-05 22:55 
GeneralOle Automation Pin
Jason Xie4-Jan-05 21:29
Jason Xie4-Jan-05 21:29 
GeneralRe: Ole Automation Pin
Heath Stewart4-Jan-05 21:56
protectorHeath Stewart4-Jan-05 21:56 
GeneralDifference between build and rebuild Pin
steve_rm4-Jan-05 20:34
steve_rm4-Jan-05 20:34 
GeneralRe: Difference between build and rebuild Pin
Heath Stewart4-Jan-05 21:36
protectorHeath Stewart4-Jan-05 21:36 
GeneralAsynchronous design question Pin
Yaakov Davis4-Jan-05 20:01
Yaakov Davis4-Jan-05 20:01 
GeneralRe: Asynchronous design question Pin
jan larsen4-Jan-05 21:14
jan larsen4-Jan-05 21:14 
GeneralRe: Asynchronous design question Pin
Yaakov Davis4-Jan-05 22:47
Yaakov Davis4-Jan-05 22:47 
GeneralRe: Asynchronous design question Pin
jan larsen4-Jan-05 22:57
jan larsen4-Jan-05 22:57 
GeneralRe: Asynchronous design question Pin
Yaakov Davis5-Jan-05 2:38
Yaakov Davis5-Jan-05 2:38 
GeneralRe: Asynchronous design question Pin
jan larsen5-Jan-05 3:28
jan larsen5-Jan-05 3:28 
GeneralC# hangs while opening word in web application Pin
NituP4-Jan-05 19:53
NituP4-Jan-05 19:53 
GeneralRe: C# hangs while opening word in web application Pin
Heath Stewart4-Jan-05 21:53
protectorHeath Stewart4-Jan-05 21:53 
Generalmdi strange problem Pin
Gavin Jeffrey4-Jan-05 19:13
Gavin Jeffrey4-Jan-05 19:13 
QuestionDistributed System in "Javaspaces-Style"?? Pin
stumpi4-Jan-05 16:50
stumpi4-Jan-05 16:50 

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.