1
Windows Ce 용으로 컴파일 된 Unmanaged Lib가 있습니다. VB.net Full Framework .Net 4 Client Profile Windows 응용 프로그램에서이 dll을 호출하려고합니다. Compact Framework 응용 프로그램에서 사용하는 것과 동일한 코드를 사용하려고합니다. 그것은 오류없이 컴파일 및 실행하지만 함수를 호출 할 때 오류 ex = { "잘못된 형식으로 프로그램을로드하려고했습니다 (HRESULT 예외 : 0x8007000B)"} 모바일 관리되지 않는 DLL을 사용할 수 있습니까? 데스크탑? 여기에이 DLL을 호출하는 데 사용하는 래퍼 코드 :전체 .NET Framework (관리되지 않음)에서 관리되지 않는 모바일 CE Dll을 호출 할 수 있습니까?
Imports System
Imports System.Runtime.InteropServices
Module modM300CF
Public Declare Function ParseBarCode Lib "M300LAP.dll" (_
ByVal P_track1 As Byte(), ByVal P_t1length As Short, _
ByRef P_DLStatus As Short, _
ByRef P_StateID As Byte, _
ByRef P_DAge As Short, _
ByRef P_CardName As Byte, _
ByRef P_Address As Byte, _
ByRef P_City As Byte, _
ByRef P_State As Byte, _
ByRef P_Zip As Byte, _
ByRef P_DLNumber As Byte, _
ByRef P_Expdate As Byte, _
ByRef P_Bdate As Byte, _
ByRef P_DLAlpha As Byte, _
ByRef P_DHair As Byte, _
ByRef P_DEyes As Byte, _
ByRef P_DHeight As Byte, _
ByRef P_DWeight As Byte, _
ByRef P_DSex As Byte) As Short
Public Declare Function ParseMagStripe Lib "M300LAP.dll" (_
ByVal P_track1 As Byte(), ByVal P_t1length As Short, _
ByVal P_track2 As Byte(), ByVal P_t2length As Short, _
ByVal P_track3 As Byte(), ByVal P_t3length As Short, _
ByRef P_DLStatus As Short, _
ByRef P_StateID As Byte, _
ByRef P_DAge As Short, _
ByRef P_CardName As Byte, _
ByRef P_Address As Byte, _
ByRef P_City As Byte, _
ByRef P_State As Byte, _
ByRef P_Zip As Byte, _
ByRef P_DLNumber As Byte, _
ByRef P_Expdate As Byte, _
ByRef P_Bdate As Byte, _
ByRef P_DLAlpha As Byte, _
ByRef P_DHair As Byte, _
ByRef P_DEyes As Byte, _
ByRef P_DHeight As Byte, _
ByRef P_DWeight As Byte, _
ByRef P_DSex As Byte) As Short
End Module