Re: using vc++ dll in smart device application
- From: jemmy <arvin.ns@xxxxxxxxx>
- Date: Mon, 3 Aug 2009 23:12:26 -0700 (PDT)
On Aug 3, 10:38 pm, r_z_aret@xxxxxxxxxxxx wrote:
On Sun, 2 Aug 2009 22:02:39 -0700 (PDT), jemmy <arvin...@xxxxxxxxx>
wrote:
Hi ,
Iam new Windows Ce development,
Iam having a VC++ Application which is used for GPIO Controls,
I need to port the entire application to Visual basic,
The VC++ App has a header file,i dont have access to the source code,
Not having access to the source code makes me wonder whether you are
trying to use an executable built for "big" Windows That will
definitely not work because Windows CE is not the same operating
system, and the CPUs are definitely not compatible. If you are trying
to rewrite the program/dll to match the header, that will be possible.
-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 400
Boston, MA 02116www.penfact.com
Hi All,
Thanks for the reply
My header file name is gpio.h,
the gpio.h has function (GPIORead ) inside
i created a DLL Smartdevicedll project by including header file,
copied the dll file inside target board
In my VB Code
Dim io, PinNumber As UInt16
Declare Function GPIORead Lib "\NAND Flash\GPIO.dll" (ByVal io, ByVal
PinNumber) As Boolean()
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button5.Click
GPIORead(0, 9)
MsgBox("Afterclick")
End Sub
When i try deploying it iam getting the following error
System.MissingMethodException was unhandled
Message="Can't find PInvoke DLL '\NAND Flash\GPIO.dll'."
StackTrace:
at VBSmartdevice.Form1.Button5_Click(Object sender, EventArgs
e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.ButtonBase.WnProc(WM wm, Int32 wParam,
Int32 lParam)
at System.Windows.Forms.Control._InternalWnProc(WM wm, Int32
wParam, Int32 lParam)
at Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain)
at System.Windows.Forms.Application.Run(Form fm)
at VBSmartdevice.Form1.Main()
Please Guide,
Regards,
jemmy
Can't find PInvoke DLL '\NAND Flash\ram.dll'.
.
- Follow-Ups:
- Re: using vc++ dll in smart device application
- From: Paul G. Tobey [eMVP]
- Re: using vc++ dll in smart device application
- References:
- using vc++ dll in smart device application
- From: jemmy
- Re: using vc++ dll in smart device application
- From: r_z_aret
- using vc++ dll in smart device application
- Prev by Date: Re: Question on the default timer implementation for x86 - Wince 6.0
- Next by Date: USB Serial Class
- Previous by thread: Re: using vc++ dll in smart device application
- Next by thread: Re: using vc++ dll in smart device application
- Index(es):
Relevant Pages
|