A
Andrew Jones
Hi,
I have a dll made in eVC++ to grab exif data from digital images and I want
to call it from a .Net CF VB program for my Pocket PC 2002 unit.
I'm getting the following error:
----------------------------
A managed NotSupportedException occurred at Application::Run+0xf
Application::Run+0xf
Form1::Main+0xd
OK to terminate
----------------------------
Below is my code in VB .Net CF. I declare the dll under the Public Class for
Form1. I use the dll under a command button. It's suppose to return exif
(like camera model and date picture taken, etc.) data from digital images. A
similar dll was created in VC++ in VS 2003 and that works in VB.Net 2003
just fine on the desktop. I then had the dll recompiled in eVC++ and tried
the same desktop code in VB .Net CF 2003 but get the error I described
above. First am I declaring the dll correctly? How to you get to a dll from
..Net that was created in eVC++? If it's something in my eVC++ code then I'll
post the code to the eVC++ newgroup. Thanks for any help!
Andrew Jones
Code below:
Public Class Form1
Inherits System.Windows.Forms.Form
Public Declare Function ReadExif Lib _
"exif.dll" (ByVal szFile As String) As String
Public Declare Function GetExifCameraMake Lib _
"exif.dll" () As String
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim strLocation As String = "DSC06723.JPG"
Dim szString As String
'call the function
szString = ReadExif(strLocation)
MsgBox(szString)
I have a dll made in eVC++ to grab exif data from digital images and I want
to call it from a .Net CF VB program for my Pocket PC 2002 unit.
I'm getting the following error:
----------------------------
A managed NotSupportedException occurred at Application::Run+0xf
Application::Run+0xf
Form1::Main+0xd
OK to terminate
----------------------------
Below is my code in VB .Net CF. I declare the dll under the Public Class for
Form1. I use the dll under a command button. It's suppose to return exif
(like camera model and date picture taken, etc.) data from digital images. A
similar dll was created in VC++ in VS 2003 and that works in VB.Net 2003
just fine on the desktop. I then had the dll recompiled in eVC++ and tried
the same desktop code in VB .Net CF 2003 but get the error I described
above. First am I declaring the dll correctly? How to you get to a dll from
..Net that was created in eVC++? If it's something in my eVC++ code then I'll
post the code to the eVC++ newgroup. Thanks for any help!
Andrew Jones
Code below:
Public Class Form1
Inherits System.Windows.Forms.Form
Public Declare Function ReadExif Lib _
"exif.dll" (ByVal szFile As String) As String
Public Declare Function GetExifCameraMake Lib _
"exif.dll" () As String
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim strLocation As String = "DSC06723.JPG"
Dim szString As String
'call the function
szString = ReadExif(strLocation)
MsgBox(szString)