Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 16th, 2008, 12:58 AM
Registered User
Join Date: Jul 2008
Location: noida, up, India.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default dllimport


   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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 04:50 AM.

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