Re: using vc++ dll in smart device application

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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'.
.



Relevant Pages

  • Re: winXP Driver Debugger in local machine
    ... debug spew from the Windows service I am currently developing. ... up, quite nicely I might add, all the debug spew coming from Broadcom's TPM ... I have developed a winxp SDIO device driver, when Iam ...
    (microsoft.public.development.device.drivers)
  • Re: Event ID 3034
    ... >i have windows 2000 advanced server. ... From the last few days iam ... >"The redirector was unable to initialize security context or query ...
    (microsoft.public.win2000.advanced_server)
  • Re: PC104
    ... > There is dos installed on the pc104 disk on chip, basically what Iam trying ... > to do is comunicate between dos and windows 98 through tcp/ip. ...
    (comp.os.linux.embedded)
  • Re: Help to Get User Name And their roles ! Urgent
    ... Iam getting user name and domain ... dim uns ... > When you are using Windows Authentication in ASP.NET, ... > user is a member of the Domain Users group. ...
    (microsoft.public.dotnet.security)
  • Re: aygshell.dll for windows ce
    ... I just used google to ... Windows CE is not Windows Mobile (where every device has a ... Can't find PInvoke DLL 'aygshell.dll' ... remove the underscores from my email address (and please indicate which newsgroup and message). ...
    (microsoft.public.windowsce.app.development)