Results 1 to 2 of 2

Thread: Ranges and API, VB->C#

  1. #1

    Thread Starter
    Registered User Olly's Avatar
    Join Date
    Apr 2001
    Location
    Switzerland
    Posts
    252

    Question Ranges and API, VB->C#

    Hi folks after some long time of being absent I got some simple questions:

    How would the following vb code look c#???

    Dim n(10 To 20) As Long

    Ah and yeah, just another one, how would I translate the following (I have some small clue but i'm not sure at all):

    Code:
    Private Declare Function RegOpenKeyEx Lib "advapi32.dll" Alias "RegOpenKeyExA" (ByVal hKey As Long, ByVal lpSubKey As String, ByVal ulOptions As Long, ByVal samDesired As Long, phkResult As Long) As Long
    Thanks a lot

  2. #2
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    1. long [] n = new long[20];

    2. Use the Registry classes in System.Win32 namespace for easier registry maniplation.

    Good luck
    Dont gain the world and lose your soul

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width