dll export problem
-
Hello, I am developing a DLL on eVC++ 4.0 in order to call some complex API functions through VS.NET 2003. But, VS.NET 2003 is generating an error at below; An unhandled exception of type 'System.MissingMethodException' occurred in tester.exe It is an WCE MFC AppWizard (dll) project. I cannot call even simple function. Sample code at below; EXTERN_C __declspec(dllexport) int Tester(int a, int b) { return(a+b); } VS.NET code is a "Smart Device Application"; Imports System.Runtime.InteropServices Public Class Form1 Inherits System.Windows.Forms.Form Friend WithEvents MainMenu1 As System.Windows.Forms.MainMenu Declare Function Tester Lib "wtest.dll" (ByVal a As Integer, ByVal b As Integer) As Integer Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim c As Integer c = tester(1, 1) End Sub End Class I can see the "Tester" function at dumpbin output. Also, I declared "Tester" in .def file at below; ; wtest.def : Declares the module parameters for the DLL. LIBRARY "WTEST" ;DESCRIPTION 'WTEST Windows CE Dynamic Link Library' EXPORTS Tester ; Explicit exports can go here What do you suggest about this problem? Regards, Orkun GEDiK SAP R/3 Software & System Support Specialist ASTRON