Thread: dllimport
View Single Post
  #1 (permalink)  
Old July 16th, 2008, 12:58 AM
nitesh kumar nitesh kumar is offline
Registered User
 
Join Date: Jul 2008
Location: noida, up, India.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default dllimport

Hi,

   I had made an application in mfc .net 2005 and after compiling i got the dll, now i want to import those dll in c# to make the application in it. In the methods defined in dll we have user defined refernce arguments like

BOOL call(Income &,const Interestrate &);

I need to call these functions in c#.
I tried to import dll and define function like this:

using System.Runtime.InteropServices;

public classMyapp
{
  [DllImport ("Income",EntryPoint="Incomerate")]
        public static extern bool Incomerate(Income &,const Interestrate &);
}

But I'm getting error Identifier expected;

please help.


Reply With Quote