🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.language.csharp
Article #383

Re: How to declare this VB.Net code into C#?

#383
From: Marc Rohloff TeamB
Date: Fri, 13 May 2005 21:34
30 lines
2337 bytes
On Thu, 12 May 2005 16:34:43 -0300, Bruno Lovatti wrote:

> Public Class win32api
> 
>     <DllImport("KERNEL32.DLL", EntryPoint:="RtlMoveMemory", _
>        SetLastError:=True, CharSet:=CharSet.Auto, _
>        ExactSpelling:=True, _
>        CallingConvention:=CallingConvention.StdCall)> _
>     Public Shared Sub CopyArrayTo(<[In](), MarshalAs(UnmanagedType.I4)>
> ByVal hpvDest As Int32, <[In](), Out()> ByVal hpvSource() As Byte, ByVal
> cbCopy As Integer)
>         ' Leave function empty
>     End Sub
> 
> End Class

public class win32api {
     [DllImport("KERNEL32.DLL", EntryPoint="RtlMoveMemory", 
        SetLastError=true, CharSet=CharSet.Auto, 
        ExactSpelling=True, 
        CallingConvention=CallingConvention.StdCall)]
     public static external void CopyArrayTo(
         [In, MarshalAs(UnmanagedType.I4)] int hpvDest, 
         [In, Out] byte[] hpvSource,
         int cbCopy);
}

-- 
Marc Rohloff [TeamB]
marc rohloff -at- myrealbox -dot- com
Technical Details
Message-ID: <alz6jeelh2l3$.dlg@marcrohloff.40tude.net>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsgate.cistron.nl!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4283afb0@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,b5f3d83d33ee3299
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Marc Rohloff [TeamB]" <"on request">
Subject: Re: How to declare this VB.Net code into C#?
Newsgroups: borland.public.csharpbuilder.language.csharp
User-Agent: 40tude_Dialog/2.0.15.1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
References: <4283afb0@newsgroups.borland.com>
Date: Fri, 13 May 2005 17:34:11 -0400
Message-ID: <alz6jeelh2l3$.dlg@marcrohloff.40tude.net>
X-Face: "huzh55Xi]!ZNni78>a*5+).`SK?<^q2MlHk-C]Z2M9T@\J5ZCB$95Ey+s"XQuhGFA[eutZ :0^AV!Q;t>gE`1-=8d;HZ6~*o1dH<X9\b$!|(}+I'!Xq)@3Op}%0ArW&nf'Qh*EwR
X-Antivirus: avast! (VPS 0519-2, 05/12/2005), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 67.149.150.149
X-Trace: newsgroups.borland.com 1116020025 67.149.150.149 (13 May 2005 14:33:45 -0700)
Lines: 30
X-Authenticated-User: mrohloff
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsgate.cistron.nl!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail