Problems developing an application to PocketPC
From: triki tron via .NET 247 (anonymous_at_dotnet247.com)
Date: 08/04/04
- Next message: Girish NS: "Re: howto register the Event in Dll"
- Previous message: WL via .NET 247: "Axim Microphone and P/Invoke"
- Next in thread: Paul G. Tobey [eMVP]: "Re: Problems developing an application to PocketPC"
- Reply: Paul G. Tobey [eMVP]: "Re: Problems developing an application to PocketPC"
- Reply: Ali: "RE: Problems developing an application to PocketPC"
- Reply: Peter Foot [MVP]: "Re: Problems developing an application to PocketPC"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 04 Aug 2004 04:54:58 -0700
(Type your message here)
I have proved this code in an application for PC and works OK:
Dim RxBufferDatos(40) As Byte
Dim Arbuffer() As Byte
ReDim Preserve Arbuffer(ContadorDatos + nbRx - 1)
Dim handle As GCHandle = GCHandle.Alloc(RxBufferDatos, GCHandleType.Pinned)
Dim aux As IntPtr = handle.AddrOfPinnedObject()
Marshal.Copy(aux, Arbuffer, ContadorDatos, RxBufferDatos.Length)
handle.Free()
This copies a number of bytes from "RxBufferDatos" to "Arbuffer".
But when I copy this code to an application to a PocketPC, this doesn?t work OK.
Do you know why and how can I do it?
--------------------------------
From: triki tron
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>n5sKkgAM1UKL7KlDR1sSiQ==</Id>
- Next message: Girish NS: "Re: howto register the Event in Dll"
- Previous message: WL via .NET 247: "Axim Microphone and P/Invoke"
- Next in thread: Paul G. Tobey [eMVP]: "Re: Problems developing an application to PocketPC"
- Reply: Paul G. Tobey [eMVP]: "Re: Problems developing an application to PocketPC"
- Reply: Ali: "RE: Problems developing an application to PocketPC"
- Reply: Peter Foot [MVP]: "Re: Problems developing an application to PocketPC"
- Messages sorted by: [ date ] [ thread ]