|
-
Aug 27th, 2002, 03:27 PM
#1
Thread Starter
Registered User
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
-
Aug 27th, 2002, 03:51 PM
#2
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|