Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 23rd, 2004, 12:23 AM
Registered User
 
Join Date: Oct 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default VB.net ==> VC#..?

iam beginner in C#,please help me to convert VB.Net code to C# code..

Public Const name as integer = 1000

<StructLayout(LayoutKind.Sequential)> _
    Public Structure VFMINUTIAE
        Dim count As Integer

        <MarshalAs(UnmanagedType.ByValArray, SizeConst:=name), VBFixedArray(name - 1)> Dim C() As Byte
    <MarshalAs(UnmanagedType.ByValArray, SizeConst:=name * 2), VBFixedArray(name * 2 - 1)> Dim mm() As Integer

    End Structure

'------------------------------------------------------------------

 Public Function VFGetG(ByRef features As Object) As Byte
        VFGetG = features(LBound(features) + 1)
    End Function

thanks,
ivan

 
Old December 23rd, 2004, 01:33 AM
Authorized User
 
Join Date: Mar 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Download Instant C# (www.instantcsharp.com)

It's very helpful.








Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Partial classes: C# -> VB.NET Antilles128 BOOK: Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages ISBN: 978-0-470-12448-2 1 December 23rd, 2007 12:52 AM
VC 2005 Standard vs Professional - > need advice pghTech Visual C++ 2005 3 June 4th, 2007 03:00 AM
VB.net Database -> user defined object boneill VB How-To 4 May 2nd, 2005 05:23 PM
VB.Net -> Filename -> DTS Package -> tempdB daniel Pro VB.NET 2002/2003 1 October 7th, 2004 01:46 PM
a problem in book<<beginning asp.net using vb>> luoware ASP.NET 1.0 and 1.1 Basics 3 December 8th, 2003 09:32 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.