p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Windows Presentation Foundation (http://p2p.wrox.com/forumdisplay.php?f=206)
-   -   dllimport (http://p2p.wrox.com/showthread.php?t=69403)

nitesh kumar July 16th, 2008 12:58 AM

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.




All times are GMT -4. The time now is 12:22 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.