Click here to Skip to main content
15,892,298 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneraldwLastChange - Connection Time Pin
adriano_alvarez3-Dec-04 2:34
adriano_alvarez3-Dec-04 2:34 
GeneralRe: dwLastChange - Connection Time Pin
David Crow3-Dec-04 5:40
David Crow3-Dec-04 5:40 
GeneralCFileDialog crashes in Platform SDK Pin
Marius Bancila3-Dec-04 1:59
professionalMarius Bancila3-Dec-04 1:59 
GeneralRe: CFileDialog crashes in Platform SDK Pin
David Crow3-Dec-04 2:16
David Crow3-Dec-04 2:16 
GeneralRe: CFileDialog crashes in Platform SDK Pin
Blake Miller3-Dec-04 4:11
Blake Miller3-Dec-04 4:11 
GeneralRe: CFileDialog crashes in Platform SDK Pin
Marius Bancila3-Dec-04 4:29
professionalMarius Bancila3-Dec-04 4:29 
Generalhelp..... Pin
namaskaaram3-Dec-04 1:35
namaskaaram3-Dec-04 1:35 
Generaldll export problem Pin
Orkun GEDiK3-Dec-04 0:55
Orkun GEDiK3-Dec-04 0:55 
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
Generalvtable layout in vc++ for derived classes Pin
Member 13822803-Dec-04 0:43
Member 13822803-Dec-04 0:43 
GeneralConverting VARIANT data type Pin
Sahir Shah2-Dec-04 23:39
Sahir Shah2-Dec-04 23:39 
GeneralGetDisplayNameOf problems with Folder settings Pin
Digvijay Chauhan2-Dec-04 23:34
Digvijay Chauhan2-Dec-04 23:34 
GeneralRe: GetDisplayNameOf problems with Folder settings Pin
David Crow3-Dec-04 6:20
David Crow3-Dec-04 6:20 
GeneralMake each cell in a CListCtrl a little bigger Pin
anderslundsgard2-Dec-04 23:32
anderslundsgard2-Dec-04 23:32 
GeneralRe: Make each cell in a CListCtrl a little bigger Pin
Antony M Kancidrowski3-Dec-04 5:30
Antony M Kancidrowski3-Dec-04 5:30 
GeneralRe: Make each cell in a CListCtrl a little bigger Pin
anderslundsgard5-Dec-04 5:50
anderslundsgard5-Dec-04 5:50 
GeneralRe: Make each cell in a CListCtrl a little bigger Pin
Antony M Kancidrowski5-Dec-04 11:34
Antony M Kancidrowski5-Dec-04 11:34 
GeneralRe: Make each cell in a CListCtrl a little bigger Pin
anderslundsgard5-Dec-04 22:21
anderslundsgard5-Dec-04 22:21 
GeneralRe: Make each cell in a CListCtrl a little bigger Pin
Antony M Kancidrowski5-Dec-04 22:32
Antony M Kancidrowski5-Dec-04 22:32 
GeneralRe: Make each cell in a CListCtrl a little bigger Pin
anderslundsgard5-Dec-04 23:41
anderslundsgard5-Dec-04 23:41 
QuestionHow I can stop an USB-drive from my application? Pin
Rolf Faßler2-Dec-04 23:20
Rolf Faßler2-Dec-04 23:20 
QuestionHow to put tables into RichEdit Pin
Lee Seung Ic2-Dec-04 21:43
Lee Seung Ic2-Dec-04 21:43 
Questionhow to change Pin
vc-programmer-2-Dec-04 20:51
vc-programmer-2-Dec-04 20:51 
GeneralProblem linkage Pin
JensB2-Dec-04 20:25
JensB2-Dec-04 20:25 
GeneralRe: Problem linkage Pin
Nish Nishant2-Dec-04 20:50
sitebuilderNish Nishant2-Dec-04 20:50 
GeneralOnly Numeric value in Edit Box Pin
zahid_ash2-Dec-04 19:42
zahid_ash2-Dec-04 19:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.