Error : Since Class has comimport attribute, method must be extern or abstract

Posted by Peermohamedmydeen under C# on 8/26/2010 | Points: 10 | Views : 3812 | Status : [Member] | Replies : 1
Dear All,

I am working in a Excel RTD Server functionality.
My code looks like...


[ComImport]
[TypeLibType(2)]
[Guid("....................................")]
[ClassInterface()]

public class RTDFunctions : IRtdServer
{
public int ServerStart()
{
//Some body
}
}

I am getting the following error.
Since 'RTDFunctions' has comimport attribute, 'ServerStart' must be extern or abstract.

Thanks in advance.
PMM :)




Responses

Posted by: Lalji_mer on: 11/11/2010 [Member] Bronze | Points: 25

Up
0
Down
hi,

you will get some idea from this link pls try this

http://msdn.microsoft.com/en-us/library/a8hbk8dy%28VS.90%29.aspx

LP MER

Peermohamedmydeen, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response