Click here to Skip to main content
16,005,697 members
Home / Discussions / C#
   

C#

 
QuestionNetwork data transfer problem! Pin
Rojan Gh.16-Oct-06 13:05
professionalRojan Gh.16-Oct-06 13:05 
Questionc# in window based applications Pin
vamsi_inguva16-Oct-06 12:20
vamsi_inguva16-Oct-06 12:20 
AnswerRe: c# in window based applications Pin
Judah Gabriel Himango16-Oct-06 12:36
sponsorJudah Gabriel Himango16-Oct-06 12:36 
QuestionCreated dll for use in other language Pin
Nooie16-Oct-06 10:57
Nooie16-Oct-06 10:57 
AnswerRe: Created dll for use in other language Pin
Judah Gabriel Himango16-Oct-06 11:07
sponsorJudah Gabriel Himango16-Oct-06 11:07 
GeneralRe: Created dll for use in other language Pin
Nooie16-Oct-06 11:09
Nooie16-Oct-06 11:09 
GeneralRe: Created dll for use in other language [modified] Pin
Nooie16-Oct-06 11:52
Nooie16-Oct-06 11:52 
GeneralRe: Created dll for use in other language Pin
Judah Gabriel Himango16-Oct-06 12:34
sponsorJudah Gabriel Himango16-Oct-06 12:34 
I haven't done this in awhile, so my memory is a little foggy. A couple things jump out at me:

I believe you'll need an interface declared that defines the functionality you want available in COM. Something like:

[Guid("03AD5D2D-2AFD-439f-8713-A4EC0705B4D9")]
    interface ICheckDate
    {
        void DoThis();
        void DoThat();
    }


Then have you class implement that interface. I think you'll need the ClassInterface attribute on your class as well. Your class declaration should look like this:

[ClassInterface(ClassInterfaceType.None), Guid("1AD0462D-4FA2-4072-B63B-8B1D88212389")]
public class CheckDate : ICheckDate
{
   ...
}


I'm a little fuzzy on this though whole .NET-to-COM interop, so take it with a grain (or generous helping Poke tongue | ;-P ) of salt.


p.s. next time try <pre> tags around your code snippets.


*edit*

Looking at that article[^] again, it seems you need to call regasm tool to register the .NET assembly. I'd definitely check out that article and see for sure what needs to be done.


Tech, life, family, faith: Give me a visit.
I'm currently blogging about: God-as-Judge, God-as-Forgiver
The apostle Paul, modernly speaking: Epistles of Paul

Judah Himango


GeneralRe: Created dll for use in other language Pin
Nooie16-Oct-06 12:53
Nooie16-Oct-06 12:53 
GeneralRe: Created dll for use in other language Pin
Judah Gabriel Himango16-Oct-06 16:54
sponsorJudah Gabriel Himango16-Oct-06 16:54 
GeneralRe: Created dll for use in other language Pin
Nooie16-Oct-06 17:25
Nooie16-Oct-06 17:25 
GeneralRe: Created dll for use in other language Pin
Judah Gabriel Himango16-Oct-06 17:27
sponsorJudah Gabriel Himango16-Oct-06 17:27 
GeneralRe: Created dll for use in other language Pin
Nooie16-Oct-06 17:40
Nooie16-Oct-06 17:40 
GeneralRe: Created dll for use in other language Pin
Judah Gabriel Himango16-Oct-06 17:47
sponsorJudah Gabriel Himango16-Oct-06 17:47 
GeneralRe: Created dll for use in other language Pin
Nooie16-Oct-06 17:56
Nooie16-Oct-06 17:56 
GeneralRe: Created dll for use in other language Pin
Judah Gabriel Himango16-Oct-06 18:06
sponsorJudah Gabriel Himango16-Oct-06 18:06 
GeneralRe: Created dll for use in other language Pin
Nooie16-Oct-06 18:27
Nooie16-Oct-06 18:27 
GeneralRe: Created dll for use in other language Pin
Judah Gabriel Himango17-Oct-06 4:23
sponsorJudah Gabriel Himango17-Oct-06 4:23 
QuestionDatagrid configuration questions. Pin
Dan Neely16-Oct-06 10:55
Dan Neely16-Oct-06 10:55 
AnswerRe: Datagrid configuration questions. Pin
Judah Gabriel Himango16-Oct-06 12:40
sponsorJudah Gabriel Himango16-Oct-06 12:40 
GeneralRe: Datagrid configuration questions. Pin
Dan Neely17-Oct-06 2:19
Dan Neely17-Oct-06 2:19 
QuestionBackground Thread execution time Pin
DMBFiredancer16-Oct-06 9:57
DMBFiredancer16-Oct-06 9:57 
AnswerRe: Background Thread execution time Pin
Judah Gabriel Himango16-Oct-06 11:36
sponsorJudah Gabriel Himango16-Oct-06 11:36 
GeneralRe: Background Thread execution time Pin
DMBFiredancer17-Oct-06 2:31
DMBFiredancer17-Oct-06 2:31 
AnswerRe: Background Thread execution time Pin
mav.northwind16-Oct-06 18:45
mav.northwind16-Oct-06 18:45 

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.