Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. dll export problem

dll export problem

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpcsharpvisual-studiojson
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    Orkun GEDiK
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups