Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

DLL - Export Function

$
0
0

I've compiled a project to a DLL.  I am able to use the DLL in another sharpDevelop project.  But I sent the DLL to someone to include in Labview.  When he tries to use the DLL he gets an error that no functions are exported.

I tried dll_tool.exe and I get an error shown below (bottom of post).  Also dll_Tool doesnt show my function if I have 3 arguments, if I change my function to include only 2 arguments it shows up in the list but still get an error building.

 

 So I tried using ExportDLLAttribute

http://www.codeproject.com/Articles/16310/How-to-Automate-Exporting-NET-Function-to-Unmanage#_comments

- I compiled the project and then include  a reference to the EportDLLAttribute.dll in my project but when I add the following line

[ExportDllAttribute.ExportDll("ExportNameOfFunction",
    System.Runtime.InteropServices.CallingConvention.Cdecl)]

I get a compile error that type name ExportDll does not exist in ExportDllAttribute.

 

 I am new to windows programming.  any help exporting my functions in a dll would be helpful.

 

 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Microsoft (R) .NET Framework IL Assembler.  Version 4.0.30319.17929

Copyright (c) Microsoft Corporation.  All rights reserved.

Assembling 'C:\Users\path\Temp\_dll.il'  to DLL --> 'C:\Users\path\SharpDevelop\Projects\compileAtRuntime\carExpression\bin\Release\carE.dll'

Source file is ANSI

**** FAILURE ***** 


Viewing all articles
Browse latest Browse all 1764

Trending Articles