Wrox Programmer Forums
|
Windows Presentation Foundation Discussion of the beta version of Windows Presentation Foundation "WPF" formerly know as codename "Avalon" as well as the related XAML.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Windows Presentation Foundation section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 16th, 2008, 12:58 AM
Registered User
 
Join Date: Jul 2008
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.







Similar Threads
Thread Thread Starter Forum Replies Last Post
DLLIMPORT Help chris242 C# 2005 0 March 1st, 2006 11:42 AM
Help. Dllimport issues frank297 C# 2 July 13th, 2004 07:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.