BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Importing Class into BDS2006

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi (General)
View previous topic :: View next topic  
Author Message
mvandere@iprimus.com.au
Guest





PostPosted: Thu Apr 20, 2006 1:03 am    Post subject: Importing Class into BDS2006 Reply with quote



I am trying to create a plugin that has its class defined in a C# .net
DLL

In C# a code snippet would be:-
using System;
using GBPVR.Public;

namespace HelloMark
{
public class HelloMarkTask : IMenuTask

When I type IMenuTask I would be then prompted to press TAB to
implement the stubs for the interface.

I am trying to achieve the same thing in Delphi.net 2006. I create a
new library, add the reference to GBPVRPublic, add a new class and try
to make it an IMenuTask like this:-

TClass1 = class(IMenuTask)
private
{ Private Declarations }
public
constructor Create;
end;
Which is OK for the Syntax parser but on Compiling I get:-
[Pascal Error] helloworld.pas(7): E2021 Class type required

How should I go about this, and how do I get the stubs implemented?
Back to top
Riki Wiki Google
Guest





PostPosted: Sun Apr 23, 2006 2:03 am    Post subject: Re: Importing Class into BDS2006 Reply with quote



Hoi

Your question is more fitting for the newsgroup
b.p.d.language.delphi.dotnet, try to repost the question there, and do
the repost to the Borland news server to make everybody see your
message.

Take a look here:
<http://tinyurl.com/8m5nw>
which links to
<http://delphi.wikicities.com/wiki/Delphi_Newsgroups>
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi (General) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.